/* =======================================================
   LOGIN TIKEA.PE - MULTIEMPRESA RESPONSIVE
   Colores principales tomados del logo: azul, cian y verde.
   ======================================================= */
:root {
    --tikea-bg: #030815;
    --tikea-panel: rgba(8, 22, 45, 0.72);
    --tikea-panel-strong: rgba(5, 17, 36, 0.88);
    --tikea-blue: #0756df;
    --tikea-blue-light: #0aa7ff;
    --tikea-teal: #20c6b8;
    --tikea-green: #32d955;
    --tikea-text: #f7fbff;
    --tikea-muted: #9db2cc;
    --tikea-border: rgba(148, 190, 255, 0.18);
    --tikea-shadow: rgba(0, 0, 0, 0.42);
}

.container-login.tikea-login {
    min-height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    overflow: hidden;
    position: relative;
    isolation: isolate;
    color: var(--tikea-text);
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background:
        radial-gradient(circle at 12% 18%, rgba(7, 86, 223, 0.48), transparent 26%),
        radial-gradient(circle at 86% 21%, rgba(50, 217, 85, 0.22), transparent 28%),
        linear-gradient(135deg, #020713 0%, #06152c 48%, #02110f 100%);
}

.container-login.tikea-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 8, 21, 0.72), rgba(2, 8, 21, 0.35)),
        url('../img/pannel.jpg') left center / cover no-repeat;
    opacity: 0.38;
    z-index: -3;
}

.container-login.tikea-login::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 8, 21, 0.72) 0%, rgba(3, 8, 21, 0.74) 52%, rgba(3, 8, 21, 0.94) 100%);
    z-index: -2;
}

.login-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.26;
    background-image:
        linear-gradient(rgba(38, 139, 255, 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(38, 139, 255, 0.10) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 78%, transparent);
}

.login-orb {
    position: absolute;
    width: 430px;
    height: 430px;
    border-radius: 999px;
    filter: blur(48px);
    opacity: 0.28;
    z-index: -1;
    pointer-events: none;
}

.login-orb-one {
    left: -150px;
    top: 18%;
    background: var(--tikea-blue);
}

.login-orb-two {
    right: -170px;
    bottom: 2%;
    background: var(--tikea-green);
}

/* ================= PANEL IZQUIERDO ================= */
.container-login .left-panel {
    padding: clamp(34px, 5vw, 86px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.brand-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: min(620px, 100%);
    padding: 20px 26px;
    margin: 0 auto 26px auto;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(10, 29, 62, 0.72), rgba(5, 16, 35, 0.44));
    border: 1px solid var(--tikea-border);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.brand-logo-box {
    width: 220px;
    height: 116px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(2, 10, 25, 0.42);
    border: 1px solid rgba(105, 178, 255, 0.08);
    overflow: hidden;
}

.brand-logo-box img {
    max-width: 184px;
    max-height: 92px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(7, 86, 223, 0.32));
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    text-align: left;
}

.brand-copy span {
    font-size: 0.94rem;
    color: var(--tikea-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-copy strong {
    font-size: clamp(1.20rem, 1.45vw, 1.55rem);
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: 0.03em;
    word-break: break-word;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 17px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(7, 86, 223, 0.94), rgba(50, 217, 85, 0.82));
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 14px 36px rgba(7, 86, 223, 0.27);
}

.platform-badge i {
    color: #bffff0;
}

.left-panel .hero-text {
    max-width: 700px;
    margin: 0 auto;
    animation: fadeUp 0.72s ease-out both;
}

.left-panel .descrih1tion {
    margin: 0 0 18px 0;
    font-size: clamp(2.6rem, 5vw, 5.15rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.055em;
    color: #ffffff;
    padding-bottom: 10px;
}

.left-panel .descrih1tion span {
    background: linear-gradient(135deg, var(--tikea-blue-light) 0%, var(--tikea-teal) 45%, var(--tikea-green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.left-panel .description {
    max-width: 600px;
    margin: 0 auto 28px auto;
    color: #d7e5f7;
    font-size: clamp(1rem, 1.25vw, 1.16rem);
    line-height: 1.65;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.feature-pills span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 15px;
    color: #eff8ff;
    font-weight: 800;
    font-size: 0.92rem;
    background: rgba(5, 18, 42, 0.58);
    border: 1px solid rgba(113, 173, 255, 0.20);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feature-pills i {
    font-size: 1rem;
    color: var(--tikea-green);
}

.company-network {
    width: min(620px, 100%);
    height: 210px;
    position: relative;
    margin: 4px 0 26px 0;
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 18%, rgba(50, 217, 85, 0.20), transparent 28%),
        linear-gradient(180deg, rgba(8, 26, 58, 0.46), rgba(4, 14, 32, 0.18));
    border: 1px solid rgba(113, 173, 255, 0.12);
    overflow: hidden;
}

.company-network::before,
.company-network::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 40px;
    width: 250px;
    height: 148px;
    border-top: 1px solid rgba(10, 167, 255, 0.32);
    border-radius: 50%;
    transform: translateX(-50%);
}

.company-network::after {
    width: 390px;
    border-color: rgba(50, 217, 85, 0.20);
}

.cloud-node {
    position: absolute;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    width: 72px;
    height: 54px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: var(--tikea-green);
    font-size: 2.15rem;
    background: rgba(5, 18, 42, 0.72);
    border: 1px solid rgba(50, 217, 85, 0.32);
    box-shadow: 0 18px 48px rgba(7, 86, 223, 0.25);
    z-index: 3;
}

.company-node {
    position: absolute;
    bottom: 28px;
    width: 112px;
    height: 74px;
    border-radius: 16px 16px 8px 8px;
    background:
        linear-gradient(90deg, rgba(10, 167, 255, 0.20) 1px, transparent 1px),
        linear-gradient(180deg, rgba(10, 167, 255, 0.42), rgba(7, 86, 223, 0.17));
    background-size: 18px 100%, 100% 100%;
    border: 1px solid rgba(10, 167, 255, 0.22);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.25);
}

.company-node span {
    position: absolute;
    left: 50%;
    top: -30px;
    transform: translateX(-50%);
    padding: 7px 12px;
    white-space: nowrap;
    border-radius: 999px;
    background: rgba(4, 17, 38, 0.78);
    color: #eaf4ff;
    font-weight: 800;
    font-size: 0.78rem;
    border: 1px solid rgba(113, 173, 255, 0.18);
}

.node-a { left: 13%; }
.node-b { left: 50%; transform: translateX(-50%); height: 96px; }
.node-c { right: 13%; }

.security-tips {
    width: min(620px, 100%);
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 17px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(5, 18, 42, 0.70), rgba(7, 86, 223, 0.12));
    border: 1px solid rgba(113, 173, 255, 0.18);
    border-left: 4px solid var(--tikea-green);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.security-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--tikea-green);
    background: rgba(50, 217, 85, 0.08);
    border: 1px solid rgba(50, 217, 85, 0.18);
}

.security-tips strong {
    display: block;
    color: #ffffff;
    font-size: 0.98rem;
    margin-bottom: 4px;
}

.security-tips p {
    margin: 0;
    color: var(--tikea-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ================= PANEL DERECHO ================= */
.container-login .right-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 72px);
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(2, 10, 25, 0.34), rgba(2, 18, 22, 0.58));
    border-left: 1px solid rgba(148, 190, 255, 0.10);
}

.container-login .right-panel::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(10, 167, 255, 0.42), transparent);
}

.container-login .login-form {
    width: min(100%, 470px);
    position: relative;
    padding: clamp(28px, 3vw, 44px);
    border-radius: 30px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(8, 29, 62, 0.78), rgba(5, 18, 35, 0.84)),
        radial-gradient(circle at 100% 0%, rgba(50, 217, 85, 0.14), transparent 36%);
    border: 1px solid rgba(148, 190, 255, 0.20);
    box-shadow: 0 34px 82px rgba(0, 0, 0, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation: scaleIn 0.58s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.form-glow-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--tikea-blue), var(--tikea-blue-light), var(--tikea-green));
}

.mobile-brand {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
    text-align: center;
}

.mobile-brand-logo {
    width: 170px;
    height: 96px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(8, 29, 62, 0.92), rgba(3, 13, 28, 0.92));
    border: 1px solid rgba(113, 173, 255, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.mobile-brand img {
    max-width: 138px;
    max-height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(7, 86, 223, 0.24));
}

.mobile-brand strong {
    display: block;
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.mobile-brand small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(7, 86, 223, 0.92), rgba(50, 217, 85, 0.78));
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.login-form .login-header {
    text-align: center;
    margin-bottom: 26px;
}

.login-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    margin-bottom: 14px;
    border-radius: 999px;
    color: #bce8ff;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(10, 167, 255, 0.08);
    border: 1px solid rgba(10, 167, 255, 0.18);
}

.login-kicker i {
    color: var(--tikea-green);
}

.login-form .login-header h1 {
    margin: 0 0 9px 0;
    color: #ffffff;
    font-size: clamp(1.65rem, 2vw, 2.15rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.login-form .login-header .subtitle {
    margin: 0;
    color: var(--tikea-muted);
    font-size: 0.98rem;
    line-height: 1.45;
}

.login-u {
    margin: 0;
}

.container-login .form-group {
    position: relative;
    margin-bottom: 18px;
}

.container-login .form-group label {
    display: block;
    margin: 0 0 8px 2px;
    color: #eaf4ff;
    font-size: 0.88rem;
    font-weight: 800;
}

.container-login .form-control-icon {
    position: absolute;
    left: 18px;
    bottom: 17px;
    color: #8aa3c1;
    font-size: 1.04rem;
    transition: color 0.22s ease, transform 0.22s ease;
    z-index: 5;
}

.container-login .form-group:focus-within .form-control-icon {
    color: var(--tikea-green);
    transform: translateY(-1px);
}

.right-panel input[type="text"],
.right-panel input[type="password"],
.right-panel select {
    width: 100%;
    height: 54px;
    padding: 0 48px 0 52px;
    border: 1px solid rgba(148, 190, 255, 0.18);
    border-radius: 15px;
    background: rgba(2, 12, 28, 0.70);
    color: #ffffff !important;
    font-size: 0.98rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.right-panel select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.right-panel select option {
    color: #0b1220;
    background: #ffffff;
}

.right-panel input::placeholder {
    color: #7f96b4;
}

.right-panel input[type="text"]:focus,
.right-panel input[type="password"]:focus,
.right-panel select:focus {
    border-color: rgba(50, 217, 85, 0.55);
    background: rgba(2, 12, 28, 0.88);
    box-shadow: 0 0 0 4px rgba(50, 217, 85, 0.10), 0 12px 28px rgba(0, 0, 0, 0.18);
}

.select-chevron {
    position: absolute;
    right: 17px;
    bottom: 18px;
    color: #99b0ca;
    pointer-events: none;
    font-size: 0.88rem;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: 4px 0 20px 0;
    color: var(--tikea-muted);
    font-size: 0.88rem;
}

.remember-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
    margin: 0;
    font-weight: 600;
}

.remember-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--tikea-green);
}

.login-options a,
.login-help a {
    color: #38bdf8;
    font-weight: 800;
    text-decoration: none;
}

.login-options a:hover,
.login-help a:hover {
    color: var(--tikea-green);
}

.right-panel .login-button {
    width: 100%;
    min-height: 58px;
    padding: 16px 18px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--tikea-blue) 0%, var(--tikea-blue-light) 48%, var(--tikea-green) 100%);
    color: #ffffff;
    cursor: pointer;
    font-size: 0.96rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(7, 86, 223, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.right-panel .login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(10, 167, 255, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.26);
    filter: brightness(1.06);
}

.right-panel .login-button:active {
    transform: translateY(0);
}

#resultLogin {
    margin-top: 14px;
    text-align: center;
    border-radius: 14px;
    overflow: hidden;
}

.login-help {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 190, 255, 0.12);
    color: var(--tikea-muted);
    font-size: 0.92rem;
}

.login-help i {
    color: #b7d1ef;
}

.verifica-sunat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 190, 255, 0.10);
    color: rgba(234, 244, 255, 0.62);
    font-size: 0.82rem;
}

.verifica-sunat img {
    max-width: 142px;
    max-height: 58px;
    object-fit: contain;
    opacity: 0.78;
    filter: brightness(0) invert(1);
    transition: opacity 0.22s ease;
}

.verifica-sunat img:hover {
    opacity: 1;
}

/* Animaciones */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ================= RESPONSIVE: TABLET ================= */
@media screen and (max-width: 1180px) {
    .container-login.tikea-login {
        grid-template-columns: 1fr;
        min-height: 100vh;
        overflow-y: auto;
    }

    .container-login .left-panel {
        padding: 38px 26px 18px 26px;
        align-items: center;
        text-align: center;
    }

    .brand-card {
        justify-content: center;
        margin: 0 auto 18px auto;
    }

    .left-panel .description {
        margin-left: auto;
        margin-right: auto;
    }

    .feature-pills {
        justify-content: center;
    }

    .company-network {
        display: none;
    }

    .security-tips {
        max-width: 680px;
        text-align: left;
        margin: 0 auto 4px auto;
    }

    .container-login .right-panel {
        border-left: 0;
        padding: 18px 26px 42px 26px;
        background: transparent;
    }

    .container-login .right-panel::before {
        display: none;
    }
}

/* ================= RESPONSIVE: MÓVIL ================= */
@media screen and (max-width: 640px) {
    .container-login.tikea-login {
        display: block;
        min-height: 100svh;
        background:
            radial-gradient(circle at 12% 8%, rgba(7, 86, 223, 0.42), transparent 30%),
            radial-gradient(circle at 100% 8%, rgba(50, 217, 85, 0.20), transparent 32%),
            linear-gradient(180deg, #020713 0%, #06152c 58%, #02110f 100%);
    }

    .login-grid {
        background-size: 44px 44px;
        opacity: 0.18;
    }

    .container-login .left-panel {
        display: none;
    }

    .container-login .right-panel {
        min-height: 100svh;
        padding: 18px 14px;
        background: transparent;
        border-left: 0;
    }

    .container-login .right-panel::before {
        display: none;
    }

    .container-login .login-form {
        width: 100%;
        max-width: 390px;
        padding: 28px 18px 22px 18px;
        border-radius: 24px;
        margin: 0 auto;
    }

    .mobile-brand {
        display: flex;
    }

    .login-kicker,
    .login-form .login-header .subtitle,
    .form-group-select,
    .login-options,
    .login-help,
    .verifica-sunat {
        display: none;
    }

    .login-form .login-header {
        margin-bottom: 18px;
    }

    .login-form .login-header h1 {
        font-size: 1.42rem;
        margin-bottom: 0;
    }

    .container-login .form-group {
        margin-bottom: 14px;
    }

    .container-login .form-group label {
        font-size: 0.82rem;
        margin-bottom: 7px;
    }

    .right-panel input[type="text"],
    .right-panel input[type="password"],
    .right-panel select {
        height: 51px;
        border-radius: 14px;
        font-size: 0.90rem;
        padding-left: 44px;
        padding-right: 38px;
    }

    .container-login .form-control-icon {
        left: 15px;
        bottom: 16px;
        font-size: 0.92rem;
    }

    .select-chevron {
        right: 14px;
        bottom: 16px;
    }

    .right-panel .login-button {
        min-height: 54px;
        font-size: 0.82rem;
        letter-spacing: 0.05em;
        border-radius: 14px;
        margin-top: 6px;
    }
}

@media screen and (max-width: 380px) {
    .brand-card {
        align-items: flex-start;
    }

    .feature-pills span {
        width: 100%;
        justify-content: center;
    }

    .login-options {
        flex-direction: column;
        gap: 8px;
    }
}
