/* ═══════════════════════════════════════════════════
   Login / Registro — formularios de autenticación
═══════════════════════════════════════════════════ */

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.auth-field label {
    font-size: 12.5px;
    font-weight: 650;
    color: var(--text-secondary);
}

.auth-field label .req { color: var(--error); margin-left: 2px; }

.auth-field input,
.auth-field select {
    font-family: var(--font);
    font-size: 14.5px;
    color: var(--text-primary);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 11px 14px;
    transition: all 0.16s var(--ease);
    width: 100%;
}

.auth-field input:focus,
.auth-field select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--accent-ring);
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

@media (max-width: 560px) {
    .auth-grid { grid-template-columns: 1fr; }
}

.auth-span-2 { grid-column: span 2; }

@media (max-width: 560px) {
    .auth-span-2 { grid-column: span 1; }
}

.auth-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 650;
    padding: 13px 24px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    margin-top: 6px;
    box-shadow: 0 4px 20px rgba(27, 117, 187, 0.3);
}

.auth-submit:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(27, 117, 187, 0.4);
}

.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 13.5px;
    color: var(--text-secondary);
}

.auth-footer a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ── Campo de contraseña con botón de mostrar/ocultar ── */
.auth-password-wrap { position: relative; }

.auth-password-wrap input { padding-right: 42px; }

.auth-toggle-pass {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.auth-toggle-pass:hover { color: var(--accent); background: var(--accent-light); }
.auth-toggle-pass svg { pointer-events: none; }

/* ── Hint de disponibilidad de usuario ── */
.auth-hint {
    font-size: 12px;
    font-weight: 600;
    min-height: 15px;
}

.auth-hint.checking { color: var(--text-muted); }
.auth-hint.ok { color: var(--success); }
.auth-hint.taken { color: var(--error); }
