/* assets/css/auth.css — Pagine di autenticazione (registrazione, login) */
.ec-auth { display: flex; justify-content: center; padding: 40px 16px; }
.ec-auth-card {
    width: 100%; max-width: 420px;
    background: #fff; border: 1px solid #e5e2dc; border-radius: 12px;
    padding: 28px 26px; box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.ec-auth-title { margin: 0 0 4px; font-size: 1.5rem; }
.ec-auth-sub   { margin: 0 0 20px; color: #6b6b6b; font-size: .95rem; }

.ec-auth-tipo { display: flex; gap: 10px; margin-bottom: 20px; }
.ec-tipo-opt {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 10px; border: 1px solid #d8d4cc; border-radius: 8px;
    cursor: pointer; user-select: none; font-size: .95rem;
}
.ec-tipo-opt input { display: none; }
.ec-tipo-opt.is-active {
    border-color: #1f5fbf; background: #eef4ff; color: #1f5fbf; font-weight: 600;
}

.ec-field { margin-bottom: 14px; display: flex; flex-direction: column; }
.ec-field label { font-size: .9rem; margin-bottom: 5px; color: #333; }
.ec-field input {
    padding: 10px 12px; border: 1px solid #d8d4cc; border-radius: 8px;
    font-size: 1rem; background: #fdfdfc;
}
.ec-field input:focus {
    outline: none; border-color: #1f5fbf; box-shadow: 0 0 0 3px rgba(31,95,191,.12);
}
.ec-hint { color: #8a8a8a; font-size: .8rem; margin-top: 4px; }

.ec-auth-msg { margin: 4px 0 14px; font-size: .9rem; border-radius: 8px; padding: 8px 10px; }
.ec-auth-msg.is-error { background: #fdecec; color: #b3261e; }
.ec-auth-msg.is-ok    { background: #eef7ee; color: #276b2b; }

.ec-btn { width: 100%; padding: 12px; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; }
.ec-btn-primary { background: #1f5fbf; color: #fff; font-weight: 600; }
.ec-btn-primary:hover { background: #1a52a5; }
.ec-btn:disabled { opacity: .6; cursor: default; }

.ec-auth-alt { margin: 16px 0 0; text-align: center; font-size: .9rem; }
.ec-auth-alt a { color: #1f5fbf; }