/*
Theme Name:   LB assistenza caldaie
Template:     hello-elementor
*/

/* ==========================================================
   1. FIX HEADER E BARRA DI AMMINISTRAZIONE
   ========================================================== */

/* Nasconde il link di accessibilità "Vai al contenuto" rimasto orfano del tema */
a.skip-link {
    display: none !important;
}

/* Nasconde in modo forzato l'header nativo di Elementor e il titolo pagina */
header.site-header,
.elementor-location-header,
h1.entry-title,
.page-header {
    display: none !important;
}

/* ==========================================================
   2. STILE SCHERMATA DI LOGIN
   ========================================================== */
.lb-auth-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2c3e50; /* Sfondo scuro professionale */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    z-index: 10000;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lb-auth-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

.lb-auth-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    margin: 80px auto;
    padding: 0 20px;
    color: white;
    box-sizing: border-box;
}

.auth-logo-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo-header h2 {
    color: white;
    margin: 0 0 5px;
    font-weight: 700;
    font-size: 28px;
}

.auth-logo-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Auth Boxes */
.auth-form-box {
    background: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    color: #333;
}

.auth-form-box label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}

.auth-form-box input[type="text"],
.auth-form-box input[type="email"],
.auth-form-box input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #2d3748;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.auth-form-box input:focus {
    outline: none;
    background: white;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.lb-form-row {
    margin-bottom: 5px;
}

input.lb-auth-submit {
    width: 100%;
    background-color: #3498db; /* Blue per LB Assistenza */
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

input.lb-auth-submit:hover {
    background-color: #2980b9;
}

input.lb-auth-submit:active {
    transform: scale(0.98);
}

.auth-links-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    font-size: 13px;
}

.auth-forgot-pwd {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
}

.auth-forgot-pwd:hover {
    text-decoration: underline;
}

/* Password Toggle Visibility */
.login-password {
    position: relative;
    width: 100%;
}

.login-password input {
    padding-right: 45px !important;
}

.pwd-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
    z-index: 10;
    font-size: 20px;
    margin-top: -10px;
}

/* General Layout Fixes */
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: #F7FAFC !important;
}

/* Messaggi di errore/info */
.lb-auth-message, .lb-auth-error {
    margin-bottom: 20px;
    font-size: 14px;
}