/* ======================================================
   LOGIN - ACABADO FINAL / CORPORATIVO EJECUTIVO
   Colores base del logo: azul petróleo y naranja
   Estilos encapsulados en .container-login
   ====================================================== */

.container-login {
    --brand-blue: #003C58;
    --brand-blue-soft: #0B4D6B;
    --brand-blue-dark: #082E42;
    --brand-orange: #F78116;
    --brand-orange-soft: #FFF2E4;
    --text-dark: #102B3C;
    --text-medium: #607286;
    --text-muted: #8997A6;
    --border-soft: #DCE6EE;
    --card-border: #E6EDF3;
    --white: #FFFFFF;

    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(760px, 1.18fr) minmax(500px, 0.82fr);
    align-items: stretch;
    background: linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 58%, #F7FAFC 58%, #EEF3F7 100%);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    position: relative;
    overflow: hidden;
}

.container-login::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-blue) 88%, var(--brand-orange) 88%, var(--brand-orange) 100%);
    z-index: 2;
}

.container-login::after {
    content: '';
    position: absolute;
    right: -130px;
    top: 56px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(247, 129, 22, 0.08);
    pointer-events: none;
}

.container-login .left-panel,
.container-login .right-panel {
    position: relative;
    z-index: 1;
}

/* ================= LEFT SIDE ================= */
.container-login .left-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 54px 46px 72px;
}

.brand-wrap {
    margin-bottom: 32px;
}

.logo-block {
    display: inline-flex;
    align-items: center;
    gap: 24px;
}

.logo-block img {
    width: 132px;
    height: 132px;
    object-fit: contain;
}

.brand-text h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.72rem;
    font-weight: 850;
    letter-spacing: 0.04px;
}

.brand-text span {
    display: inline-block;
    margin-top: 8px;
    color: var(--text-medium);
    font-size: 1.14rem;
    font-weight: 650;
}

.hero-copy {
    max-width: 1040px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin-bottom: 18px;
    padding: 10px 17px;
    border-radius: 999px;
    background: var(--brand-orange-soft);
    color: var(--brand-orange);
    font-size: 0.98rem;
    font-weight: 780;
}

.section-accent {
    width: 52px;
    height: 4px;
    border-radius: 999px;
    background: var(--brand-orange);
    display: block;
    margin-bottom: 22px;
}

.hero-copy h1 {
    margin: 0 0 18px;
    color: var(--text-dark);
    font-size: clamp(3.2rem, 4.6vw, 5.2rem);
    line-height: 1.04;
    letter-spacing: -1.9px;
    font-weight: 850;
    max-width: 880px;
}

.hero-copy h1 strong {
    color: var(--brand-orange);
    font-weight: 850;
}

.hero-copy p {
    margin: 0 0 24px;
    max-width: 780px;
    color: var(--text-medium);
    font-size: 1.15rem;
    line-height: 1.72;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.hero-pills span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 999px;
    background: #F8FAFC;
    border: 1px solid #E7EEF4;
    color: var(--brand-blue);
    font-size: 0.96rem;
    font-weight: 760;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 1000px;
}

.feature-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-height: 138px;
    padding: 22px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--card-border);
    box-shadow: 0 14px 30px rgba(16, 43, 60, 0.05);
}

.feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, var(--brand-orange) 0%, rgba(247, 129, 22, 0.35) 100%);
}

.feature-icon {
    width: 54px;
    min-width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFC 100%);
    border: 1px solid #E4ECF3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-blue);
    font-size: 1.14rem;
    box-shadow: 0 8px 18px rgba(0, 60, 88, 0.04);
}

.feature-icon i {
    line-height: 1;
}

.feature-text h3 {
    margin: 0 0 8px;
    color: var(--text-dark);
    font-size: 1.09rem;
    font-weight: 820;
    line-height: 1.32;
}

.feature-text span {
    color: var(--text-medium);
    font-size: 0.97rem;
    line-height: 1.55;
}

.support-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 26px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #FBFCFD;
    border: 1px solid #E8EEF3;
    color: var(--text-medium);
    font-size: 0.97rem;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 9px;
    position: relative;
}

.support-item:not(:last-child)::after {
    content: '';
    width: 1px;
    height: 16px;
    background: #D3DDE6;
    margin-left: 16px;
}

.support-item-highlight i,
.support-item-highlight strong {
    color: var(--brand-orange);
}

/* ================= RIGHT SIDE ================= */
.container-login .right-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 54px 30px 30px;
}

.login-form-card {
    position: relative;
    width: 100%;
    max-width: 570px;
    background: rgba(255, 255, 255, 0.985);
    border: 1px solid rgba(15, 44, 63, 0.08);
    border-radius: 30px;
    box-shadow: 0 28px 56px rgba(15, 44, 63, 0.12), 0 1px 0 rgba(255, 255, 255, 0.75) inset;
    padding: 44px 42px 36px;
}

.login-form-card::before {
    content: '';
    position: absolute;
    left: 26px;
    right: 26px;
    top: 0;
    height: 4px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-blue) 100%);
}

.login-card-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo-mini {
    width: 164px;
    height: 164px;
    margin: 0 auto 18px;
    border-radius: 38px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFC 100%);
    border: 1px solid #E5ECF2;
    box-shadow: 0 18px 34px rgba(15, 44, 63, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-logo-mini img {
    width: 122px;
    height: 122px;
    object-fit: contain;
}

.login-brand-name {
    margin-bottom: 10px;
    color: var(--brand-blue);
    font-size: 1.18rem;
    font-weight: 850;
    letter-spacing: 0.2px;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--brand-orange-soft);
    color: var(--brand-orange);
    font-size: 0.88rem;
    font-weight: 800;
}

.login-card-header h1 {
    margin: 0 0 10px;
    color: var(--text-dark);
    font-size: 2.45rem;
    font-weight: 850;
    letter-spacing: -0.55px;
}

.login-card-header p {
    max-width: 390px;
    margin: 0 auto;
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.56;
}

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

.container-login .form-control-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #8492A1;
    font-size: 1.04rem;
    z-index: 2;
}

.container-login .right-panel input[type="text"],
.container-login .right-panel input[type="password"] {
    width: 100%;
    height: 64px;
    border: 1px solid var(--border-soft);
    border-radius: 15px;
    background: #FFFFFF;
    color: var(--text-dark);
    font-size: 1.06rem;
    font-weight: 650;
    padding: 0 16px 0 54px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.container-login .right-panel input[type="text"]::placeholder,
.container-login .right-panel input[type="password"]::placeholder {
    color: #98A4B3;
    font-weight: 520;
}

.container-login .right-panel input[type="text"]:focus,
.container-login .right-panel input[type="password"]:focus {
    border-color: rgba(0, 60, 88, 0.42);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(0, 60, 88, 0.075);
}

.login-actions-row {
    margin-top: 2px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.remember-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text-medium);
    font-size: 0.96rem;
    cursor: default;
    user-select: none;
}

.remember-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--brand-blue);
}

.help-link {
    color: var(--brand-orange);
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 800;
}

.help-link:hover {
    text-decoration: underline;
    color: var(--brand-orange);
}

.help-link.text-muted {
    color: var(--text-medium);
    font-weight: 650;
}

.login-button {
    width: 100%;
    height: 64px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--brand-blue-dark) 0%, var(--brand-blue) 100%);
    color: var(--white);
    font-size: 1.08rem;
    font-weight: 850;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(0, 60, 88, 0.20);
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.login-button:hover {
    background: linear-gradient(135deg, #07293B 0%, var(--brand-blue-soft) 100%);
    color: var(--white);
    box-shadow: 0 18px 34px rgba(0, 60, 88, 0.24);
}

.login-button:active {
    transform: translateY(1px);
}

#resultLogin {
    margin-top: 14px;
    text-align: center;
    color: var(--brand-blue);
    font-weight: 750;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 0.91rem;
    text-align: center;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #DCE4EB;
}

.verifica-sunat {
    text-align: center;
}

.verifica-sunat img {
    max-width: 172px;
    width: 100%;
    opacity: 0.94;
}

/* Ajustes para pantallas amplias: mayor presencia del logo y del formulario */
@media (min-width: 1600px) {
    .container-login {
        grid-template-columns: minmax(900px, 1.18fr) minmax(590px, 0.82fr);
    }

    .container-login .left-panel {
        padding-left: clamp(72px, 5vw, 112px);
        padding-right: clamp(52px, 4vw, 90px);
    }

    .logo-block img {
        width: 150px;
        height: 150px;
    }

    .brand-text h2 {
        font-size: 1.9rem;
    }

    .brand-text span {
        font-size: 1.2rem;
    }

    .login-form-card {
        max-width: 600px;
        padding: 48px 46px 38px;
    }

    .login-logo-mini {
        width: 178px;
        height: 178px;
    }

    .login-logo-mini img {
        width: 134px;
        height: 134px;
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1380px) {
    .container-login {
        grid-template-columns: minmax(620px, 1.12fr) minmax(450px, 0.88fr);
    }

    .feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-list .feature-item:nth-child(3) {
        grid-column: 1 / -1;
    }

    .hero-copy h1 {
        font-size: clamp(3rem, 4.4vw, 4.8rem);
    }
}

@media (max-width: 1180px) {
    .container-login {
        grid-template-columns: 1fr;
        background: linear-gradient(180deg, #F8FBFD 0%, #EEF4F8 100%);
    }

    .container-login::after {
        display: none;
    }

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

    .container-login .right-panel {
        min-height: 100vh;
        padding: 28px 24px 36px;
    }

    .login-form-card {
        max-width: 560px;
    }
}

@media (max-width: 860px) {
    .feature-list {
        grid-template-columns: 1fr;
    }

    .feature-list .feature-item:nth-child(3) {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .container-login {
        min-height: 100dvh;
        background: linear-gradient(180deg, #F8FBFD 0%, #EEF4F8 100%);
    }

    .container-login::before {
        height: 6px;
    }

    .container-login .right-panel {
        padding: 14px 14px 20px;
    }

    .login-form-card {
        padding: 22px 18px 20px;
        border-radius: 22px;
        box-shadow: 0 18px 36px rgba(15, 44, 63, 0.11);
    }

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

    .login-logo-mini {
        width: 128px;
        height: 128px;
        border-radius: 30px;
        margin-bottom: 12px;
        padding: 16px;
    }

    .login-logo-mini img {
        width: 92px;
        height: 92px;
    }

    .login-brand-name {
        font-size: 0.98rem;
        margin-bottom: 8px;
    }

    .login-badge,
    .login-card-header p,
    .login-divider,
    .verifica-sunat {
        display: none;
    }

    .login-card-header h1 {
        font-size: 1.72rem;
        margin-bottom: 0;
    }

    .container-login .right-panel input[type="text"],
    .container-login .right-panel input[type="password"],
    .login-button {
        height: 56px;
        font-size: 0.97rem;
    }

    .remember-check,
    .help-link {
        font-size: 0.94rem;
    }

    .login-actions-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 18px;
    }
}
