/* Alfera Auth Pages — /login e /registrati */

.alfera-auth-wrapper {
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px 80px;
    background: transparent;
}

.alfera-auth-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
    padding: 40px 36px;
    box-sizing: border-box;
}

.alfera-auth-title {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 6px 0;
    color: #111827;
    font-weight: 600;
}

.alfera-auth-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px 0;
}

.alfera-auth-notice {
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
}
.alfera-auth-notice-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.alfera-auth-notice a {
    color: inherit;
    text-decoration: underline;
}

/* Slot per pulsanti social (es. Continua con Google). Vuoto se nessun plugin
   social e' agganciato all'hook 'alfera_auth_social_buttons'. */
.alfera-auth-social:empty {
    display: none;
}
.alfera-auth-social:empty + .alfera-auth-divider {
    display: none;
}
.alfera-auth-social {
    margin-bottom: 18px;
}
.alfera-auth-social > * {
    width: 100% !important;
}

.alfera-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 22px;
    color: #9ca3af;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.alfera-auth-divider::before,
.alfera-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.alfera-auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.alfera-auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 480px) {
    .alfera-auth-grid-2 {
        grid-template-columns: 1fr;
    }
    .alfera-auth-card {
        padding: 28px 22px;
    }
}

.alfera-auth-field {
    display: flex;
    flex-direction: column;
}
.alfera-auth-field label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.alfera-auth-field label .required {
    color: #b94535;
    margin-left: 2px;
}
.alfera-auth-field input[type="text"],
.alfera-auth-field input[type="email"],
.alfera-auth-field input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    color: #111827;
    background: #ffffff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.alfera-auth-field input:focus {
    outline: none;
    border-color: #577271;
    box-shadow: 0 0 0 3px rgba(87, 114, 113, .18);
}
.alfera-auth-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
}

.alfera-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 4px;
}
.alfera-auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
}
.alfera-auth-checkbox input {
    accent-color: #577271;
    width: 16px;
    height: 16px;
}
.alfera-auth-link-small {
    font-size: 13px;
    color: #577271;
    text-decoration: none;
}
.alfera-auth-link-small:hover {
    text-decoration: underline;
}

.alfera-auth-submit {
    margin-top: 8px;
    width: 100%;
    padding: 13px 16px;
    border-radius: 8px;
    border: none;
    background: #577271;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, transform .05s ease;
}
.alfera-auth-submit:hover {
    background: #45605e;
}
.alfera-auth-submit:active {
    transform: translateY(1px);
}

/* Checkbox privacy obbligatoria */
.alfera-auth-privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
}
.alfera-auth-privacy-check input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #577271;
    cursor: pointer;
}
.alfera-auth-privacy-check span {
    flex: 1;
}
.alfera-auth-privacy-check a {
    color: #577271;
    text-decoration: underline;
}
.alfera-auth-privacy-check .required {
    color: #b94535;
    margin-left: 2px;
}
.alfera-auth-privacy-check:has(input:invalid) {
    color: #b94535;
}

.alfera-auth-footer {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin: 28px 0 0;
}
.alfera-auth-footer a {
    color: #577271;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}
.alfera-auth-footer a:hover {
    text-decoration: underline;
}
