/**
 * Login Page - Piccole Grandi Squadre Custom Styling
 * Hero section style - Navy & Gold theme
 */

/* Background hero con immagine murales */
body.login {
    background-image: url('../wp-content/uploads/2026/01/murales retrò home page.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Overlay navy gradient */
body.login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,31,63,0.92) 0%, rgba(0,21,41,0.88) 100%);
    z-index: 0;
}

/* Container login con z-index superiore */
#login {
    position: relative;
    z-index: 1;
    padding: 8% 0;
}

/* ========================================
   LOGO PGS BIANCO
   ======================================== */
#login h1 a {
    background-image: url('../../../uploads/2026/01/Logo_PGS_bandiera_white.png') !important;
    background-size: contain;
    width: 280px !important;
    height: 80px !important;
    margin-bottom: 30px;
}

/* ========================================
   FORM - GLASSMORPHISM CARD
   ======================================== */
.login form {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 12px !important;
    padding: 40px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

/* ========================================
   INPUT FIELDS - STILE ORO
   ======================================== */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
}

/* Input focus state */
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    border-color: #D4AF37 !important;
    background: rgba(255, 255, 255, 0.18) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15) !important;
}

/* Placeholder */
.login input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ========================================
   LABEL BIANCHI
   ======================================== */
.login label {
    color: #FFFFFF !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
}

/* ========================================
   BUTTON GOLD PRIMARY
   ======================================== */
.login .button-primary {
    background: #D4AF37 !important;
    border: none !important;
    text-shadow: none !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3) !important;
    font-family: 'BBH Hegarty', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    transition: all 0.3s ease !important;
    border-radius: 4px !important;
    padding: 8px 24px !important;
    font-size: 14px !important;
}

.login .button-primary:hover,
.login .button-primary:focus {
    background: #C5A05A !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4) !important;
}

/* ========================================
   LINK NAVIGAZIONE
   ======================================== */
.login #nav,
.login #backtoblog {
    margin: 16px 0;
}

.login #nav a,
.login #backtoblog a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    transition: color 0.3s ease !important;
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: #D4AF37 !important;
}

/* ========================================
   PRIVACY LINK
   ======================================== */
.login .privacy-policy-page-link {
    color: rgba(255, 255, 255, 0.7) !important;
}

.login .privacy-policy-page-link a {
    color: rgba(255, 255, 255, 0.7) !important;
}

.login .privacy-policy-page-link a:hover {
    color: #D4AF37 !important;
}

/* ========================================
   MESSAGGI ERRORE/SUCCESSO
   ======================================== */
.login .message,
.login #login_error {
    border-left: 4px solid #D4AF37 !important;
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #FFFFFF !important;
    border-radius: 4px !important;
    padding: 12px !important;
    margin-bottom: 20px !important;
}

.login .message a,
.login #login_error a {
    color: #D4AF37 !important;
    text-decoration: underline !important;
}

/* Messaggio di successo specifico */
.login .message {
    border-left-color: #D4AF37 !important;
}

/* ========================================
   CHECKBOX REMEMBER ME
   ======================================== */
.login .forgetmenot {
    float: left;
}

.login .forgetmenot label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login input[type="checkbox"] {
    accent-color: #D4AF37;
}

/* ========================================
   SUBMIT BUTTON CONTAINER
   ======================================== */
.login .submit {
    clear: both;
    padding-top: 16px;
}

.login .submit input {
    width: 100%;
}

/* ========================================
   LANGUAGE SWITCHER (se presente Polylang)
   ======================================== */
.login .language-switcher {
    text-align: center;
    margin-top: 20px;
}

.login .language-switcher a {
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 8px;
    text-decoration: none;
}

.login .language-switcher a:hover,
.login .language-switcher a.active {
    color: #D4AF37 !important;
}

/* ========================================
   RESPONSIVE MOBILE
   ======================================== */
@media (max-width: 768px) {
    /* Background scroll su mobile per performance */
    body.login {
        background-attachment: scroll;
    }

    /* Logo ridotto */
    #login h1 a {
        width: 200px !important;
        height: 60px !important;
    }

    /* Form padding ridotto */
    .login form {
        padding: 30px 20px !important;
    }

    /* Input più compatti */
    .login input[type="text"],
    .login input[type="password"],
    .login input[type="email"] {
        padding: 10px 14px !important;
        font-size: 16px !important; /* Previene zoom iOS */
    }

    /* Button più piccolo */
    .login .button-primary {
        font-size: 13px !important;
        padding: 10px 20px !important;
    }

    /* Link più leggibili */
    .login #nav a,
    .login #backtoblog a {
        font-size: 14px !important;
    }
}

/* ========================================
   TABLET
   ======================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    #login h1 a {
        width: 240px !important;
        height: 70px !important;
    }

    .login form {
        padding: 35px !important;
    }
}

/* ========================================
   ANIMAZIONI
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#login {
    animation: fadeIn 0.6s ease-out;
}

/* ========================================
   ACCESSIBILITY - FOCUS VISIBLE
   ======================================== */
.login input:focus-visible,
.login .button-primary:focus-visible {
    outline: 2px solid #D4AF37 !important;
    outline-offset: 2px !important;
}

/* ========================================
   LOST PASSWORD PAGE
   ======================================== */
.login #lostpasswordform {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.login #lostpasswordform p {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ========================================
   INTERIM LOGIN (durante sessioni scadute)
   ======================================== */
.interim-login #login {
    padding: 5% 0;
}

.interim-login .message {
    margin-bottom: 20px;
}
