/* Estilos compartidos de las páginas de autenticación (login / register) */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    margin: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.08), transparent 42%),
        radial-gradient(circle at 82% 78%, rgba(var(--dm-acento-rgb, 255,215,0), 0.15), transparent 45%),
        linear-gradient(135deg, var(--dm-primario-oscuro, #001b4d) 0%, var(--dm-primario, #003087) 55%, var(--dm-secundario, #0047ab) 100%);
}

.auth-card {
    display: flex;
    width: 100%;
    max-width: 940px;
    min-height: 600px;
    background: var(--dm-fondo-tarjeta, #fff);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.45);
}

.auth-brand {
    flex: 1 1 46%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.6rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--dm-primario, #003087) 0%, var(--dm-primario-claro, #0056b3) 60%, var(--dm-terciario, #1e79c7) 100%);
}

.auth-brand::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(var(--dm-acento-rgb, 255,215,0), 0.12);
}

.auth-brand::after {
    content: "";
    position: absolute;
    bottom: -110px;
    left: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.auth-brand > * {
    position: relative;
    z-index: 1;
}

.auth-logo {
    max-width: 210px;
    margin-bottom: 1.5rem;
}

.auth-marca {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

.auth-marca-icono {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--dm-acento, #ffd700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.auth-marca-nombre {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.15;
}

.auth-marca-sub {
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 300;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 1.6rem 0 0;
    display: grid;
    gap: 0.9rem;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.auth-features li i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--dm-acento, #ffd700);
    flex-shrink: 0;
}

.auth-brand small {
    margin-top: 2rem;
    opacity: 0.7;
}

.auth-form {
    flex: 1 1 54%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.auth-form-inner {
    width: 100%;
    max-width: 400px;
}

.auth-logo-movil {
    display: none;
    max-width: 140px;
    margin: 0 auto 1.2rem auto;
}

.auth-titulo {
    font-weight: 800;
    color: var(--dm-texto-oscuro, #13213a);
    font-size: 1.5rem;
}

.auth-subtitulo {
    color: var(--dm-texto-claro, #7a8496);
    font-size: 0.92rem;
}

/* Campos de formulario */
.auth-grupo {
    margin-bottom: 1.1rem;
    text-align: left;
}

.auth-grupo .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dm-texto-oscuro, #26334a);
    margin-bottom: 0.35rem;
}

.auth-input-group {
    box-shadow: 0 2px 8px rgba(15, 29, 69, 0.06);
}

.auth-input-group .input-group-text {
    border-color: var(--dm-borde-claro, #e1e0ec);
    border-right: none;
    background: var(--dm-fondo-claro, #f5f7fb);
    color: var(--dm-primario, #003087);
    padding-left: 1rem;
    padding-right: 0.9rem;
}

.auth-input-group .form-control {
    border-color: var(--dm-borde-claro, #e1e0ec);
    border-left: none;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
}

.auth-input-group .form-control:focus {
    border-color: var(--dm-primario, #003087);
    box-shadow: 0 0 0 0.22rem rgba(var(--dm-primario-rgb, 0,48,135), 0.12);
}

.toggle-password {
    border: 1px solid var(--dm-borde-claro, #e1e0ec);
    border-left: none;
    background: var(--dm-fondo-tarjeta, #fff);
    color: var(--dm-texto-claro, #7a8496);
    border-radius: 0 999px 999px 0;
}

.toggle-password:hover {
    color: var(--dm-primario, #003087);
    background: var(--dm-fondo-claro, #f5f7fb);
}

/* Botones */
.btn-auth {
    border-radius: 999px;
    padding: 0.72rem 1.4rem;
    font-weight: 700;
    color: #fff;
    background: var(--dm-boton-gradient, linear-gradient(135deg, var(--dm-primario, #003087), var(--dm-primario-claro, #0056b3)));
    border: none;
    box-shadow: 0 8px 20px rgba(var(--dm-primario-rgb, 0,48,135), 0.35);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-auth:hover {
    color: #fff;
    transform: translateY(-2px);
    background: var(--dm-boton-hover-gradient, linear-gradient(135deg, var(--dm-acento, #ffd700), var(--dm-acento-oscuro, #e6b800)));
    box-shadow: 0 10px 26px rgba(var(--dm-acento-rgb, 255,215,0), 0.45);
}

.btn-auth:active {
    transform: translateY(0);
}

.btn-auth-secundario {
    border-radius: 999px;
    padding: 0.72rem 1.4rem;
    font-weight: 600;
    color: var(--dm-primario, #003087);
    background: transparent;
    border: 2px solid var(--dm-primario, #003087);
    transition: all 0.2s ease;
}

.btn-auth-secundario:hover {
    background: rgba(var(--dm-primario-rgb, 0,48,135), 0.06);
    color: var(--dm-primario, #003087);
    border-color: var(--dm-primario, #003087);
    transform: translateY(-1px);
}

.auth-link {
    color: var(--dm-primario, #003087);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.auth-link:hover {
    color: var(--dm-primario, #003087);
    border-bottom-color: var(--dm-primario, #003087);
}

.auth-pie {
    font-size: 0.8rem;
    color: #8a93a6;
}

@media (max-width: 768px) {
    .auth-body {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2.5rem;
    }

    .auth-card {
        flex-direction: column;
        min-height: auto;
        border-radius: 18px;
    }

    .auth-brand {
        display: none;
    }

    .auth-form {
        padding: 1.8rem 1.5rem;
    }

    .auth-logo-movil {
        display: block;
    }
}