@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --gold: #D4AF37;
    --gold-glow: rgba(212, 175, 55, 0.5);
    --black: #050505;
    --glass-bg: rgba(25, 25, 25, 0.4);
    --glass-border: rgba(212, 175, 55, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #050505;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--black);
    /* Un leggero bagliore dorato sullo sfondo per esaltare l'effetto vetro */
    background-image: radial-gradient(circle at 50% 50%, #1a1705 0%, var(--black) 60%);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* Effetto Glassmorphism */
.glass-container {
    position: relative;
    z-index: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8), inset 0 0 10px rgba(212, 175, 55, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.9), 0 0 20px rgba(212, 175, 55, 0.1);
}

.brand-title {
    color: var(--gold);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 0.9rem;
    color: #aaaaaa;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Stili del Form */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 8px var(--gold-glow);
    background: rgba(0, 0, 0, 0.5);
}

/* Bottone Principale */
.btn-gold {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #D4AF37 0%, #AA8529 100%);
    border: none;
    border-radius: 8px;
    color: var(--black);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 100%);
    box-shadow: 0 0 15px var(--gold-glow);
    transform: scale(1.02);
}

/* Link di navigazione */
.auth-links {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #aaaaaa;
}

.auth-links a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.auth-links a:hover {
    color: #F3E5AB;
    text-shadow: 0 0 8px var(--gold-glow);
}

/* =========================================
   RESPONSIVE DESIGN - AUTH.CSS
   ========================================= */

@media (max-width: 480px) {
    .glass-container {
        padding: 2.5rem 1.5rem;
        /* Aggiunge un po' di margine laterale per non toccare i bordi dello schermo */
        width: calc(100% - 2rem);
        margin: 0 1rem;
    }

    .brand-title {
        font-size: 1.7rem;
    }

    .btn-gold {
        padding: 12px;
        font-size: 1rem;
    }
}

/* ── Particelle decorative sfondo ─────────────────────────── */
.bg-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #D4AF37;
    border-radius: 50%;
    opacity: 0;
    animation: float-up linear infinite;
}
@keyframes float-up {
    0%   { opacity: 0; transform: translateY(0) scale(1); }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.2; }
    100% { opacity: 0; transform: translateY(-100vh) scale(0.3); }
}