:root{
    --color-accent: #00c2ff;
    --color-accent2: #00ffb1;
    --color-text: #eaffff;
}

/* login_desktop.css — Stile arcade moderno per pagina login desktop */

/* ============================================
   LAYOUT PRINCIPALE - NO SCROLL
   ============================================ */
html, body {
    overflow: hidden;
    height: 100%;
}

#main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    height: auto;
    width: 100%;
    max-width: 100%;
    padding: clamp(0.5rem, 2vh, 1rem);
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

#login-content {
    width: 100%;
    max-width: min(450px, 85vw);
    margin: 0 auto;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: visible;
    padding-top: clamp(0.25rem, 0.8vh, 0.5rem);
}

/* ============================================
   TITOLO - STILE ARCADE
   ============================================ */
#login-content h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1em, 2.5vh, 1.5em);
    color: var(--color-accent, #00c2ff);
    text-align: center;
    margin: 0 0 clamp(0.35rem, 0.9vh, 0.6rem);
    text-shadow: 
        0 0 5px var(--color-accent, #00c2ff),
        0 0 10px var(--color-accent, #00c2ff),
        0 0 15px var(--color-accent, #00c2ff);
    letter-spacing: 2px;
    flex-shrink: 0;
    line-height: 1.3;
}

/* ============================================
   MESSAGGI ERRORE
   ============================================ */
.login-errors {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: clamp(0.5rem, 1.2vh, 0.7rem) clamp(0.75rem, 2vh, 1rem);
    margin: 0 0 clamp(0.5rem, 1vh, 0.75rem);
    list-style: none;
    color: #ef4444;
    font-size: clamp(0.7em, 1.3vh, 0.8em);
    box-shadow: 
        0 0 10px rgba(239, 68, 68, 0.3),
        inset 0 0 10px rgba(239, 68, 68, 0.1);
    flex-shrink: 0;
    line-height: 1.4;
}

.login-errors li {
    margin: clamp(0.2rem, 0.5vh, 0.4rem) 0;
    padding-left: 1.25rem;
    position: relative;
}

.login-errors li::before {
    content: "⚠";
    position: absolute;
    left: 0;
    font-size: 1em;
}

/* ============================================
   FORM - STILE ARCADE
   ============================================ */
#login-form {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--color-accent, #00c2ff);
    border-radius: 10px;
    padding: clamp(0.55rem, 1.2vh, 0.85rem);
    box-shadow: 
        0 0 20px rgba(0, 194, 255, 0.4),
        inset 0 0 20px rgba(0, 194, 255, 0.1),
        0 0 40px rgba(0, 194, 255, 0.2);
    backdrop-filter: blur(10px);
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(0.2rem, 0.6vh, 0.35rem);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    justify-content: space-between;
}

#login-form::-webkit-scrollbar {
    display: none;
}

/* Effetto scanline arcade */
#login-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 194, 255, 0.03) 2px,
        rgba(0, 194, 255, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1;
}

#login-form > * {
    position: relative;
    z-index: 2;
}

/* ============================================
   LABEL
   ============================================ */
#login-form label {
    display: block;
    margin-bottom: clamp(0.1rem, 0.3vh, 0.2rem);
    font-family: 'Rajdhani Regular', sans-serif;
    font-size: clamp(0.8em, 1.6vh, 0.95em);
    color: var(--color-accent, #00c2ff);
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px rgba(0, 194, 255, 0.5);
    line-height: 1.4;
}

/* ============================================
   PASSWORD WRAPPER
   ============================================ */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-wrapper input {
    padding-right: clamp(2.5rem, 5vh, 3rem);
}

.password-toggle {
    position: absolute;
    right: clamp(0.5rem, 1vh, 0.75rem);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: clamp(0.25rem, 0.5vh, 0.4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.2s ease;
}

.password-toggle:hover {
    transform: scale(1.1);
}

.eye-icon {
    font-size: clamp(1em, 2vh, 1.2em);
    filter: drop-shadow(0 0 3px rgba(0, 194, 255, 0.6));
    user-select: none;
    pointer-events: none;
}

/* ============================================
   INPUT
   ============================================ */
#login-form input[type="text"],
#login-form input[type="password"] {
    width: 100%;
    padding: clamp(0.4rem, 0.9vh, 0.6rem) clamp(0.6rem, 1.1vh, 0.8rem);
    margin-bottom: clamp(0.2rem, 0.5vh, 0.35rem);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(0, 194, 255, 0.4);
    border-radius: 6px;
    color: var(--color-text, #e8e8ef);
    font-size: clamp(0.9em, 1.7vh, 1em);
    font-family: 'Rajdhani Regular', sans-serif;
    box-sizing: border-box;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 5px rgba(0, 194, 255, 0.2);
}

#login-form input[type="text"]:focus,
#login-form input[type="password"]:focus {
    border-color: var(--color-accent, #00c2ff);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(0, 194, 255, 0.6),
        0 0 20px rgba(0, 194, 255, 0.4);
    transform: translateY(-1px);
}

/* ============================================
   PULSANTE SUBMIT - CON ANIMAZIONE
   ============================================ */
#login-form button[type="submit"] {
    width: 100%;
    padding: clamp(0.5rem, 1.1vh, 0.7rem) clamp(0.9rem, 1.8vh, 1.2rem);
    margin-top: auto;
    background: linear-gradient(135deg, var(--color-accent, #00c2ff), #00ffb1);
    color: #000;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-family: 'Rajdhani Regular', sans-serif;
    font-size: clamp(0.8em, 1.6vh, 0.95em);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: buttonGlow 2s ease-in-out infinite;
}

#login-form button[type="submit"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shine 3s infinite;
    z-index: 1;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 
            0 4px 15px rgba(0, 194, 255, 0.5),
            inset 0 2px 5px rgba(255, 255, 255, 0.2),
            0 0 20px rgba(0, 194, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 4px 20px rgba(0, 194, 255, 0.7),
            inset 0 2px 5px rgba(255, 255, 255, 0.3),
            0 0 30px rgba(0, 194, 255, 0.5),
            0 0 40px rgba(0, 255, 177, 0.3);
    }
}

#login-form button[type="submit"] span {
    position: relative;
    z-index: 2;
}

#login-form button[type="submit"]:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* ============================================
   DIVIDER
   ============================================ */
.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: clamp(0.5rem, 1.1vh, 0.75rem) 0;
    flex-shrink: 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.login-divider span {
    padding: 0 clamp(0.75rem, 2vw, 1rem);
    color: var(--color-text, #e8e8ef);
    font-size: clamp(0.75em, 1.4vh, 0.9em);
    font-family: 'Rajdhani Regular', sans-serif;
    opacity: 0.7;
}

/* ============================================
   PULSANTE GOOGLE
   ============================================ */
.btn-google {
    width: 100%;
    padding: clamp(0.5rem, 1.1vh, 0.7rem) clamp(0.9rem, 1.8vh, 1.2rem);
    background: #fff;
    color: #000;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-family: 'Rajdhani Regular', sans-serif;
    font-size: clamp(0.8em, 1.6vh, 0.95em);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 1vh, 0.75rem);
    flex-shrink: 0;
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 3px rgba(255, 255, 255, 0.4);
    filter: brightness(1.05);
}

.btn-google svg {
    flex-shrink: 0;
}

.btn-google span {
    position: relative;
    z-index: 1;
}

/* ============================================
   LINK REGISTRAZIONE
   ============================================ */
.login-register-link {
    text-align: center;
    margin-top: clamp(0.45rem, 1vh, 0.7rem);
    font-size: clamp(0.85em, 1.5vh, 1em);
    color: var(--color-text, #e8e8ef);
    flex-shrink: 0;
}

.login-register-link a {
    color: var(--color-accent, #00c2ff);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.login-register-link a:hover {
    color: #00ffb1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    #main-container {
        padding: clamp(0.5rem, 1.5vh, 0.75rem);
    }

    #login-content {
        max-width: 100%;
    }

    #login-form {
        padding: clamp(0.875rem, 2vh, 1.25rem);
    }
}

/* ============================================
   AUTH HUD + BACKGROUND (verde–blu, niente rosa)
   ============================================ */
body{
    background:
        radial-gradient(circle at 18% 22%, rgba(0,255,177,.14), transparent 44%),
        radial-gradient(circle at 82% 72%, rgba(0,194,255,.14), transparent 50%),
        radial-gradient(circle at 55% 10%, rgba(0,194,255,.10), transparent 35%),
        linear-gradient(180deg, #05070b 0%, #04060a 100%);
    color: var(--color-text, #eaffff);
    position: relative;
    overflow-x: hidden;
}

/* Griglia neon */
body::before{
    content:"";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .65;
    background:
        repeating-linear-gradient(to right,
            rgba(0,194,255,.10) 0,
            rgba(0,194,255,.10) 1px,
            transparent 1px,
            transparent 52px),
        repeating-linear-gradient(to bottom,
            rgba(0,255,177,.07) 0,
            rgba(0,255,177,.07) 1px,
            transparent 1px,
            transparent 52px);
    mask-image: radial-gradient(circle at 50% 40%, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 75%);
    z-index: 0;
}

/* Scanlines */
body::after{
    content:"";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .14;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,.08) 0px,
        rgba(255,255,255,.08) 1px,
        transparent 2px,
        transparent 6px
    );
    mix-blend-mode: overlay;
    z-index: 0;
}

/* Dots (3 ellissi) sopra il titolo */
.auth-dots{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 0 0 10px;
    user-select: none;
}
.auth-dots span{
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
}
.auth-dots span:nth-child(1){
    background: rgba(0,194,255,.95);
    box-shadow: 0 0 10px rgba(0,194,255,.7), 0 0 22px rgba(0,194,255,.35);
}
.auth-dots span:nth-child(2){
    background: rgba(255,255,255,.22);
    box-shadow: 0 0 10px rgba(255,255,255,.18);
}
.auth-dots span:nth-child(3){
    background: rgba(0,255,177,.95);
    box-shadow: 0 0 10px rgba(0,255,177,.6), 0 0 22px rgba(0,255,177,.30);
}

.auth-subtitle{
    text-align: center;
    margin: 0 0 clamp(0.75rem, 1.6vh, 1rem);
    color: rgba(234,255,255,.72);
    font-family: "Courier New", monospace;
    font-size: clamp(0.85em, 1.6vh, 0.95em);
    letter-spacing: .2px;
    line-height: 1.35;
}

/* HUD bar sopra la card */
#login-form::after,
#register-content form::after{
    content:"";
    position: absolute;
    top: -16px;
    left: clamp(2.25rem, 12vw, 5.5rem);
    right: clamp(2.25rem, 12vw, 5.5rem);
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(0,194,255,.92),
        rgba(0,255,177,.85),
        rgba(255,255,255,.22)
    );
    box-shadow: 0 0 10px rgba(0,194,255,.35), 0 0 14px rgba(0,255,177,.22);
    pointer-events: none;
    z-index: 3;
}

/* Migliora "glass" della card */
#login-form,
#register-content form{
    border-color: rgba(0,194,255,.60) !important;
    border-radius: 18px;
    background: rgba(8, 14, 18, 0.70);
    box-shadow:
        0 0 18px rgba(0,194,255,0.35),
        0 0 34px rgba(0,255,177,0.18),
        inset 0 0 18px rgba(0,194,255,0.10);
    backdrop-filter: blur(12px);
}

/* Titolo più "HUD" */
#login-content h1,
#register-content h1{
    text-shadow:
        0 0 6px rgba(0,194,255,.75),
        0 0 18px rgba(0,194,255,.35),
        0 0 18px rgba(0,255,177,.18);
}

/* Porta il contenuto sopra le pseudo-layers */
body > *{ position: relative; z-index: 1; }
#login-form br {
    display: none;
}
