﻿/* ============================================================
   AUTH-SHARED.CSS — Aonira
   Stile condiviso per tutte le pagine di autenticazione:
   Login, Sign Up, Forgot Password, Reset Password.
   
   Importa questo file UNA sola volta invece di duplicare
   il CSS in ogni pagina Razor.
   
   Uso in Blazor:
   <link href="css/auth-shared.css" rel="stylesheet" />
   oppure in un componente layout condiviso.
   ============================================================ */


/* ----------------------------------------------------------
   1. SFONDO PAGINA
   Gradient mesh scuro coerente con la landing page, al posto
   dell'immagine. Più leggero e mantiene il tema uniforme.
   ---------------------------------------------------------- */
.pageStyle {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 70% 55% at 25% 20%, rgba(124, 58, 237, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse 55% 45% at 85% 80%, rgba(0, 229, 255, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 70% 25%, rgba(255, 15, 128, 0.12) 0%, transparent 60%),
        var(--bg, #06050d);
}

.pageStyle::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.pageStyle > * { position: relative; z-index: 1; }


/* ----------------------------------------------------------
   2. BOX CENTRALE (Glassmorphism)
   Contenitore principale del form: effetto vetro smerigliato
   con sfondo semi-trasparente e bordo luminoso sottile.
   Max 450px di larghezza per mantenere leggibilità.
   ---------------------------------------------------------- */
.signBox {
    background: var(--glass, rgba(45, 27, 105, 0.18));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* Safari */
    border: 1px solid var(--glass-border, rgba(167, 139, 250, 0.12));
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55),
                0 0 0 1px rgba(167, 139, 250, 0.06) inset;
    width: 100%;
    max-width: 450px;
    height: auto;
    padding: 2.5rem 2rem;
}


/* ----------------------------------------------------------
   3. TIPOGRAFIA
   - Titoli: Montserrat bold per impatto
   - Label e testo: Inter per leggibilità
   ---------------------------------------------------------- */

/* Titolo del form (es. "Accedi", "Registrati") */
.form-title {
    font-family: 'Montserrat', 'Segoe UI', sans-serif !important;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Label sopra gli input */
.form-label {
    font-family: 'Inter', 'Segoe UI', sans-serif !important;
    color: #d1d5db;
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

/* Testo grigio chiaro per note e separatori */
.text-light-gray {
    color: #a0a0a0;
}


/* ----------------------------------------------------------
   4. VALIDAZIONE
   Messaggi di errore sotto gli input (es. "Campo obbligatorio").
   Rosso vivo per visibilità su sfondo scuro.
   ---------------------------------------------------------- */
.validation-message {
    font-family: 'Inter', 'Segoe UI', sans-serif !important;
    color: #ff4d4d !important;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}


/* ----------------------------------------------------------
   5. INPUT (Glassmorphism)
   Campi di testo con sfondo trasparente e bordo sottile.
   Al focus: bordo rosa neon (#ff0f80) con glow.
   ---------------------------------------------------------- */
.glass-input {
    font-family: 'Inter', 'Segoe UI', sans-serif !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

    .glass-input:focus {
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--purple-mid, #7c3aed);
        box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2), 0 0 12px rgba(124, 58, 237, 0.15);
        outline: none;
    }

    .glass-input::placeholder {
        color: #8c8c8c;
    }


/* ----------------------------------------------------------
   6. BOTTONE PRINCIPALE (Neon Gradient)
   Gradiente viola → rosa con bordi arrotondati.
   Hover: si alza leggermente con ombra più intensa.
   ---------------------------------------------------------- */
.button-neon-small {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ff0f80, var(--purple-mid, #7c3aed));
    border: none;
    border-radius: 50px;
    color: white;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 12px;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(.22,1,.36,1),
                box-shadow 0.25s cubic-bezier(.22,1,.36,1);
    box-shadow: 0 4px 22px rgba(255, 15, 128, 0.32);
}

    .button-neon-small::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
        transform: translateX(-120%);
        transition: transform 0.6s ease;
    }

    .button-neon-small:hover::before,
    .button-neon-small:focus-visible::before {
        transform: translateX(120%);
    }

    .button-neon-small:hover,
    .button-neon-small:focus-visible {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(124, 58, 237, 0.48);
        color: #fff;
        outline: none;
    }

    .button-neon-small:active { transform: translateY(0) scale(0.98); }

@media (prefers-reduced-motion: reduce) {
    .button-neon-small::before { display: none; }
    .button-neon-small:hover { transform: none; }
}


/* ----------------------------------------------------------
   7. LINK NEON
   Link cyan brillante (#00f2ff) per "Hai già un account?",
   "Password dimenticata?", ecc.
   Hover: diventa bianco con glow cyan.
   ---------------------------------------------------------- */
.link-neon {
    color: var(--purple-light, #a78bfa);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s, text-shadow 0.2s;
}

    .link-neon:hover,
    .link-neon:focus-visible {
        color: #ffffff;
        text-shadow: 0 0 10px rgba(167, 139, 250, 0.7);
        outline: none;
    }

/* Separatore "oppure" tra login email e Google */
.auth-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1rem 0;
    color: var(--text-dim, #9b8ec4);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.25), transparent);
}


/* ----------------------------------------------------------
   8. BOTTONE SOCIAL (Google Login)
   Stile glass minimale, coerente con il tema.
   Hover: si illumina leggermente e si alza.
   ---------------------------------------------------------- */
.button-social {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.25s;
}

    .button-social:hover,
    .button-social:focus-visible {
        background: rgba(167, 139, 250, 0.08);
        border-color: rgba(167, 139, 250, 0.45);
        transform: translateY(-2px);
        box-shadow: 0 4px 18px rgba(124, 58, 237, 0.25);
        outline: none;
    }


/* ----------------------------------------------------------
   9. RECAPTCHA BADGE
   Il badge reCAPTCHA v3 viene nascosto come permesso da Google,
   a condizione che il testo di disclosure ("Questo sito è protetto
   da reCAPTCHA...") sia visibile sulla pagina (vedi footer).
   Ref: https://developers.google.com/recaptcha/docs/faq#id-like-to-hide-the-recaptcha-badge.-what-is-allowed
   ---------------------------------------------------------- */
.grecaptcha-badge {
    visibility: hidden !important;
}
