/* Pagine di autenticazione (login, credenziali non valide, recupero password):
   stesso linguaggio visivo del pannello admin (card bianche, bordi/raggio e
   colori coerenti con readonly-info-panel/site-manage), niente più flip-card
   animata né doppio flusso di recupero password. */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 1.5rem;
    background: var(--whitebackground);
}

.auth-card {
    width: 100%;
    max-width: 26rem;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--line-button-select);
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgb(0 0 0 / 6%);
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.auth-logo img {
    max-height: 3rem;
    max-width: 100%;
}

.auth-card__heading {
    margin-bottom: 1.5rem;
    text-align: center;
}
.auth-card__heading h1,
.auth-card__heading h2 {
    margin: 0 0 .35rem;
    color: var(--side-color-principale);
    font-size: 1.25rem;
    font-weight: 700;
}
.auth-card__heading p {
    margin: 0;
    color: var(--text-color-not-selected);
    font-size: .875rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    text-align: left;
}
.auth-field label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--side-color-principale);
}
.auth-field .form-control {
    padding: .6rem .75rem;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.auth-checkbox label {
    margin: 0;
    font-size: .8rem;
    color: var(--text-color-not-selected);
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .7rem 1rem;
    border: 0;
    border-radius: 8px;
    background: var(--giallo-kipanga);
    color: var(--white);
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.auth-submit:hover {
    filter: brightness(0.95);
}
.auth-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.auth-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .7rem 1rem;
    border: 1px solid var(--line-button-select);
    border-radius: 8px;
    background: var(--white);
    color: var(--side-color-principale);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.auth-btn-secondary:hover {
    background: var(--whitebackground);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1rem 0;
    color: var(--text-color-not-selected);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line-button-select);
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: .85rem;
    color: var(--text-color-not-selected);
}
.auth-links a {
    color: var(--giallo-kipanga);
    font-weight: 700;
    text-decoration: none;
}
.auth-links a:hover {
    text-decoration: underline;
}

.auth-alert {
    margin-bottom: 1rem;
    padding: .65rem .85rem;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 500;
    text-align: left;
}
.auth-alert--success {
    background: #10b98126;
    color: var(--status-online);
}
.auth-alert--error {
    background: #dd3c3c36;
    color: var(--status-offline);
}

.auth-error-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: #dd3c3c36;
    color: var(--status-offline);
}
.auth-error-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}
