/**
 * @author [Webdojo] - Pagina Login/Registrazione — LBM Branded
 *
 * Caricato su is_account_page() per utenti non loggati.
 * Usa classi custom (wd-login-*) definite nel template override —
 * non dipende dalle classi WooCommerce native quindi non soffre di
 * conflitti di specificità con woocommerce.css.
 *
 * @package hello-child
 */

/* ==========================================================================
   0. SPAZIATURA PAGINA + NASCONDI TITOLO NATIVO
   ========================================================================== */

.woocommerce-account:not(.logged-in) .page-header,
.woocommerce-account:not(.logged-in) .entry-title {
    display: none !important;
}

.woocommerce-account:not(.logged-in) main#content,
.woocommerce-account:not(.logged-in) .site-main {
    padding-top: 50px !important;
    padding-bottom: 80px !important;
}

/* ==========================================================================
   1. HEADER BRANDED
   ========================================================================== */

.wd-login-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 28px;
    border-bottom: 3px solid #ef9000;
    margin-bottom: 36px;
}

.wd-login-header__icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #1c1c1c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wd-login-header__icon svg {
    width: 22px;
    height: 22px;
    stroke: #ef9000;
}

.wd-login-header__title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 26px;
    font-weight: 700;
    color: #1c1c1c;
    margin: 0 0 3px;
    padding: 0;
    line-height: 1.2;
    border: none;
}

.wd-login-header__sub {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #aaa;
    margin: 0;
}

/* ==========================================================================
   2. LAYOUT 2 COLONNE — struttura propria (nessun conflitto con WC)
   ========================================================================== */

.wd-login-layout {
    display: grid;
    gap: 28px;
    width: 100%;
    box-sizing: border-box;
}

.wd-login-layout--two-cols {
    grid-template-columns: 1fr 1fr;
}

.wd-login-layout--one-col {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
}

/* ==========================================================================
   3. CARD (box singolo)
   ========================================================================== */

.wd-login-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: 3px solid #ef9000;
    border-radius: 8px;
    padding: 32px;
    box-sizing: border-box;
    min-width: 0;
}

/* Header card: icona + titolo */
.wd-login-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.wd-login-card__header svg {
    stroke: #ef9000;
    flex-shrink: 0;
}

.wd-login-card__header h2 {
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1c1c1c !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
}

/* Reset eventuali stili WC sul form interno */
.wd-login-card .woocommerce-form {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}

/* ==========================================================================
   4. FORM FIELDS
   ========================================================================== */

.wd-form-group {
    margin-bottom: 18px;
}

.wd-form-group label {
    display: block;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #888;
    margin-bottom: 6px;
}

.wd-form-group .required { color: #ef9000; }

.wd-input {
    display: block;
    width: 100%;
    padding: 10px 14px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-family: Helvetica, Arial, sans-serif !important;
    color: #2c2c2c !important;
    background: #fff !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: none !important;
    outline: none !important;
}

.wd-input:focus {
    border-color: #ef9000 !important;
    box-shadow: 0 0 0 3px rgba(239,144,0,0.1) !important;
}

/* Riga checkbox + eventuale testo inline */
.wd-form-row-inline {
    margin-bottom: 18px;
}

.wd-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    font-weight: normal !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.wd-checkbox-label input[type="checkbox"] {
    accent-color: #ef9000;
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Testo info registrazione (es. "Ti verrà inviato un link...") */
.wd-register-info {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: #fafafa;
    border-left: 3px solid #ef9000;
    border-radius: 2px;
}

/* ==========================================================================
   5. BOTTONI
   ========================================================================== */

/* Accedi — arancione pieno */
.wd-btn-login {
    display: block !important;
    width: 100% !important;
    padding: 13px 24px !important;
    background: #ef9000 !important;
    border: none !important;
    border-radius: 4px !important;
    color: #000 !important;
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: background 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(239,144,0,0.25) !important;
    margin-bottom: 0 !important;
}

.wd-btn-login:hover {
    background: #d87e00 !important;
    color: #000 !important;
}

/* Registrati — bordo arancione */
.wd-btn-register {
    display: block !important;
    width: 100% !important;
    padding: 13px 24px !important;
    background: transparent !important;
    border: 2px solid #ef9000 !important;
    border-radius: 4px !important;
    color: #ef9000 !important;
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}

.wd-btn-register:hover {
    background: #ef9000 !important;
    color: #000 !important;
}

/* ==========================================================================
   6. LINK PASSWORD DIMENTICATA
   ========================================================================== */

.wd-lost-password {
    text-align: center;
    margin: 14px 0 0;
}

.wd-lost-password a {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.wd-lost-password a:hover { color: #ef9000; }

/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */

@media (max-width: 700px) {
    .wd-login-layout--two-cols {
        grid-template-columns: 1fr;
    }
    .wd-login-card {
        padding: 24px 20px;
    }
}
