/**
 * Blaze Sport — Custom Login Styling
 * Esperienza di login premium, wow effect.
 *
 * @package BlazeSport
 */

body.login {
    background-color: #0A0A0B;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(255, 69, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(255, 122, 0, 0.05) 0%, transparent 40%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Glacial Indifference', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Filigrana di background */
body.login::before {
    content: '3BLAZE';
    position: absolute;
    font-family: 'SUGO Display', sans-serif;
    font-size: clamp(10rem, 30vw, 30rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.02);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

/* Particelle (CSS only, multiple box shadows) */
body.login::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow: 
        10vw 20vh #FF4500, 30vw 80vh #FF7A00, 80vw 10vh #fff, 
        90vw 90vh #FF4500, 50vw 50vh #fff, 20vw 70vh #FF7A00, 
        70vw 30vh #FF4500, 40vw 10vh #fff, 15vw 40vh #FF7A00;
    opacity: 0.3;
    animation: blaze-login-particles 120s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes blaze-login-particles {
    from { transform: translateY(0); }
    to { transform: translateY(-100vh); }
}

#login {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 0 20px;
    animation: blaze-login-in 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes blaze-login-in {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo */
.login h1 a {
    background-image: none !important;
    display: block;
    width: auto;
    height: auto;
    text-indent: 0;
    color: #FFFFFF;
    font-family: 'SUGO Display', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.login h1 a:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
}

/* Form Container */
.login form {
    background: rgba(24, 24, 28, 0.7);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.1);
    padding: 40px;
    margin-top: 0;
}

.login label {
    color: #E8E8ED;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: block;
}

.login input[type="text"], 
.login input[type="password"] {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: none;
}

.login input[type="text"]:focus, 
.login input[type="password"]:focus {
    border-color: #FF4500;
    box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.2);
    outline: none;
    background: rgba(0, 0, 0, 0.4);
}

/* Forgetmenot */
.login .forgetmenot {
    float: left;
    margin-bottom: 0;
}

.login .forgetmenot input[type="checkbox"] {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    margin-right: 8px;
}
.login .forgetmenot input[type="checkbox"]:checked {
    background: #FF4500;
    border-color: #FF4500;
}
.login .forgetmenot input[type="checkbox"]:checked::before {
    filter: invert(1);
}

/* Pulsante Submit */
.login .submit input[type="submit"] {
    background: linear-gradient(135deg, #CC3700 0%, #FF4500 50%, #FF7A00 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    padding: 12px 24px;
    font-family: 'SUGO Display', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(255, 69, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    float: none;
    text-shadow: none;
}

.login .submit input[type="submit"]:hover {
    box-shadow: 0 8px 32px rgba(255, 69, 0, 0.5);
    transform: translateY(-2px);
}

/* Link sotto il form */
#nav, #backtoblog {
    text-align: center;
    margin: 20px 0 0;
    padding: 0;
}

#nav a, #backtoblog a {
    color: rgba(255,255,255,0.5) !important;
    font-size: 0.85rem;
    transition: color 0.2s ease;
    text-decoration: none;
}

#nav a:hover, #backtoblog a:hover {
    color: #FF4500 !important;
}

/* Messaggi */
.login .message, .login .success, .login .notice, .login .error {
    background: rgba(24, 24, 28, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid #FF4500;
    color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.login .error { border-left-color: #FF3333; }
.login .success { border-left-color: #34C759; }

/* Lingua switch */
.language-switcher {
    margin-top: 30px;
    text-align: center;
}
.language-switcher select {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
}
