/* file => auth-login.css | versione => 3.0.0 | data => 12-03-2026 14:00
 * @changelog
 *   3.0.0 (12-03-2026) - Refactoring Tabler Level 3: variabili --tblr-*, card nativa, rimosso reset body
 *   2.1.0 (23-02-2026) - Aggiunto stile divisore passkey (.auth-passkey-divider)
 *   2.0.0 (19-02-2026) - Aggiunto .auth-form-panel e .auth-brand-panel per supporto template
 *   1.0.0 (17-02-2026) - Versione iniziale: stili pagina login */

/* Body: solo background dinamico e altezza minima, font gestito da Tabler */
body {
    background-color: var(--auth-bg, var(--tblr-body-bg, #f0f2f5));
    min-height: 100vh;
}

/* Contenitore principale: centra verticalmente e orizzontalmente */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

/* Form panel: wrapper card + footer */
.auth-form-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Brand panel: nascosto di default, mostrato dai template che lo usano */
.auth-brand-panel {
    display: none;
}

/* Card login: estende .card Tabler con dimensioni custom */
.auth-card {
    width: 100%;
    max-width: 400px;
    border-radius: var(--tblr-border-radius-lg, 12px);
    box-shadow: var(--tblr-card-box-shadow, 0 2px 20px rgba(0, 0, 0, 0.08));
}

.auth-card .card-body {
    padding: 2.5rem;
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo img {
    max-height: 60px;
    max-width: 200px;
}

/* Titolo */
.auth-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--tblr-body-color, #333);
    margin-bottom: 1.5rem;
}

/* Form labels */
.auth-card .form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--tblr-secondary, #555);
}

/* Input focus con colore primario del progetto */
.auth-card .form-control:focus {
    border-color: var(--tblr-primary, var(--auth-primary, #487FFF));
    box-shadow: 0 0 0 0.2rem rgba(72, 127, 255, 0.15);
}

/* Bottone accedi: --tblr-primary e' gia' settato nella root dal PHP, Tabler lo usa automaticamente */
.auth-card .btn-primary {
    padding: 0.6rem 1rem;
    font-weight: 500;
}

/* Toggle visibilita' password */
#toggle-password {
    border-color: var(--tblr-border-color, #dee2e6);
}

#toggle-password:hover {
    background-color: var(--tblr-light, #f8f9fa);
}

/* Footer */
.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
}

/* Divisore passkey */
.auth-passkey-divider {
    display: flex;
    align-items: center;
    text-align: center;
}

.auth-passkey-divider::before,
.auth-passkey-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--tblr-border-color, #dee2e6);
}

.auth-passkey-divider span {
    padding: 0 10px;
    font-size: 0.85rem;
}

#btn-passkey-login {
    font-weight: 500;
}

#btn-passkey-login .bi-fingerprint {
    font-size: 1.1rem;
}
