/* =========================================
   VARIABLES Y BASE (LionSystems GT)
   ========================================= */
:root {
    --azul-oscuro: #0B1F2E;
    --azul-medio: #1E5FA8;
    --azul-brillante: #2FA4E7;
    --azul-claro: #6EC1E4;
    --gris: #6B7280;
    --blanco: #ffffff;
    --fondo: #f4f7f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--fondo);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* =========================================
   CONTENEDOR PRINCIPAL Y VISTAS
   ========================================= */
.auth-container {
    background: var(--blanco);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-top: 8px solid var(--azul-medio);
}

/* Control de visibilidad de vistas */
.auth-view {
    display: none; /* Oculto por defecto */
    animation: fadeIn 0.5s ease forwards;
}

.auth-view.active {
    display: block; /* Solo se muestra la vista activa */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   PESTAÑAS (TABS)
   ========================================= */
.tab-group {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-weight: 700;
    color: var(--gris);
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.tab.active {
    color: var(--azul-brillante);
    border-bottom: 3px solid var(--azul-brillante);
}

.form-content {
    display: none;
}

.form-content.active {
    display: block;
}

/* =========================================
   FORMULARIOS E INPUTS
   ========================================= */
label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--azul-oscuro);
    text-transform: uppercase;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--azul-claro);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    transition: 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--azul-brillante);
    box-shadow: 0 0 8px rgba(47, 164, 231, 0.2);
}

.btn-submit {
    background: linear-gradient(to right, var(--azul-medio), var(--azul-brillante));
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* =========================================
   VISTA DE VERIFICACIÓN (CÓDIGO 4 DÍGITOS)
   ========================================= */
.code-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 25px 0;
}

.code-inputs input {
    width: 65px;
    height: 75px;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0; /* Reset para alineación */
}

/* =========================================
   ICONOS Y TEXTOS DE RECUPERACIÓN
   ========================================= */
.recover-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 15px;
}

.recover-title {
    text-align: center;
    color: var(--azul-oscuro);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.recover-desc {
    text-align: center;
    color: var(--gris);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* =========================================
   ENLACES Y FOOTER
   ========================================= */
.forgot-pass, .back-link, .resend-link {
    display: block;
    text-align: center;
    text-decoration: none;
    font-size: 0.85rem;
    margin-top: 20px;
}

.forgot-pass { color: var(--gris); }
.back-link { color: var(--azul-medio); font-weight: 700; }
.resend-link { color: var(--gris); }
.resend-link a { color: var(--azul-brillante); font-weight: 700; text-decoration: none; }

.back-link:hover, .resend-link a:hover {
    text-decoration: underline;
}

.ls-footer {
    background: var(--azul-oscuro);
    color: #6b8299;
    text-align: center;
    padding: 16px;
    font-size: 0.78rem;
}

.ls-footer span {
    color: var(--azul-brillante);
    font-weight: 700;
}