/* =========================================================
   FULL-SCREEN AUTH — hide theme header, footer, page title
   ========================================================= */
html.mbs-auth-page,
body.mbs-auth-page,
body.mbs-dashboard-page.mbs-auth-page {
    margin: 0 !important;
    padding: 0 !important;
    background: #0a2540 !important;
    overflow-x: hidden !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
}

body.mbs-auth-page #wpadminbar,
body.mbs-auth-page .site-header,
body.mbs-auth-page header.site-header,
body.mbs-auth-page #masthead,
body.mbs-auth-page .elementor-location-header,
body.mbs-auth-page header[data-elementor-type="header"],
body.mbs-auth-page .elementor-location-footer,
body.mbs-auth-page footer,
body.mbs-auth-page .site-footer,
body.mbs-auth-page #colophon,
body.mbs-auth-page .main-navigation,
body.mbs-auth-page nav.navbar,
body.mbs-auth-page .navbar,
body.mbs-auth-page .top-bar,
body.mbs-auth-page .header-wrapper,
body.mbs-auth-page #header,
body.mbs-auth-page .ast-header-break-point,
body.mbs-auth-page .ast-primary-header-bar,
body.mbs-auth-page .ast-mobile-header-wrap,
body.mbs-auth-page .fusion-header-wrapper,
body.mbs-auth-page .thb-header,
body.mbs-auth-page #page > header,
body.mbs-auth-page .page-header,
body.mbs-auth-page .entry-header,
body.mbs-auth-page .entry-title,
body.mbs-auth-page .page-title,
body.mbs-auth-page h1.entry-title,
body.mbs-auth-page h1.page-title,
body.mbs-auth-page .wp-block-post-title,
body.mbs-auth-page .ast-page-title-wrap,
body.mbs-auth-page .page-title-section,
body.mbs-auth-page .hero-section,
body.mbs-auth-page .page-banner,
body.mbs-auth-page .banner,
body.mbs-auth-page .title-bar,
body.mbs-auth-page .wp-block-template-part[data-area="header"],
body.mbs-auth-page .wp-block-template-part[data-area="footer"] {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.mbs-auth-page #page,
body.mbs-auth-page #content,
body.mbs-auth-page #primary,
body.mbs-auth-page #main,
body.mbs-auth-page .site-content,
body.mbs-auth-page .content-area,
body.mbs-auth-page .entry-content,
body.mbs-auth-page article,
body.mbs-auth-page .hentry,
body.mbs-auth-page .ast-container,
body.mbs-auth-page .site-main,
body.mbs-auth-page .elementor,
body.mbs-auth-page .elementor-section,
body.mbs-auth-page .elementor-container,
body.mbs-auth-page .elementor-widget-wrap,
body.mbs-auth-page .elementor-element {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    min-height: 0 !important;
}

body.mbs-auth-page .entry-content > *:not(.mbs-auth-wrapper):not(.mbs-auth-wrap) {
    display: none !important;
}

/* Override dashboard design rules that set white/teal bg + padding */
body.mbs-auth-page.mbs-dashboard-page {
    background: #0a2540 !important;
    padding: 0 !important;
}

/* Auth pages - Login & Register */
.mbs-auth-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a2540 0%, #1a4a7a 50%, #0f3460 100%);
    padding: 30px 16px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    z-index: 50;
    box-sizing: border-box;
}

.mbs-auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.mbs-auth-card-wide {
    max-width: 520px;
}

.mbs-auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.mbs-auth-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0c14b;
    box-shadow: 0 4px 15px rgba(240,193,75,0.3);
}

.mbs-auth-logo h1 {
    margin: 12px 0 4px;
    font-size: 20px;
    color: #0a2540;
    font-weight: 600;
}

.mbs-tagline {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    letter-spacing: 0.02em;
}

.mbs-auth-card h2 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #0a2540;
    text-align: center;
    font-weight: 600;
}

.mbs-auth-form .mbs-form-group {
    margin-bottom: 14px;
}

.mbs-auth-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}

.mbs-auth-form input[type="text"],
.mbs-auth-form input[type="email"],
.mbs-auth-form input[type="tel"],
.mbs-auth-form input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mbs-auth-form input:focus {
    outline: none;
    border-color: #1a4a7a;
    box-shadow: 0 0 0 3px rgba(26,74,122,0.12);
}

.mbs-form-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mbs-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    color: #475569;
}

.mbs-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #1a4a7a;
}

.mbs-link {
    color: #1a4a7a;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

.mbs-link:hover {
    text-decoration: underline;
}

.mbs-auth-divider {
    display: flex;
    align-items: center;
    margin: 22px 0;
    color: #94a3b8;
    font-size: 12px;
}

.mbs-auth-divider::before,
.mbs-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.mbs-auth-divider span {
    padding: 0 14px;
}

.mbs-social-buttons {
    text-align: center;
}

.mbs-btn-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    color: #334155;
    transition: background 0.2s;
}

.mbs-btn-social:hover:not(:disabled) {
    background: #f8fafc;
}

.mbs-btn-social:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mbs-social-note {
    margin: 8px 0 0;
    font-size: 11px;
    color: #94a3b8;
}

.mbs-auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: #64748b;
}

.mbs-auth-footer a {
    color: #1a4a7a;
    font-weight: 600;
    text-decoration: none;
}

.mbs-auth-footer a:hover {
    text-decoration: underline;
}

.mbs-consent-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mbs-consent-box a {
    color: #1a4a7a;
}

.mbs-field-hint {
    font-size: 12px;
    color: #94a3b8;
    margin: -8px 0 14px;
}

.mbs-form-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    display: none;
}

.mbs-form-message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
}

.mbs-form-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 480px) {
    .mbs-auth-card {
        padding: 28px 20px;
    }
    .mbs-form-row {
        grid-template-columns: 1fr !important;
    }
}
