/**
 * Yoga Member Portal CSS
 * Hebrew RTL Layout with Sidebar Navigation
 */

/* Missing Fields Notice */
.portal-missing-fields-notice {
    background: #fff3e0;
    border: 2px solid #F9C466;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    color: #5d4037;
    font-size: 0.95rem;
    line-height: 1.6;
}

.portal-missing-fields-notice strong {
    color: #e65100;
    display: block;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.portal-missing-fields-notice ul {
    margin: 8px 20px 0 0;
    padding: 0;
    list-style: disc;
    list-style-position: outside;
}

.portal-missing-fields-notice li {
    margin-bottom: 2px;
}

/* Main Layout Container */
.member-portal-wrapper {
    direction: rtl;
    text-align: right;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0;
}

.member-portal-container {
    background: #f8f9fa;
    border-radius: 0;    
    overflow: hidden;
    box-shadow: none;
}

.member-portal-content {
    display: flex;
    min-height: 60vh;
}

/* Main Content Area */
.portal-main {
    flex: 1;
    padding: 4.5rem 2.5rem;
    background: #ffffff;
    order: 2;
}

/* Sidebar Navigation */
.portal-sidebar {
    padding: 4.5rem 0;
    width: clamp(220px, 22vw, 400px);
    background: #f3f3f3;
    color: #4B2D45;
    flex-shrink: 0;
    order: 1;
}

.sidebar-content {
    padding: 0;
}

/* User Info Section */
.user-info {
    text-align: center;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    display: none; /* Hide avatar in minimal design */
}

.user-avatar {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 0.9375rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #F9C466;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation Menu */
.sidebar-nav {
    margin-top: 0;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-bottom: 0;
}


.nav-item a {
    display: block;
    padding: 1.25rem 1.5rem;
    color: #4B2D45;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-family: 'Heebo', Arial, sans-serif;
    font-size: 1.375rem;
    font-weight: 400;
    text-align: right;
    background: #f3f3f3;
}

.nav-item a:hover {
    background: #e9e7e7;
}

.nav-item.active a {
    background: #e9e7e7;
    font-weight: 600;
}

.nav-item.disabled a {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    color: #4B2D45;
}

.nav-item.disabled a:hover {
    background: #f3f3f3;
}

.nav-item--logout {
    margin-top: 4.5rem;
    border-top: 1px solid rgba(75, 45, 69, 0.18);
}

/* Mobile-only dropdown toggle for the sidebar nav. Hidden by default;
   the @media (max-width: 768px) block below reveals it and collapses the
   nav-menu into an expandable drawer. */
.portal-nav-toggle {
    display: none;
}

.nav-text {
    display: block;
}

/* Navigation badge (missing fields indicator) */
.nav-item a {
    position: relative;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #d32f2f;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

/* Missing fields notice inside profile section */
.profile-missing-fields {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 28px;
    text-align: right;
    line-height: 1.7;
}

.profile-missing-fields strong {
    color: #e65100;
    font-size: 1.05em;
}

.profile-missing-fields ul {
    margin: 8px 20px 0 0;
    padding: 0;
    list-style: disc;
    list-style-position: inside;
    color: #5d4037;
}

.profile-missing-fields li {
    margin-bottom: 2px;
}

/* Dashboard Specific Styles */
.dashboard-section {
    padding: 0;
    max-width: none;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.user-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.user-photo {
    width: 9.375rem;
    height: 9.375rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #4B2D45;    
}

.user-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-title {
    font-size: 3rem;
    font-weight: 700;
    color: #4B2D45;
    margin: 0;
    text-align: center;
    font-family: 'Heebo', Arial, sans-serif !important;
}

.welcome-subtitle {
    font-size: 3rem;
    color: #4B2D45;
    margin: 0.625rem 0 0;
    text-align: center;
    font-family: 'Heebo', Arial, sans-serif !important;
}

.dashboard-content {
    display: flex;
    justify-content: center;
}

.membership-card {
    background: #ffffff;
    border: 2px solid #F9C466;
    border-radius: 0 0 1.25rem 1.25rem;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 32rem;
    width: 100%;
    position: relative;
}

/* Yellow star icon on the top-right corner of the card,
   straddling the top border (matches Figma design). */
.membership-card::before {
    content: '';
    position: absolute;
    top: -22px;
    right: -22px;    
    width: 42px;
    height: 42px;
    background: url('../images/yellowstar.svg') center / contain no-repeat;
    pointer-events: none;
}

.membership-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
}

.star-icon {
    color: #F9C466;
    font-size: 3rem;
}

.membership-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #003944;
    margin: 0 0 0.625rem 0;
    line-height: 1.4;
    font-family: 'Heebo', Arial, sans-serif !important;
}

.membership-subtitle {
    font-size: 1.125rem;
    color: #2E404A;
    margin: 0 0 1.875rem 0;
    font-family: 'Heebo', Arial, sans-serif !important;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    border-radius: 1.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Heebo', Arial, sans-serif !important;
}

.portal-main .btn {
    background: none;
    background-color: var(--e-global-color-secondary);
}

.btn-primary {
    background: #F9C466;
    color: #003944;
}

.btn-primary:hover {
    background: #f7b84a;        
    text-decoration: none;
    color: #003944;
}

/* Dashboard State Variants */
.membership-card--active {
    /* border-color: #003944; */
}

.membership-card--active .membership-title {
    /* color: #003944; */
}

.membership-card--inactive {
    border-color: #F9C466;
}

.membership-card--review {
    border-color: #2196F3;
}

.membership-card--review .membership-title {
    color: #1565C0;
}

.membership-card--unpaid {
    border-color: #F9C466;
}

.membership-status-badge--review {
    background: #e3f2fd;
    color: #1565C0;
}

.membership-status-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Heebo', Arial, sans-serif !important;
    margin-bottom: 1rem;
}

.membership-status-badge--active {
    background: #e8f5e9;
    color: #2e7d32;
}

.membership-status-badge--inactive {
    background: #fff3e0;
    color: #e65100;
}

.membership-status-badge--cancelled {
    background: #dc3232;
    color: #fff;
}

.membership-expiry {
    font-size: 1rem;
    color: #2E404A;
    margin: 0.5rem 0 1.5rem;
    font-family: 'Heebo', Arial, sans-serif !important;
}

.membership-activation-note {
    font-size: 0.875rem;
    color: #4a235a;
    background: #e8daef;
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    margin: 0 0 1rem;
    font-family: 'Heebo', Arial, sans-serif !important;
}

/* ===================================================================
   MEMBERSHIP SECTION STYLES
   =================================================================== */

.membership-section {
    max-width: 40rem;
    margin: 0 auto;
    padding: 1.25rem 0;
}

.membership-section .section-title {
    font-family: 'Heebo', Arial, sans-serif !important;
    font-size: 1.75rem;
    font-weight: 700;
    color: #4B2D45;
    margin-bottom: 1.875rem;
    text-align: center;
}

.membership-status-card {
    background: #ffffff;
    border: 2px solid #F9C466;
    border-radius: 1.25rem;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.membership-status-card--active {
    border-color: #003944;
}

.membership-status-card--inactive {
    border-color: #F9C466;
}

.membership-status-card--review {
    border-color: #2196F3;
}

.membership-status-card--review .membership-status-title {
    color: #1565C0;
}

/* Auto-renew toggle row (membership section) */
.membership-auto-renew-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 12px 0;
    border-top: 1px solid rgba(46, 64, 74, 0.1);
}

.auto-renew-label {
    font-weight: 600;
    color: #2e404a;
}

.auto-renew-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    font-size: 16px;
    color: #2e404a;
}

.toggle-track {
    display: inline-block;
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    position: relative;
    transition: background 0.2s ease;
}

.auto-renew-toggle.is-on .toggle-track {
    background: #46b450;
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: right 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.auto-renew-toggle.is-on .toggle-thumb {
    right: 22px;
}

.membership-card-info {
    background: rgba(46, 64, 74, 0.04);
    padding: 0.75rem 1rem;
    border-radius: var(--guild-radius);
    margin: 0.75rem 0;
    font-size: 0.875rem;
}

.card-info-title {
    font-weight: 600;
    margin-bottom: 4px;
}

/* Cancel-membership pill button */
.membership-cancel-row {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(46, 64, 74, 0.1);
}

/* Scoped to .portal-main so it beats `.portal-main .btn` (which would
   otherwise paint the cancel button with the Elementor secondary color
   on top of the red border, breaking the outlined-pill convention). */
.portal-main .btn-cancel-membership {
    display: inline-block;
    background: #fff;
    border: 1.5px solid #dc3232;
    color: #dc3232;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    padding: 10px 26px;
    border-radius: 999px;
    text-decoration: none;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.portal-main .btn-cancel-membership:hover,
.portal-main .btn-cancel-membership:focus {
    background: #dc3232;
    color: #fff;
    outline: none;
}

.membership-status-title {
    font-family: 'Heebo', Arial, sans-serif !important;
    font-size: 1.5rem;
    font-weight: 700;
    color: #003944;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.membership-status-expiry {
    font-family: 'Heebo', Arial, sans-serif !important;
    font-size: 1.125rem;
    color: #2E404A;
    margin: 0 0 0.75rem 0;
}

.membership-auto-renew {
    font-family: 'Heebo', Arial, sans-serif !important;
    font-size: 1rem;
    color: #2e7d32;
    margin: 0 0 0.75rem 0;
    font-weight: 500;
}

.membership-last-order {
    font-family: 'Heebo', Arial, sans-serif !important;
    font-size: 0.9375rem;
    color: #666;
    margin: 1rem 0 0 0;
    padding-top: 1rem;
    border-top: 1px solid #e8e8e8;
}

.membership-status-description {
    font-family: 'Heebo', Arial, sans-serif !important;
    font-size: 1.0625rem;
    color: #2E404A;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.membership-price {
    font-family: 'Heebo', Arial, sans-serif !important;
    font-size: 1.25rem;
    font-weight: 600;
    color: #003944;
    margin: 0 0 1.5rem 0;
}

.membership-cta {
    margin-top: 0.5rem;
}

.btn-membership-buy {
    display: inline-block;
    padding: 0.875rem 3rem;
    font-size: 1.25rem;
}

.membership-contact {
    font-family: 'Heebo', Arial, sans-serif !important;
    font-size: 1rem;
    color: #666;
    margin: 1.5rem 0 0 0;
}

/* ===================================================================
   ORDER VIEW SECTION STYLES
   =================================================================== */

.order-view-section {
    max-width: 50rem;
    margin: 0 auto;
}

.order-view-header {
    margin-bottom: 2rem;
}

.order-back-link {
    display: inline-block;
    font-family: 'Heebo', Arial, sans-serif !important;
    font-size: 1rem;
    color: #003944;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.order-back-link:hover {
    color: #F9C466;
    text-decoration: none;
}

.order-view-section .section-title {
    font-family: 'Heebo', Arial, sans-serif !important;
    font-size: 1.75rem;
    font-weight: 700;
    color: #4B2D45;
    margin: 0;
    text-align: center;
}

.order-view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.order-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-label {
    font-family: 'Heebo', Arial, sans-serif !important;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2E404A;
}

.meta-value {
    font-family: 'Heebo', Arial, sans-serif !important;
    font-size: 0.9375rem;
    color: #2E404A;
}

.order-items-wrapper {
    margin-bottom: 2rem;
}

.order-items-title {
    font-family: 'Heebo', Arial, sans-serif !important;
    font-size: 1.25rem;
    font-weight: 600;
    color: #4B2D45;
    margin: 0 0 1rem 0;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
    background: #ffffff;
    border-radius: 0.625rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.order-items-table thead {
    background: #f8f9fa;
}

.order-items-table th {
    padding: 0.875rem 1.25rem;
    text-align: right;
    font-family: 'Heebo', Arial, sans-serif !important;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #2E404A;
    border-bottom: 2px solid #e8e8e8;
}

.order-items-table td {
    padding: 1rem 1.25rem;
    text-align: right;
    font-family: 'Heebo', Arial, sans-serif !important;
    font-size: 0.9375rem;
    color: #2E404A;
    border-bottom: 1px solid #f0f0f0;
}

.order-items-table tbody tr:last-child td {
    border-bottom: none;
}

.order-totals {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 20rem;
    margin-right: auto;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-family: 'Heebo', Arial, sans-serif !important;
}

.total-label {
    font-size: 1rem;
    color: #2E404A;
}

.total-value {
    font-size: 1rem;
    color: #2E404A;
    font-weight: 500;
}

.order-discount .total-value {
    color: #2e7d32;
}

.order-grand-total {
    border-top: 2px solid #e8e8e8;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

.order-grand-total .total-label {
    font-weight: 700;
    font-size: 1.125rem;
    color: #003944;
}

.order-grand-total .total-value {
    font-weight: 700;
    font-size: 1.125rem;
    color: #003944;
}

.order-not-found {
    text-align: center;
    padding: 3.75rem 1.25rem;
    background: #f8f9fa;
    border-radius: 0.625rem;
    color: #666;
    font-size: 1.125rem;
    font-family: 'Heebo', Arial, sans-serif !important;
}

.order-not-found .btn {
    margin-top: 1.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .member-portal-content {
        flex-direction: column;
    }

    .portal-sidebar {
        width: 100%;
        order: 1;
        padding: 2.5rem 1.5rem 0;        
        background: white;
    }

    /* Anchor the floating dropdown to the toggle. */
    .sidebar-nav {
        position: relative;
        background-color: #F4F4F4;
        padding: 0.5rem 1rem;
    }

    .portal-main {
        order: 2;
        padding: 1.25rem;
    }

    /* The avatar is decorative on mobile and the welcome card already
       repeats the user photo in the dashboard — keep the sidebar tight. */
    .user-info {
        display: none;
    }

    /* Reveal toggle, restyle as a tappable bar matching the design:
       label on the right (RTL), hamburger/X icon on the left. */
    .portal-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 1rem 1.25rem;
        border: 0;
        color: #4B2D45;
        font-family: 'Heebo', Arial, sans-serif;
        font-size: 1.25rem;
        font-weight: 600;
        text-align: right;
        cursor: pointer;
    }

    .portal-nav-toggle__label {
        flex: 1;
    }

    /* Three-line hamburger drawn with the icon span + two pseudo-elements,
       morphs into an X when aria-expanded="true". */
    .portal-nav-toggle__icon,
    .portal-nav-toggle__icon::before,
    .portal-nav-toggle__icon::after {
        display: block;
        width: 1.5rem;
        height: 2px;
        background: currentColor;
        transition: transform 0.2s ease, background-color 0.2s ease;
    }
    .portal-nav-toggle__icon {
        position: relative;
    }
    .portal-nav-toggle__icon::before,
    .portal-nav-toggle__icon::after {
        content: '';
        position: absolute;
        left: 0;
    }
    .portal-nav-toggle__icon::before { top: -7px; }
    .portal-nav-toggle__icon::after  { top:  7px; }

    .portal-nav-toggle[aria-expanded="true"] .portal-nav-toggle__icon {
        background: transparent;
    }
    .portal-nav-toggle[aria-expanded="true"] .portal-nav-toggle__icon::before {
        transform: translateY(7px) rotate(45deg);
    }
    .portal-nav-toggle[aria-expanded="true"] .portal-nav-toggle__icon::after {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Collapse the nav by default; reveal when the toggle is open as a
       floating panel that overlays the page content rather than pushing
       it down. Anchored to .sidebar-nav (position:relative above). */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        margin-top: 0.5rem;
        background: #f3f3f3;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        z-index: 50;
    }
    .portal-nav-toggle[aria-expanded="true"] + .nav-menu {
        display: block;
    }

    .nav-item {
        margin-bottom: 0;
        border-bottom: none;
    }

    .nav-item:first-child {
        border-top: none;
    }

    /* In the dropdown the 4.5rem desktop gap above logout is overkill —
       keep the divider line, drop the margin. */
    .nav-item--logout {
        margin-top: 0;
    }

    .nav-item a {
        padding: 1rem 1.25rem;
        text-align: right;
        font-size: 1.125rem;
    }

    /* Mobile keeps the same logout separation rules from the base. */


    .welcome-title {
        font-size: 1.75rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
    }

    .user-photo {
        width: 5rem;
        height: 5rem;
    }

    .membership-card {
        padding: 1.875rem 1.25rem;
        margin: 0 0.625rem;
    }

    /* Mobile: center the star on the top edge instead of the right corner. */
    .membership-card::before {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .membership-title {
        font-size: 1.25rem;
    }

    .btn {
        padding: 0.75rem 1.875rem;
        font-size: 1rem;
    }

    /* Membership section mobile */
    .membership-status-card {
        padding: 1.5rem 1.25rem;
    }

    .membership-status-title {
        font-size: 1.25rem;
    }

    .btn-membership-buy {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1.125rem;
        text-align: center;
    }

    /* Order view mobile */
    .order-view-meta {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .order-items-table thead {
        display: none;
    }

    .order-items-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e8e8e8;
        border-radius: 0.5rem;
        background: #ffffff;
    }

    .order-items-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .order-items-table td:last-child {
        border-bottom: none;
    }

    .order-items-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #2E404A;
    }

    .order-totals {
        max-width: 100%;
    }
}

/* RTL Specific Adjustments */
[dir="rtl"] .member-portal-wrapper,
.member-portal-wrapper {
    direction: rtl;
    text-align: right;
    padding: 0;
    border-radius: 0;
}

/* Loading States */
.member-portal-wrapper .loading {
    text-align: center;
    padding: 2.5rem;
    color: #666;
}

/* Error States */
.member-portal-wrapper .error {
    text-align: center;
    padding: 2.5rem;
    color: #d32f2f;
    background: #ffebee;
    border-radius: 10px;
    margin: 1.25rem;
}

/* ===================================================================
   LOGIN & AUTHENTICATION PAGES STYLES
   Comprehensive styling for login, register, and password reset pages
   =================================================================== */

/* Login Wrapper */
.member-portal-login-wrapper {
    direction: rtl;
    text-align: right;
    max-width: 700px;
    margin: 60px auto;
    padding: 20px;
    font-family: 'Heebo', Arial, sans-serif;
}

.login-container {
    background: #ffffff;
    border-radius: 15px;
    padding: 60px 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 50px;
}

.login-title {
    font-family: 'Heebo', Arial, sans-serif;
    font-weight: 700;
    font-size: 3rem;
    line-height: 65px;
    letter-spacing: 0.38px;
    text-align: center;
    color: #4B2D45;
    margin: 0 0 15px 0;
}

.login-subtitle {
    font-family: 'Heebo', Arial, sans-serif;
    font-weight: 400;
    font-size: 1.125rem;
    color: #2E404A;
    margin: 0;
    text-align: center;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    /* Labels match body typography per site convention — same family,
       size, weight, and line-height as <p>. Inherits from base.css. */
    font-weight: 400;
    text-align: right;
    color: #2E404A;
    margin-bottom: 0.625rem;
}

/* Form Controls — height and font come from base.css (input selector
   gets var(--guild-field-h) + body typography). Only structural and
   visual chrome lives here. */
.form-control,
.member-portal-login-wrapper input[type="text"],
.member-portal-login-wrapper input[type="password"],
.member-portal-login-wrapper input[type="email"] {
    width: 100%;
    padding: 0 1rem;
    border: 1px solid #2E404A;
    border-radius: var(--guild-radius);
    direction: rtl;
    text-align: right;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus,
.member-portal-login-wrapper input[type="text"]:focus,
.member-portal-login-wrapper input[type="password"]:focus,
.member-portal-login-wrapper input[type="email"]:focus {
    outline: none;
    border-color: #F9C466;
    box-shadow: 0 0 0 3px rgba(249, 196, 102, 0.2);
}

/* Remember Me Checkbox */
.form-remember {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.remember-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'Heebo', Arial, sans-serif;
    font-size: 1.125rem;
    color: #2E404A;
    font-weight: normal;
    margin-bottom: 0;
}

.remember-label input[type="checkbox"] {
    margin-left: 10px;
    margin-right: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

/* Buttons */
.btn-login,
.member-portal-login-wrapper button[type="submit"],
.member-portal-login-wrapper .wp-submit {
    width: 100%;
    max-width: 600px;
    height: var(--guild-field-h);
    padding: 0 1.5rem;
    background-color: #F9C466;
    border: none;
    border-radius: var(--guild-radius);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 120%;
    letter-spacing: -0.019em;
    text-align: center;
    color: #003944;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login:hover,
.member-portal-login-wrapper button[type="submit"]:hover {
    background-color: #f7b84a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 196, 102, 0.4);
}

/* Login Footer */
.login-footer {
    margin-top: 40px;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.lost-password,
.register-link {
    margin: 12px 0;
}

.lost-password a,
.register-link a {
    color: #2E404A;
    text-decoration: none;
    font-family: 'Heebo', Arial, sans-serif;
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

.lost-password a:hover,
.register-link a:hover {
    color: #F9C466;
    text-decoration: underline;
}

/* Login Error Messages */
.login-error,
.member-portal-login-wrapper .error {
    background: #ffebee;
    color: #d32f2f;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    font-family: 'Heebo', Arial, sans-serif;
    font-size: 1rem;
    border: 1px solid #ffcdd2;
}

/* Success Messages */
.login-success,
.member-portal-login-wrapper .success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    font-family: 'Heebo', Arial, sans-serif;
    font-size: 1rem;
    border: 1px solid #c8e6c9;
}

/* Mobile Responsive for Login Pages */
@media (max-width: 768px) {
    .member-portal-login-wrapper {
        margin: 30px auto;
        padding: 15px;
    }
    
    .login-container {
        padding: 40px 25px;
    }
    
    .login-title {
        font-size: 2.5rem;
        line-height: 45px;
    }
    
    .login-subtitle {
        font-size: 1rem;
    }
    
    /* Field height + label size are token-driven (--guild-field-h shifts
       to 2.5rem at <768px in base.css). Nothing to override here. */


    .lost-password a,
    .register-link a {
        font-size: 1rem;
    }
}

/* WordPress Lost Password Page Styling */
body.login {
    direction: rtl;
    font-family: 'Heebo', Arial, sans-serif;
}

body.login #login {
    max-width: 700px;
    padding: 20px;
}

body.login #login h1 a {
    width: auto;
    height: auto;
    text-indent: 0;
    background: none;
    font-family: 'Heebo', Arial, sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #4B2D45;
}

body.login form {
    background: #ffffff;
    border-radius: 15px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: none;
}

body.login label {
    font-family: 'Heebo', Arial, sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 120%;
    letter-spacing: -0.019em;
    text-align: right;
    color: #2E404A;
}

body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
    height: var(--guild-field-h);
    padding: 0 1rem;
    border: 1px solid #2E404A;
    border-radius: var(--guild-radius);
    direction: rtl;
    text-align: right;
    background: #ffffff;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
    border-color: #F9C466;
    box-shadow: 0 0 0 3px rgba(249, 196, 102, 0.2);
}

body.login .button-primary {
    width: 100%;
    height: 57px;
    padding: 14px 24px;
    background-color: #F9C466 !important;
    border: none !important;
    border-radius: 10px;
    font-family: 'Heebo', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 120%;
    letter-spacing: -0.019em;
    text-align: center;
    color: #003944 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

body.login .button-primary:hover {
    background-color: #f7b84a !important;
    transform: translateY(-2px);
}

body.login #nav,
body.login #backtoblog {
    text-align: center;
    padding: 10px 0;
}

body.login #nav a,
body.login #backtoblog a {
    color: #2E404A;
    font-family: 'Heebo', Arial, sans-serif;
    font-size: 1rem;
    text-decoration: none;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
    color: #F9C466;
}

body.login .message,
body.login .success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    padding: 15px 20px;
    font-family: 'Heebo', Arial, sans-serif;
}

body.login #login_error {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    border-radius: 10px;
    padding: 15px 20px;
    font-family: 'Heebo', Arial, sans-serif;
}

/* ===================================================================
   WOOCOMMERCE ACCOUNT PAGES STYLES
   Styling for WooCommerce My Account, Lost Password, etc.
   =================================================================== */

/* WooCommerce Forms Container */
.woocommerce-account .woocommerce,
.woocommerce-lost-password .woocommerce {
    direction: rtl;
    text-align: right;
    max-width: 700px;
    margin: 60px auto;
    padding: 20px;
    font-family: 'Heebo', Arial, sans-serif;
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.lost_reset_password {
    background: #ffffff;
    border-radius: 15px;
    padding: 60px 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: none;
    max-width: 700px;
    margin: 0 auto;
}

/* WooCommerce Form Titles */
.woocommerce h2,
.woocommerce .woocommerce-form-login__title,
.woocommerce .woocommerce-ResetPassword h2 {
    font-family: 'Heebo', Arial, sans-serif;
    font-weight: 700;
    font-size: 3rem;
    line-height: 65px;
    letter-spacing: 0.38px;
    text-align: center;
    color: #4B2D45;
    margin: 0 0 50px 0;
}

/* WooCommerce Form Labels */
.woocommerce form label,
.woocommerce-form__label-for-checkbox {
    font-family: 'Heebo', Arial, sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 120%;
    letter-spacing: -0.019em;
    text-align: right;
    color: #2E404A;
    margin-bottom: 10px;
    display: block;
}

.woocommerce-form__label-for-checkbox {
    display: inline-flex;
    align-items: center;
    font-size: 1.125rem;
}

/* WooCommerce Form Fields */
.woocommerce form .form-row input.input-text,
.woocommerce form input[type="text"],
.woocommerce form input[type="email"],
.woocommerce form input[type="password"] {
    width: 100%;
    max-width: 600px;
    height: var(--guild-field-h);
    padding: 0 1rem;
    border: 1px solid #2E404A;
    border-radius: var(--guild-radius);
    direction: rtl;
    text-align: right;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    background: #ffffff;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form input[type="text"]:focus,
.woocommerce form input[type="email"]:focus,
.woocommerce form input[type="password"]:focus {
    outline: none;
    border-color: #F9C466;
    box-shadow: 0 0 0 3px rgba(249, 196, 102, 0.2);
}

/* WooCommerce Form Rows */
.woocommerce form .form-row {
    margin-bottom: 25px;
}

/* WooCommerce Buttons */
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button,
.woocommerce .woocommerce-Button {
    width: 100%;
    max-width: 600px;
    height: var(--guild-field-h);
    padding: 0 1.5rem;
    background-color: #F9C466 !important;
    border: none !important;
    border-radius: var(--guild-radius);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 120%;
    letter-spacing: -0.019em;
    text-align: center;
    color: #003944 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover {
    background-color: #f7b84a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 196, 102, 0.4);
    text-decoration: none;
}

/* WooCommerce Messages */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    padding: 15px 20px;
    font-family: 'Heebo', Arial, sans-serif;
    text-align: center;
    margin-bottom: 30px;
}

.woocommerce .woocommerce-error {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    border-radius: 10px;
    padding: 15px 20px;
    font-family: 'Heebo', Arial, sans-serif;
    text-align: center;
    margin-bottom: 30px;
}

/* WooCommerce Links */
.woocommerce a.lost_password,
.woocommerce .woocommerce-form-login__rememberme {
    color: #2E404A;
    font-family: 'Heebo', Arial, sans-serif;
    font-size: 1.125rem;
    text-decoration: none;
}

.woocommerce a.lost_password:hover {
    color: #F9C466;
    text-decoration: underline;
}

/* Lost Password Specific */
.woocommerce-lost-password p {
    font-family: 'Heebo', Arial, sans-serif;
    font-size: 1.125rem;
    color: #2E404A;
    text-align: center;
    margin-bottom: 30px;
}

/* Responsive for WooCommerce */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce,
    .woocommerce-lost-password .woocommerce {
        margin: 30px auto;
        padding: 15px;
    }
    
    .woocommerce form.login,
    .woocommerce form.register,
    .woocommerce form.lost_reset_password {
        padding: 40px 25px;
    }
    
    .woocommerce h2,
    .woocommerce .woocommerce-form-login__title,
    .woocommerce .woocommerce-ResetPassword h2 {
        font-size: 2.5rem;
        line-height: 45px;
    }
    
    /* Field height + button height come from --guild-field-h (token
       handles the breakpoint shift in base.css). Labels match body
       typography from base.css. Nothing to override here. */
}
