/* Auto-extracted from footer.php (P1-5) */
.abq-modal { position:fixed; inset:0; z-index:10000; }
.abq-modal-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.45); backdrop-filter:blur(4px); }

/* ═══════════════════════════════════════════════════════
   Branded Auth Modal
   ═══════════════════════════════════════════════════════ */
.abq-modal-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px;
    max-width: 420px;
    width: 92vw;
    position: relative;
    z-index: 10001;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}

.abq-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #9ca3af;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.abq-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* ── Brand Header ── */
.abq-auth-brand {
    text-align: center;
    margin-bottom: 24px;
}
.abq-auth-brand-icon { font-size: 3rem; margin-bottom: 8px; line-height: 1; }
.abq-auth-modal-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}
.abq-auth-brand-name {
    font-family: 'Fredoka One', 'Nunito', sans-serif;
    font-size: 1.5rem;
    color: #1e293b;
    margin: 0 0 4px;
}
.abq-auth-brand-tagline {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

/* ── Auth Tabs ── */
.abq-auth-tabs {
    display: flex;
    background: #f3f4f6;
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
}
.abq-auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 12px;
    background: transparent;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.25s ease;
}
.abq-auth-tab.active {
    background: #ffffff;
    color: #22c55e;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.abq-auth-tab:hover:not(.active) { color: #374151; }

/* ── Auth Panel ── */
.abq-auth-panel { display: none; }
.abq-auth-panel.active { display: block; animation: eqFadeIn 0.3s ease; }
@keyframes eqFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ── Auth Fields ── */
.abq-auth-field { margin-bottom: 16px; }
.abq-auth-field label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    color: #374151;
    margin-bottom: 6px;
}
.abq-auth-field input[type="text"],
.abq-auth-field input[type="email"],
.abq-auth-field input[type="password"],
#eqLoginForm .input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    background: #fafbfc;
}
.abq-auth-field input:focus,
#eqLoginForm .input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
    background: #fff;
}

/* ── Password wrapper + toggle ── */
.abq-pass-wrapper {
    position: relative;
}
.abq-pass-wrapper input {
    padding-right: 48px !important;
}
.abq-toggle-pass {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}
.abq-toggle-pass:hover { background: #f3f4f6; }

/* ── Login form overrides (wp_login_form) ── */
#eqLoginForm {
    margin: 0;
}
#eqLoginForm p { margin-bottom: 0; }
#eqLoginForm .login-username,
#eqLoginForm .login-password {
    margin-bottom: 16px;
}
#eqLoginForm .login-username label,
#eqLoginForm .login-password label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    color: #374151;
    margin-bottom: 6px;
}
#eqLoginForm .login-remember {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}
#eqLoginForm .login-remember label {
    font-size: 0.88rem;
    color: #6b7280;
    cursor: pointer;
}
#eqLoginForm .login-remember input[type="checkbox"] {
    accent-color: #22c55e;
    width: 16px;
    height: 16px;
    margin: 0;
}
#eqLoginForm .login-submit { margin: 0; }
#eqLoginForm .login-submit .button-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    color: #fff;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34,197,94,0.35);
    height: auto;
    line-height: 1.4;
}
#eqLoginForm .login-submit .button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34,197,94,0.45);
    background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
}

/* ── Auth links ── */
.abq-auth-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.88rem;
    color: #6b7280;
}
.abq-auth-links p { margin: 6px 0; }
.abq-auth-links a {
    color: #22c55e;
    font-weight: 700;
    text-decoration: none;
}
.abq-auth-links a:hover { text-decoration: underline; color: #16a34a; }

/* ── Responsive ── */
@media (max-width: 480px) {
    .abq-modal-content { padding: 24px 20px; }
    .abq-auth-brand-icon { font-size: 2.5rem; }
    .abq-auth-brand-name { font-size: 1.3rem; }
    .abq-auth-tab  { font-size: 0.88rem; padding: 8px; }
}
