/* ================================================================ */
/* Stili Globali per il Flusso di Autenticazione        */
/* (imagotutum.css)                       */
/* ================================================================ */

/* Definizioni delle variabili di colore e stile */
:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --content-bg: #f8fafc;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-light: #e2e8f0;
    --gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

/* Stile per l'overlay che copre l'intera pagina */
.auth-overlay {
    background: var(--content-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Stile per il contenitore/modal del form */
.auth-modal {
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(30, 58, 138, 0.2);
    width: 100%;
    max-width: 32rem;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.tab-content {
    padding: 2.5rem 2rem;
}

/* Sezione del logo */
.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 4rem;
    height: 4rem;
    background: var(--gradient);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.logo i {
    color: var(--white);
    font-size: 1.5rem;
}

/* Stili del Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Stili per i componenti Input di Blazor */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Stili per il bottone primario */
.btn-primary {
    width: 100%;
    background: var(--gradient);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
}

/* Sezione per i login esterni (usata solo in Register.razor) */
.external-logins {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* Classi di utilità */
.text-center { text-align: center; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.text-2xl { font-size: 1.5rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-light { color: var(--text-light); }
.text-danger { color: #dc2626; }

.link-accent {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 500;
}

.link-accent:hover {
    text-decoration: underline;
}

.other-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

.other-links p {
    margin-bottom: 0.5rem;
}