/* ── MAIN ── */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 5%;
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
}

/* Encabezado del formulario */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header .section-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.45rem;
}

.form-header h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--blue-dark);
    line-height: 1.3;
}

.form-header p {
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 0.5rem;
    line-height: 1.6;
}

/* Tarjeta del formulario */
.form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(26, 79, 156, 0.07);
    padding: 2.2rem 2.4rem;
}

/* Campos */
.field {
    margin-bottom: 1.4rem;
}

.field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.45rem;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap .icon {
    position: absolute;
    left: 12px;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.input-wrap .icon svg {
    width: 17px;
    height: 17px;
    stroke: var(--muted);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.input-wrap input {
    width: 100%;
    padding: 0.75rem 0.9rem 0.75rem 2.55rem;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.input-wrap input::placeholder {
    color: #B0B7C3;
}

.input-wrap input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26, 79, 156, 0.1);
}

.field-hint {
    font-size: 0.73rem;
    color: var(--muted);
    margin-top: 0.35rem;
}

/* Botón */
.btn-login {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--blue);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.9rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s, transform 0.15s;
}

.btn-login:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.btn-login svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 1.2rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Aviso de seguridad */
.security-note {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-light);
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
    font-size: 0.78rem;
    color: var(--blue-dark);
    line-height: 1.4;
}

.security-note svg {
    width: 16px;
    height: 16px;
    stroke: var(--blue);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Enlace de regreso */
.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 1.6rem;
    font-size: 0.82rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--blue);
}

.back-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Contenedor de los iconos (Fijo a 24px para evitar desbordamientos) */
.eye-icon-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Evita cualquier parpadeo visual fuera del área */
}

/* Estilo base para ambos SVGs */
.eye-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Transición rápida y fluida para simular el pestañeo */
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease;
}

/* ================= ESTADO INICIAL (Ojo Abierto) ================= */
.eye-open {
    opacity: 1;
    transform: scaleY(1); /* Su tamaño vertical original */
}

.eye-closed {
    opacity: 0;
    transform: scaleY(0); /* Completamente aplastado en el centro (cerrado) */
}

/* ================= ESTADO ANIMADO (Al hacer clic / Ojo Cerrado) ================= */

/* El ojo abierto se aplasta verticalmente hacia el centro hasta desaparecer */
.ver-password .eye-open {
    opacity: 0;
    transform: scaleY(0);
}

/* El ojo cerrado recupera su escala vertical original, simulando que se despliega */
.ver-password .eye-closed {
    opacity: 1;
    transform: scaleY(1);
}