/* ==========================================================================
   AUTH — FRONTEND LOGIN & REGISTRAZIONE
   Stessa estetica dell'admin login, con padding top per l'header
   ========================================================================== */

/* Sfondo — identico all'admin, ma con spazio per l'header */
.crc-login-section-wrapper {
    background: radial-gradient(ellipse at 60% 40%, var(--primary) 0%, #050505 70%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 20px 80px;
    box-sizing: border-box;
}

.crc-auth-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* Card — identica all'admin */
.auth-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 36px;
    padding: 45px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

/* Tabs: Accedi / Registrati */
.auth-tabs {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    padding: 5px;
    margin-bottom: 36px;
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    padding: 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.25s ease;
    font-family: inherit;
}

.auth-tab-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 50, 113, 0.4);
}

/* Pannelli */
.auth-panel { display: none; }
.auth-panel.active { display: block; }

/* Gruppo input — identico all'admin */
.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    color: var(--yellow);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    height: 54px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 0 18px !important;
    box-sizing: border-box;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    font-family: inherit;
}

.input-group input:focus {
    border-color: var(--yellow) !important;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Riga "Resta connesso" + "Password dimenticata" */
.auth-extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--yellow);
    margin: 0;
    flex-shrink: 0;
}

.lost-pass {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color 0.2s;
}

.lost-pass:hover {
    color: var(--yellow);
}

/* Bottone submit — identico all'admin */
.auth-submit-btn {
    width: 100%;
    height: 56px;
    background: var(--yellow);
    border: none;
    border-radius: 16px;
    color: var(--dark);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
    font-family: inherit;
}

.auth-submit-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.25);
}

/* Nota privacy registrazione */
.reg-notice {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

/* Messaggi WooCommerce (errori login) */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    border-radius: 12px !important;
    padding: 14px 18px !important;
    margin-bottom: 24px !important;
    font-size: 13px !important;
    border: none !important;
    list-style: none !important;
}

.woocommerce-error {
    background: rgba(236, 25, 32, 0.1) !important;
    border-left: 4px solid var(--red) !important;
    color: rgba(255, 180, 180, 0.9) !important;
}

.woocommerce-message {
    background: rgba(255, 255, 255, 0.05) !important;
    border-left: 4px solid var(--yellow) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Elementi da nascondere */
.auth-bg-animation,
.scan-line,
.auth-logo {
    display: none !important;
}

body:has(.crc-wc-account-page) {
    padding-bottom: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .crc-login-section-wrapper {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .auth-card {
        padding: 32px 24px;
        border-radius: 28px;
    }
}