/* ================================================
   auth.css — stili condivisi per login e registrazione
   Dipende da: base.css
================================================ */

/* ── Card centrata ── */
.auth-wrap {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow:
        0 4px 32px rgba(255, 112, 0, 0.12),
        0 1px 4px rgba(0,0,0,0.06);
    padding: 2.5rem 2rem;
}

/* ── Header card ── */
.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-logo img {
    height: 48px;
    width: auto;
}

.auth-title {
    font-family: "Berlin Sans FB Demi", sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #111827;
    text-align: center;
    margin-bottom: 0.35rem;
}

.auth-subtitle {
    font-size: 0.88rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 2rem;
}

/* ── Form ── */
.auth-field {
    margin-bottom: 1.1rem;
}

.auth-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.35rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.auth-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #111827;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: #ff7000;
    box-shadow: 0 0 0 3px rgba(255, 112, 0, 0.15);
    background: #fff;
}

.auth-input.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* ── Password toggle ── */
.auth-input-wrap {
    position: relative;
}

.auth-input-wrap .auth-input {
    padding-right: 2.8rem;
}

.auth-eye-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.auth-eye-btn:hover { color: #ff7000; }

/* ── Submit button ── */
.auth-btn {
    width: 100%;
    padding: 0.75rem;
    background: #ff7000;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 0.5rem;
    box-shadow: 0 4px 14px rgba(255, 112, 0, 0.30);
}

.auth-btn:hover  {
    background: #e56500;
    box-shadow: 0 6px 18px rgba(255, 112, 0, 0.40);
}
.auth-btn:active { transform: scale(0.98); }
.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── Feedback status ── */
.auth-status {
    min-height: 1.4em;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-top: 0.75rem;
    border-radius: 8px;
    padding: 0 0.5rem;
}

.auth-status--ok  { color: #16a34a; }
.auth-status--err { color: #dc2626; }

/* ── Link switch (login ↔ registrazione) ── */
.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.88rem;
    color: #6b7280;
}

.auth-switch a {
    color: #ff7000;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-switch a:hover { color: #e56500; text-decoration: underline; }

/* ── Divisore ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: #d1d5db;
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* ── Field hint ── */
.auth-hint {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }
    .auth-title { font-size: 1.35rem; }
}