/* =======================================================
   LOGIN TIKEA.PE - RESPONSIVE PC / TABLET / MÓVIL
   Colores base: azul corporativo + verde nube
   ======================================================= */

:root {
    --tikea-blue: #073bb7;
    --tikea-blue-2: #075fe8;
    --tikea-navy: #06163a;
    --tikea-green: #3bd34a;
    --tikea-cyan: #11a6cc;
    --tikea-light-blue: #eaf3ff;
    --tikea-text: #0b1738;
    --tikea-muted: #687696;
    --tikea-border: #dbe5f4;
    --tikea-white: #ffffff;
}

.container-login,
.container-login * {
    box-sizing: border-box;
}

.container-login {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--tikea-text);
    background:
        radial-gradient(circle at 92% 0%, rgba(59, 211, 74, 0.28) 0, rgba(59, 211, 74, 0.18) 14%, transparent 34%),
        radial-gradient(circle at 0% 100%, rgba(7, 95, 232, 0.24) 0, rgba(7, 95, 232, 0.12) 22%, transparent 46%),
        linear-gradient(135deg, #f8fbff 0%, #ffffff 48%, #eef6ff 100%);
    position: relative;
    overflow: hidden;
}

.container-login::before,
.container-login::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.container-login::before {
    width: 520px;
    height: 520px;
    right: -190px;
    top: -180px;
    background: linear-gradient(135deg, rgba(7, 95, 232, 0.18), rgba(59, 211, 74, 0.2));
}

.container-login::after {
    width: 430px;
    height: 430px;
    left: -160px;
    bottom: -150px;
    background: linear-gradient(135deg, rgba(7, 59, 183, 0.2), rgba(17, 166, 204, 0.14));
}

.login-shell {
    width: min(1240px, 100%);
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.03fr 1fr;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(219, 229, 244, 0.92);
    box-shadow: 0 34px 90px rgba(6, 22, 58, 0.14);
}

/* ================= PANEL IZQUIERDO ================= */
.container-login .left-panel {
    position: relative;
    padding: 76px 100px 70px 70px;
    color: var(--tikea-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 68% 30%, rgba(17, 166, 204, 0.28) 0, transparent 34%),
        linear-gradient(150deg, #021b5e 0%, #073bb7 48%, #062a87 100%);
    clip-path: polygon(0 0, 92% 0, 100% 100%, 0% 100%);
    overflow: hidden;
}

.container-login .left-panel::before {
    content: '';
    position: absolute;
    inset: auto -120px -160px auto;
    width: 440px;
    height: 440px;
    background: linear-gradient(135deg, rgba(0, 166, 204, 0.45), rgba(59, 211, 74, 0.72));
    border-radius: 50%;
    opacity: 0.85;
}

.container-login .left-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(130deg, transparent 0 45%, rgba(255,255,255,0.05) 45% 45.4%, transparent 45.4% 100%),
        repeating-radial-gradient(circle at 82% 60%, rgba(255,255,255,0.06) 0 1px, transparent 1px 12px);
    opacity: 0.55;
}

.brand-block,
.hero-text,
.feature-list {
    position: relative;
    z-index: 1;
}

.brand-block {
    margin-bottom: 34px;
}

.brand-logo {
    width: min(420px, 92%);
    max-height: 240px;
    object-fit: contain;
    object-position: left center;
    display: block;
    opacity: 1;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.28));
}

.mobile-brand {
    display: none;
    width: 100%;
    justify-content: center;
    margin-bottom: 20px;
}

.mobile-brand-logo {
    width: min(250px, 72vw);
    max-width: 250px;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(6, 22, 58, 0.18));
}

.hero-text {
    max-width: 520px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #dfffe6;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tikea-green);
    box-shadow: 0 0 16px rgba(59, 211, 74, 0.9);
}

.left-panel .descrih1tion {
    margin: 0 0 22px;
    font-size: clamp(2.2rem, 4vw, 3.55rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: #ffffff;
}

.left-panel .descrih1tion::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 24px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tikea-blue-2), var(--tikea-green));
}

.left-panel .description {
    max-width: 460px;
    margin: 0 0 34px;
    font-size: 1.08rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.feature-list {
    display: grid;
    gap: 16px;
    max-width: 470px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.feature-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--tikea-green);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}

.feature-item strong {
    display: block;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 3px;
}

.feature-item small {
    display: block;
    font-size: 0.9rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.72);
}

/* ================= PANEL DERECHO ================= */
.container-login .right-panel {
    position: relative;
    padding: 58px 66px 44px 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 98% 15%, rgba(7, 95, 232, 0.09) 0, transparent 36%),
        rgba(255, 255, 255, 0.78);
}

.container-login .right-panel::before {
    content: '';
    position: absolute;
    width: 430px;
    height: 430px;
    right: -235px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 80px solid rgba(7, 95, 232, 0.08);
}

.container-login .right-panel::after {
    content: '';
    position: absolute;
    right: 38px;
    top: 142px;
    width: 135px;
    height: 135px;
    opacity: 0.34;
    background-image: radial-gradient(var(--tikea-blue-2) 1.2px, transparent 1.2px);
    background-size: 12px 12px;
}

.container-login .login-form {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    padding: 50px 46px 38px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(219, 229, 244, 0.98);
    box-shadow: 0 24px 70px rgba(6, 22, 58, 0.12);
    animation: scaleIn 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-card-badge {
    width: 66px;
    height: 66px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tikea-cyan);
    font-size: 1.55rem;
    background: linear-gradient(135deg, rgba(59, 211, 74, 0.16), rgba(7, 95, 232, 0.12));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

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

.login-form .login-header h1 {
    margin: 0 0 8px;
    color: var(--tikea-text);
    font-size: clamp(2rem, 4vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

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

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

.container-login .form-group label {
    display: block;
    margin-bottom: 9px;
    color: var(--tikea-text);
    font-size: 0.94rem;
    font-weight: 700;
}

.input-wrap {
    position: relative;
}

.container-login .form-control-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: #7d8ba8;
    font-size: 1.05rem;
    transition: color 0.25s ease;
    z-index: 2;
}

.container-login .input-wrap:focus-within .form-control-icon {
    color: var(--tikea-blue-2);
}

.right-panel [type="text"],
.right-panel [type="password"] {
    width: 100%;
    height: 56px;
    padding: 0 18px 0 52px;
    border: 1px solid var(--tikea-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--tikea-text) !important;
    font-size: 1rem;
    line-height: 56px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.right-panel [type="text"]::placeholder,
.right-panel [type="password"]::placeholder {
    color: #9aa8c0;
}

.right-panel [type="text"]:focus,
.right-panel [type="password"]:focus {
    border-color: rgba(7, 95, 232, 0.62);
    background: #fbfdff;
    box-shadow: 0 0 0 4px rgba(7, 95, 232, 0.11);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 4px 0 26px;
    font-size: 0.93rem;
}

.login-options span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--tikea-muted);
    white-space: nowrap;
}

.login-options span i {
    color: var(--tikea-blue-2);
}

.login-options a {
    color: var(--tikea-blue-2);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease;
}

.login-options a:hover {
    color: var(--tikea-green);
    text-decoration: none;
}

.right-panel .login-button {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(100deg, var(--tikea-blue) 0%, var(--tikea-blue-2) 47%, var(--tikea-green) 100%);
    box-shadow: 0 16px 28px rgba(7, 59, 183, 0.22);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.right-panel .login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(7, 59, 183, 0.30);
    filter: saturate(1.08);
}

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

#resultLogin {
    width: 100%;
    margin-top: 16px;
    text-align: center;
    color: var(--tikea-text);
}

.verifica-sunat {
    margin-top: 30px;
    padding-top: 22px;
    text-align: center;
    border-top: 1px solid #edf2f8;
}

.verifica-sunat img {
    width: min(190px, 72%);
    max-width: 190px;
    height: auto;
    display: inline-block;
    opacity: 1;
    image-rendering: auto;
    filter: drop-shadow(0 8px 16px rgba(6, 22, 58, 0.08));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.verifica-sunat img:hover {
    transform: translateY(-1px);
    filter: drop-shadow(0 10px 18px rgba(6, 22, 58, 0.12));
}

.login-copy {
    position: relative;
    z-index: 1;
    margin: 22px 0 0;
    color: #687696;
    font-size: 0.92rem;
    text-align: center;
}

/* Animaciones */
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.97) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ================= TABLET / LAPTOP PEQUEÑA ================= */
@media screen and (max-width: 1180px) {
    .container-login {
        padding: 24px;
    }

    .login-shell {
        grid-template-columns: 0.95fr 1fr;
        min-height: 610px;
    }

    .container-login .left-panel {
        padding: 58px 82px 58px 48px;
    }

    .container-login .right-panel {
        padding: 42px 38px 36px 12px;
    }

    .brand-logo {
        width: min(315px, 82%);
    }
}

@media screen and (max-width: 992px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 720px;
        min-height: auto;
    }

    .container-login .left-panel {
        clip-path: none;
        min-height: auto;
        padding: 42px 36px 34px;
        text-align: center;
        align-items: center;
    }

    .brand-block {
        margin-bottom: 18px;
    }

    .brand-logo {
        width: min(285px, 74vw);
        object-position: center;
        margin: 0 auto;
    }

    .hero-text {
        max-width: 590px;
    }

    .left-panel .descrih1tion {
        font-size: clamp(2rem, 5vw, 2.75rem);
    }

    .left-panel .descrih1tion::after {
        margin-left: auto;
        margin-right: auto;
    }

    .left-panel .description {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .feature-list {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        max-width: 620px;
        gap: 12px;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 14px 10px;
        border-radius: 16px;
        background: rgba(255,255,255,0.08);
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .container-login .right-panel {
        padding: 34px 28px 30px;
    }

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

    .container-login .login-form {
        max-width: 560px;
        padding: 42px 38px 34px;
    }
}

/* ================= MÓVIL ================= */
@media screen and (max-width: 640px) {
    .container-login {
        min-height: 100svh;
        padding: 18px 14px;
        align-items: center;
        background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
    }

    .login-shell {
        width: 100%;
        min-height: auto;
        border-radius: 24px;
        border: 0;
        box-shadow: 0 18px 46px rgba(6, 22, 58, 0.10);
        background: rgba(255, 255, 255, 0.88);
        overflow: visible;
    }

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

    .container-login .right-panel {
        padding: 22px 14px 18px;
        background: transparent;
        justify-content: center;
    }

    .mobile-brand {
        display: flex;
    }

    .container-login .login-form {
        max-width: none;
        padding: 24px 18px 20px;
        border-radius: 18px;
        box-shadow: 0 14px 34px rgba(6, 22, 58, 0.10);
    }

    .login-card-badge,
    .verifica-sunat,
    .login-copy,
    .login-options span {
        display: none;
    }

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

    .login-form .login-header h1 {
        font-size: 1.55rem;
        margin-bottom: 4px;
    }

    .login-form .login-header .subtitle {
        font-size: 0.92rem;
    }

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

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

    .right-panel [type="text"],
    .right-panel [type="password"] {
        height: 50px;
        line-height: 50px;
        font-size: 0.96rem;
        border-radius: 10px;
    }

    .login-options {
        justify-content: flex-end;
        margin: 2px 0 18px;
        font-size: 0.88rem;
    }

    .login-options a {
        margin-left: auto;
    }

    .right-panel .login-button {
        min-height: 52px;
        font-size: 1rem;
        border-radius: 10px;
    }
}

@media screen and (max-width: 380px) {
    .container-login {
        padding: 14px 10px;
    }

    .mobile-brand-logo {
        width: min(210px, 74vw);
    }

    .container-login .login-form {
        padding-left: 14px;
        padding-right: 14px;
    }
}
