/* --- STILE PAGINA DI LOGIN T>GUIDO --- */

body.login {
    background-color: var(--bg-deep-night);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

#login {
    width: 90%;
    max-width: 400px;
    padding: 0;
    margin: 0;
}

/* Stile del nostro nuovo logo testuale T>Guido */
#login h1 a {
    background-image: none;
    width: auto;
    height: auto;
    font-size: 36px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -1.5px;
    text-indent: 0;
    text-decoration: none;
    margin-bottom: 25px;
    display: block;
}

#login h1 a .logo-t {
    color: var(--brand-red); /* Rosso Tper */
}

#login h1 a .logo-text {
    color: var(--text-main); /* Bianco ghiaccio */
}

/* Il contenitore del form con effetto Glassmorphism */
#loginform {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    margin-top: 0;
}

/* Testi e label */
.login label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

/* Campi di testo */
.login input[type="text"],
.login input[type="password"] {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    box-shadow: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus {
    border-color: var(--accent-slate-blue);
    box-shadow: 0 0 8px rgba(106, 90, 205, 0.4);
    outline: none;
}

/* Bottone "Accedi" */
.login .button-primary {
    background-color: var(--accent-slate-blue);
    border: none;
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
    margin-top: 20px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    float: none;
}

.login .button-primary:active {
    background-color: var(--accent-glow);
    transform: scale(0.98);
}

/* Link in basso (Password dimenticata, ecc.) */
#nav, #backtoblog {
    text-align: center;
    margin-top: 20px;
    padding: 0;
}

#nav a, #backtoblog a {
    color: var(--text-secondary) !important;
    transition: color 0.3s;
    font-size: 13px;
    text-decoration: none;
}

#nav a:hover, #backtoblog a:hover {
    color: var(--text-main) !important;
}

/* Nascondiamo il selettore della lingua per tenere tutto pulito */
.language-switcher {
    display: none;
}

/* Messaggi di errore o successo */
.login .message, .login .success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--alert-success);
    color: var(--text-main);
}

#login_error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--alert-critical);
    color: var(--text-main);
}

/* Rimuove il link "Torna al sito / Go to WordPress" in basso */
#backtoblog {
    display: none !important;
}