.auth-wrapper {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
    background: var(--bg-page);
}
.auth-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    width: 100%; max-width: 420px;
    box-shadow: var(--shadow-card);
}
.auth-logo {
    display: flex; align-items: center; justify-content: center;
    gap: 0.625rem; margin-bottom: 2rem; text-decoration: none;
}
.auth-logo-img {
    max-width: 180px;
    width: auto;
    height: 64px;
    object-fit: contain;
    display: block;
}
.auth-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    color: var(--text-heading);
}
.auth-logo-text strong { font-size: 1.25rem; font-weight: 700; }
.auth-logo-text span { font-size: 0.8125rem; color: var(--text-muted); }
.auth-title { font-size: 1.375rem; font-weight: 700; color: var(--text-heading); text-align: center; margin-bottom: 0.25rem; }
.auth-subtitle { font-size: 0.875rem; color: var(--text-muted); text-align: center; margin-bottom: 1.75rem; }
.auth-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.auth-label { font-size: 0.85rem; font-weight: 600; color: var(--text-label); }
.auth-input-wrap { position: relative; }
.auth-input {
    width: 100%; padding: 0.625rem 0.875rem 0.625rem 2.5rem;
    border: 1px solid var(--input-border); border-radius: 8px;
    background: var(--bg-elevated); color: var(--text-body);
    font-size: 0.875rem; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.auth-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-shadow); background: var(--bg-surface); }
.auth-input-icon {
    position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 1rem; pointer-events: none;
}
.auth-btn {
    width: 100%; padding: 0.7rem 1rem; border-radius: 8px;
    background: var(--primary); color: #fff; border: none;
    font-size: 0.9375rem; font-weight: 600; cursor: pointer;
    transition: opacity 0.15s; margin-top: 0.5rem;
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.auth-btn:hover { opacity: 0.92; }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-error {
    background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.3);
    border-radius: 8px; padding: 0.75rem; margin-bottom: 1rem;
    color: var(--danger); font-size: 0.8125rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.8125rem; color: var(--text-muted); }

/* ── Recuperación de contraseña + ojo mostrar/ocultar ─────────────────── */
.auth-success {
    background: rgba(22,163,74,0.08); border: 1px solid rgba(22,163,74,0.3);
    border-radius: 8px; padding: 0.75rem; margin-bottom: 1rem;
    color: var(--success); font-size: 0.8125rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.auth-link { color: var(--primary); text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-back { text-align: center; margin-top: 1rem; font-size: 0.8125rem; }
.auth-back a {
    color: var(--primary); text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.3rem;
}
.auth-back a:hover { text-decoration: underline; }
/* El botón principal también se usa como <a> (ej. "Pedir un link nuevo"). */
a.auth-btn { text-decoration: none; }
/* Input de contraseña con ojo a la derecha (el candado sigue a la izquierda). */
.auth-input.has-toggle { padding-right: 2.75rem; }
.auth-eye-toggle {
    position: absolute; right: 0.45rem; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: none; padding: 0.3rem; border-radius: 6px;
    color: var(--text-muted); font-size: 1.05rem; line-height: 1; cursor: pointer;
}
.auth-eye-toggle:hover { color: var(--text-body); }
.auth-eye-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
