@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: #f2f4f8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================================== FONDO DEL SISTEMA ===================================================== */
.app-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 85% 15%, rgba(188, 149, 92, 0.20), transparent 35%), radial-gradient(circle at 10% 80%, rgba(159, 34, 65, 0.35), transparent 35%), radial-gradient(circle at 20% 20%, rgba(188, 149, 92, 0.15), transparent 30%), linear-gradient(135deg, #1a0a10 0%, #2a0f1a 30%, #9F2241 70%, #BC955C 100%);
}

.ht-100v {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ===================================================== TARJETA LOGIN ===================================================== */
.login-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    max-width: 900px !important;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25), 0 10px 30px rgba(0, 0, 0, .15);
    animation: loginFade .5s ease;
}

@keyframes loginFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================================== PANEL IZQUIERDO ===================================================== */
.login-left-panel {
    padding: 55px 55px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    position: relative;
}

/* logo */
.login-logo-row {
    margin-bottom: 30px;
}

.login-logo {
    height: 70px;
}

/* TITULOS */
.login-headline {
    font-size: 2rem;
    font-weight: 800;
    color: #172b4d;
    line-height: 1.2;
    margin-bottom: 10px;
}

.login-subline {
    font-size: .92rem;
    color: #7a869a;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ===================================================== INPUTS ===================================================== */
.login-wrapper .form-group {
    display: flex;
    align-items: center;
    height: 52px;
    border: 1.5px solid #e5e9f2;
    border-radius: 12px;
    background: #f7f9fc;
    margin-bottom: 16px;
    transition: all .25s ease;
}

.login-wrapper .form-group:hover {
    border-color: #d2d9e6;
}

.login-wrapper .form-group:focus-within {
    border-color: #9F2241;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(159, 34, 65, .15);
}

/* icono */
.input-icon {
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #9aa4b6;
}

/* input */
.form-cdmx-control {
    flex: 1;
    border: none !important;
    background: transparent !important;
    outline: none;
    font-size: .95rem;
    font-weight: 600;
    color: #172b4d !important;
    padding-right: 14px !important;
}

.form-cdmx-control::placeholder {
    color: #a8b0c2;
    font-weight: 400;
}

/* ====================================================== BOTÓN DE INICIO DE SESIÓN ====================================================== */
.btn-cdmx {
    width: 100%;
    height: 52px;
    margin-top: 10px;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    font-size: .9rem;
    cursor: pointer;
    color: #fff !important;
    background: linear-gradient(135deg, #9F2241 0%, #C8102E 100%) !important;
    box-shadow: 0 12px 30px rgba(159, 34, 65, .40);
    transition: all .25s ease;
}

.btn-cdmx:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(159, 34, 65, .45);
}

.btn-cdmx:active {
    transform: translateY(-1px);
}

/* ===================================================== DIVISOR ====================================================== */
.login-divider {
    margin: 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c4c9d6;
    font-size: .8rem;
}

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

/* ====================================================== PIE DE PÁGINA ====================================================== */
.login-foot {
    text-align: center;
    font-size: .78rem;
    color: #9aa4b6;
}

/* ====================================================== ALERTAS ===================================================== */
.login-wrapper .alert {
    font-size: .85rem;
    border: none;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.login-wrapper .alert-danger {
    background: #fff0f2;
    color: #9f1c32;
    border-left: 4px solid #C8102E;
}

.login-wrapper .alert-warning {
    background: #fff7e6;
    color: #a66b00;
    border-left: 4px solid #f59e0b;
}

/* ====================================================== PANEL DERECHO ===================================================== */
.login-right-panel {
    position: relative;
    background: #000;
    overflow: hidden;
}

.login-right-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .9;
}

.login-right-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
}

/* superposición de texto */
.login-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 30px;
    color: #fff;
}

.login-photo-label {
    font-size: .75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: .6;
    margin-bottom: 6px;
}

.login-photo-title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.3;
}

/* ====================================================== CUADRÍCULA DE PUNTOS ====================================================== */
.login-dot-grid {
    position: absoluto;
    arriba: 20px;
    derecha: 20px;
    mostrar: cuadrícula;
    columnas-de-plantilla-cuadrícula: repetir(5, 7px);
    espacio: 6px;
}

.login-dot-grid span {
    ancho: 6px;
    alto: 6px;
    radio-borde: 50%;
    fondo: rgba(200, 16, 46, .6);
}

/* ===================================================== RESPONSIVO ====================================================== */
@media (max-width:900px) {
    .login-wrapper {
        max-width: 700px;
    }

    .login-left-panel {
        padding: 45px 40px;
    }
}

@media (max-width:700px) {
    .login-wrapper {
        grid-template-columns: 1fr !important;
        max-width: 460px;
    }

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

    .login-left-panel {
        padding: 40px 32px;
    }

    .login-headline {
        font-size: 1.6rem;
    }
}

@media (max-width:420px) {
    .login-left-panel {
        padding: 34px 26px;
    }

    .login-headline {
        font-size: 1.4rem;
    }
}