/* ==========================================================================
   Amica Auth — Layout centrato per pagine di autenticazione
   (login, password reset, logout, creazione account)
   ========================================================================== */

/* Wrapper centrato full-viewport */

.centered-page-wrapper {
    position: relative;
    min-height: 100vh;
    background: var(--color-bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Card di autenticazione */

.auth-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-card);
    padding: var(--spacing-card);
    width: 100%;
    max-width: 400px;
    min-width: 280px;
}

.auth-card--wide {
    max-width: 480px;
}

/* Logo */

.auth-card-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-card-logo img {
    width: 3.7rem;
    height: auto;
}

/* Titolo */

.auth-card-title {
    text-align: center;
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-heading);
    font-size: var(--font-size-xlarge);
    color: var(--color-text-heading);
    margin-bottom: 1.5rem;
}

/* Form elements dentro auth-card */

.auth-card .form-group {
    margin-bottom: 1rem;
}

.auth-card .form-group:last-of-type {
    margin-bottom: 0.5rem;
}

.auth-card .btn-primary {
    width: 100%;
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    font-size: var(--font-size-large);
}

.auth-card .btn-cancel {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
    color: var(--color-text-muted);
    font-size: var(--font-size-small);
    background: none;
    border: none;
    cursor: pointer;
}

.auth-card .btn-cancel:hover {
    color: var(--color-text);
    text-decoration: underline;
}

/* Checkbox (ricordami) */

.auth-card .form-check {
    margin-top: 0.75rem;
}

.auth-card .form-check-label {
    font-weight: 400;
    font-size: var(--font-size-medium);
    color: var(--color-text);
}

/* Footer (link password dimenticata, ecc.) */

.auth-card-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: var(--font-size-small);
}

.auth-card-footer a {
    color: var(--color-text-muted);
}

.auth-card-footer a:hover {
    color: var(--color-primary);
}

/* Separatore per provider esterni */

.auth-card-divider {
    border-top-color: var(--color-border);
    margin: 1.5rem 0;
}

/* Provider esterni */

.external-providers .btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Validation summary dentro auth-card */

.auth-card .alert {
    font-size: var(--font-size-small);
    margin-bottom: 1rem;
}

/* Messaggio informativo (email inviata, successo, ecc.) */

.auth-card-message {
    text-align: center;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.auth-card-message p {
    margin-bottom: 0.5rem;
}

/* Icona successo/info */

.auth-card-icon {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 3rem;
    color: var(--color-primary);
}

.auth-card-icon.success {
    color: #28a745;
}
