.wmc-login-wrap {
    max-width: 1020px;
}

.wmc-login-head {
    margin-bottom: 16px;
}

.wmc-login-head h2 {
    font-size: 29px;
}

.wmc-login-head p {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.8;
    margin: 8px 0 0;
}

.wmc-login-notice {
    background: #ecfdf3;
    border: 1px solid #86efac;
    border-radius: 8px;
    color: #166534;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    padding: 10px 12px;
}

.wmc-login-layout {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 390px;
}

.wmc-login-side {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

.wmc-login-panel {
    background: #f8f8fb;
    border: 1px solid #d8dbe3;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(17, 24, 39, .04);
    padding: 16px;
}

.wmc-login-panel-main {
    min-height: 100%;
}

.wmc-login-section-title {
    color: #9b1b4b;
    font-size: 23px;
    font-weight: 800;
    margin: 0 0 10px;
    padding-left: 28px;
    position: relative;
}

.wmc-login-section-title::before {
    background: #9b1b4b;
    border-radius: 999px;
    color: #fff;
    content: "\279C";
    font-size: 10px;
    font-weight: 700;
    height: 19px;
    left: 0;
    line-height: 20px;
    position: absolute;
    text-align: center;
    top: 5px;
    width: 19px;
}

.wmc-login-section-text {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.8;
    margin: 0 0 12px;
}

.wmc-login-form {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.wmc-login-form .wmc-reg-actions {
    margin-top: 10px;
}

.wmc-login-form .wmc-reg-btn {
    width: 100%;
}

.wmc-login-remember {
    align-items: center;
    color: #374151;
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
    margin-top: 2px;
}

.wmc-login-remember input[type="checkbox"] {
    height: 16px;
    width: 16px;
}

.wmc-login-lost-link {
    color: #2563eb;
    display: inline-block;
    font-size: 12.5px;
    margin-top: 8px;
    text-decoration: none;
}

.wmc-login-lost-link:hover {
    text-decoration: underline;
}

.wmc-login-wide-btn {
    min-width: 0;
    width: 100%;
}

.wmc-login-guest-btn {
    background: #e35a5a;
    border: 0;
    color: #fff;
}

.wmc-login-guest-btn:hover {
    background: #c64545;
    color: #fff;
}

.wmc-login-panel-guest {
    border-color: #e8c7c7;
}

.wmc-login-success-card {
    max-width: 580px;
}

.wmc-login-reset-note {
    background: #f5f7fb;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #475569;
    font-size: 12.5px;
    line-height: 1.7;
    margin: 0 0 12px;
    padding: 9px 11px;
}

.wmc-login-wrap-reset .wmc-login-layout {
    grid-template-columns: 1fr;
}

.wmc-login-wrap-reset .wmc-login-panel-main {
    margin: 0 auto;
    max-width: 660px;
}

@media (max-width: 980px) {
    .wmc-login-layout {
        grid-template-columns: 1fr;
    }

    .wmc-login-side {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .wmc-login-wrap {
        max-width: 100%;
    }

    .wmc-login-head h2 {
        font-size: 23px;
    }

    .wmc-login-panel {
        border-radius: 10px;
        padding: 13px 12px;
    }

    .wmc-login-section-title {
        font-size: 20px;
    }
}

/* ── WoodMart theme override for login buttons ── */
.wmc-login-wrap .wmc-reg-btn {
    display: inline-block !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    padding: 12px 20px !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all .15s ease !important;
    letter-spacing: .4px !important;
    box-shadow: none !important;
    border: none !important;
}

.wmc-login-wrap .wmc-reg-btn-primary {
    background: #9b1b4b !important;
    color: #fff !important;
    border: none !important;
}

.wmc-login-wrap .wmc-reg-btn-primary:hover {
    background: #7a1038 !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(155, 27, 75, .28) !important;
}

.wmc-login-wrap .wmc-reg-btn-outline {
    background: #fff !important;
    border: 1.5px solid #9b1b4b !important;
    color: #9b1b4b !important;
}

.wmc-login-wrap .wmc-reg-btn-outline:hover {
    background: #9b1b4b !important;
    color: #fff !important;
}

.wmc-login-form .wmc-reg-btn {
    width: 100% !important;
    min-width: 0 !important;
}

/* ── Keep visible borders for login/lost inputs even under aggressive theme CSS ── */
.wmc-login-wrap .wmc-reg-form input[type="text"],
.wmc-login-wrap .wmc-reg-form input[type="email"],
.wmc-login-wrap .wmc-reg-form input[type="password"],
.wmc-login-wrap .wmc-reg-form select,
.wmc-login-wrap .wmc-otp-email-field {
    background: #fff !important;
    border: 1px solid #d9c4ce !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: #1f2937 !important;
}

.wmc-login-wrap .wmc-reg-form input[type="text"]:focus,
.wmc-login-wrap .wmc-reg-form input[type="email"]:focus,
.wmc-login-wrap .wmc-reg-form input[type="password"]:focus,
.wmc-login-wrap .wmc-reg-form select:focus,
.wmc-login-wrap .wmc-otp-email-field:focus {
    border-color: #9b1b4b !important;
    box-shadow: 0 0 0 2px rgba(155, 27, 75, .09) !important;
}

.wmc-login-wrap .wmc-reg-form input.wmc-reg-input-error,
.wmc-login-wrap .wmc-reg-form select.wmc-reg-input-error,
.wmc-login-wrap .wmc-otp-email-field.wmc-reg-input-error {
    border-color: #dc2626 !important;
    background: #fff7f8 !important;
}

.wmc-login-guest-btn.wmc-reg-btn {
    background: #e35a5a !important;
    color: #fff !important;
    border: none !important;
}

.wmc-login-guest-btn.wmc-reg-btn:hover {
    background: #c64545 !important;
    color: #fff !important;
}

/* ── OTP styles ─────────────────────────────────────────────────── */
.wmc-otp-code-field {
    font-size: 28px !important;
    font-weight: 700 !important;
    letter-spacing: 10px !important;
    text-align: center !important;
    width: 100% !important;
    padding: 14px 20px !important;
    border: 1px solid #d9c4ce !important;
    border-radius: 8px !important;
    background: #fdf5f7 !important;
    color: #1f2937 !important;
    outline: none !important;
    transition: border-color .15s, box-shadow .15s !important;
}
.wmc-otp-code-field:focus {
    border-color: #9b1b4b !important;
    box-shadow: 0 0 0 2px rgba(155,27,75,.09) !important;
    background: #fff !important;
}
#wmc-otp-countdown {
    font-weight: 700;
    color: #9b1b4b;
}
#wmc-otp-countdown.wmc-otp-expiring {
    color: #dc2626;
    animation: wmc-otp-blink .8s infinite;
}
@keyframes wmc-otp-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}
.wmc-otp-link-btn {
    background: none !important;
    border: none !important;
    color: #2563eb !important;
    cursor: pointer !important;
    font-size: 13px !important;
    padding: 0 !important;
    text-decoration: underline !important;
    font-family: inherit !important;
    box-shadow: none !important;
    width: auto !important;
    display: inline !important;
    min-width: 0 !important;
}
.wmc-otp-link-btn:disabled {
    color: #9ca3af !important;
    cursor: default !important;
    text-decoration: none !important;
}

/* ── OTP digit boxes ────────────────────────────────────────────── */
.wmc-otp-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 8px 0 4px;
}
.wmc-otp-box {
    width: 52px !important;
    height: 60px !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    text-align: center !important;
    border: 1px solid #d9c4ce !important;
    border-radius: 8px !important;
    background: #fdf5f7 !important;
    color: #1f2937 !important;
    outline: none !important;
    transition: border-color .15s, box-shadow .15s !important;
    padding: 0 !important;
    caret-color: transparent;
}
.wmc-otp-box:focus {
    border-color: #9b1b4b !important;
    box-shadow: 0 0 0 2px rgba(155,27,75,.1) !important;
    background: #fff !important;
}
.wmc-otp-box.wmc-otp-box-filled {
    border-color: #9b1b4b !important;
    background: #fff !important;
}
.wmc-otp-box.wmc-otp-box-error {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
}
@media (max-width: 480px) {
    .wmc-otp-box {
        width: 42px !important;
        height: 52px !important;
        font-size: 22px !important;
        gap: 6px;
    }
    .wmc-otp-boxes { gap: 6px; }
}

/* ── Eye icon for password toggle ──────────────────────────────── */
.wmc-login-wrap .wmc-reg-pass-row {
    display: block !important;
    position: relative !important;
}
.wmc-login-wrap .wmc-reg-pass-row input {
    border-right: 1px solid #d9c4ce !important;
    border-radius: 8px !important;
    padding-right: 48px !important;
}
.wmc-login-wrap .wmc-reg-pass-toggle {
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #7b5364 !important;
    cursor: pointer !important;
    display: flex !important;
    height: 34px !important;
    justify-content: center !important;
    padding: 0 !important;
    position: absolute !important;
    right: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: background .15s, color .15s !important;
    width: 34px !important;
}
.wmc-login-wrap .wmc-reg-pass-row:focus-within .wmc-reg-pass-toggle {
    box-shadow: none !important;
    color: #9b1b4b !important;
}
.wmc-login-wrap .wmc-reg-pass-toggle:hover {
    background: rgba(155, 27, 75, .08) !important;
    color: #9b1b4b !important;
}
.wmc-login-wrap .wmc-eye-icon {
    color: currentColor;
    display: block;
    height: 18px;
    pointer-events: none;
    stroke-width: 1.9;
    width: 18px;
}

/* ── OTP sent card ───────────────────────────────────────────────── */
.wmc-otp-sent-card {
    background: #fdf5f7;
    border: 1px solid #e1c8d3;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 13.5px;
}
.wmc-otp-sent-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.wmc-otp-sent-label {
    color: #6b7280;
    white-space: nowrap;
}
.wmc-otp-sent-value {
    font-weight: 700;
    color: #1f2937;
    word-break: break-all;
}
.wmc-otp-timer-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
}
.wmc-otp-timer-label {
    color: #6b7280;
}
.wmc-otp-timer-value {
    font-weight: 700;
    color: #9b1b4b;
    font-size: 15px;
    min-width: 48px;
}
.wmc-otp-timer-value.wmc-otp-expiring {
    color: #dc2626;
    animation: wmc-otp-blink .8s infinite;
}
.wmc-otp-resend-row {
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
}

/* ── Lost mode email input styling (outside wmc-reg-form) ────────── */
.wmc-otp-email-field {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    color: #1f2937 !important;
    background: #fff !important;
    outline: none !important;
    transition: border-color .15s, box-shadow .15s !important;
    line-height: 1.5 !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}
.wmc-otp-email-field:focus {
    border-color: #9b1b4b !important;
    box-shadow: 0 0 0 3px rgba(155,27,75,.08) !important;
}
.wmc-otp-email-field.wmc-reg-input-error {
    border-color: #dc2626 !important;
}
.wmc-reg-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.wmc-reg-label span {
    color: #9b1b4b;
    margin-left: 3px;
}


/* ── OTP Password Change Popup ───────────────────────────────────── */
.wmc-otp-pw-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: wmc-fade-in .2s ease;
}
@keyframes wmc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.wmc-otp-pw-modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,.22);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    animation: wmc-slide-up .25s ease;
}
@keyframes wmc-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Header */
.wmc-otp-pw-header {
    background: linear-gradient(135deg, #9b1b4b 0%, #b8235a 100%);
    color: #fff;
    padding: 30px 28px 24px;
    text-align: center;
}
.wmc-otp-pw-icon-svg {
    width: 44px;
    height: 44px;
    display: block;
    margin: 0 auto 14px;
    stroke: rgba(255,255,255,.95);
}
.wmc-otp-pw-header h2 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff !important;
    letter-spacing: .3px;
}
.wmc-otp-pw-header p {
    font-size: 13px;
    opacity: .88;
    margin: 0;
    line-height: 1.65;
}

/* Alert */
.wmc-otp-pw-alert {
    margin: 14px 24px 0;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
}
.wmc-otp-pw-alert.is-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
}
.wmc-otp-pw-alert.is-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #16a34a;
}

/* Body */
.wmc-otp-pw-body {
    padding: 20px 24px 4px;
}
.wmc-otp-pw-field {
    margin-bottom: 16px;
}
.wmc-otp-pw-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.wmc-otp-pw-field label span {
    color: #9b1b4b;
    margin-left: 2px;
}

/* Inputs inside popup */
.wmc-otp-pw-field .wmc-reg-pass-row {
    display: block;
    position: relative;
}
.wmc-otp-pw-input {
    width: 100% !important;
    height: 46px !important;
    padding: 0 48px 0 14px !important;
    border: 1px solid #d1d5db !important;
    border-right: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #1f2937 !important;
    background: #fff !important;
    outline: none !important;
    transition: border-color .15s, box-shadow .15s !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}
.wmc-otp-pw-input:focus {
    border-color: #9b1b4b !important;
    box-shadow: 0 0 0 2px rgba(155,27,75,.09) !important;
}
.wmc-otp-pw-input.is-error {
    border-color: #dc2626 !important;
}
.wmc-otp-pw-field .wmc-reg-pass-toggle {
    border-radius: 999px !important;
    height: 34px !important;
    width: 34px !important;
    border: 0 !important;
    background: transparent !important;
    color: #7b5364 !important;
    position: absolute !important;
    right: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}
.wmc-otp-pw-input:focus ~ .wmc-reg-pass-toggle,
.wmc-otp-pw-field:focus-within .wmc-reg-pass-toggle {
    box-shadow: none !important;
    color: #9b1b4b !important;
}

/* Footer */
.wmc-otp-pw-footer {
    padding: 16px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#wmc-otp-pw-save {
    width: 100% !important;
    height: 50px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    background: #9b1b4b !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    letter-spacing: .3px !important;
    transition: background .15s, transform .1s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}
#wmc-otp-pw-save:hover:not(:disabled) {
    background: #820f3b !important;
}
#wmc-otp-pw-save:active:not(:disabled) {
    transform: scale(.98) !important;
}
#wmc-otp-pw-save:disabled {
    opacity: .65 !important;
    cursor: not-allowed !important;
}
.wmc-otp-pw-skip-btn {
    background: none !important;
    border: none !important;
    color: #9ca3af !important;
    font-size: 12.5px !important;
    cursor: pointer !important;
    text-align: center !important;
    padding: 4px !important;
    font-family: inherit !important;
    text-decoration: underline !important;
    transition: color .15s !important;
    box-shadow: none !important;
    width: auto !important;
    display: block !important;
    margin: 0 auto !important;
}
.wmc-otp-pw-skip-btn:hover {
    color: #6b7280 !important;
}

/* ── Compact mobile layout for the login / lost / reset screens ──────
   Placed last so the !important overrides below win over the WoodMart
   button/input overrides earlier in this file (equal specificity → last wins). */
@media (max-width: 600px) {
    .wmc-login-wrap {
        margin: 4px auto !important;
        padding: 0 8px 10px !important;
    }

    /* header */
    .wmc-login-head {
        margin-bottom: 10px;
    }
    .wmc-login-head h2 {
        font-size: 16px;
        line-height: 1.35;
    }
    .wmc-login-head p {
        font-size: 12px;
        line-height: 1.65;
        margin-top: 6px;
    }

    /* tighter layout gaps */
    .wmc-login-layout,
    .wmc-login-side {
        gap: 9px;
    }

    /* panels */
    .wmc-login-panel {
        border-radius: 8px;
        padding: 11px 10px;
    }

    /* section headings inside panels */
    .wmc-login-section-title {
        font-size: 15px;
        line-height: 1.35;
        padding-left: 22px;
        margin-bottom: 7px;
    }
    .wmc-login-section-title::before {
        height: 17px;
        width: 17px;
        line-height: 18px;
        font-size: 9px;
        top: 2px;
    }
    .wmc-login-section-text {
        font-size: 12px;
        line-height: 1.65;
        margin-bottom: 8px;
    }

    .wmc-login-form .wmc-reg-actions {
        margin-top: 8px;
    }

    .wmc-login-wrap .wmc-reg-form .wmc-reg-field {
        margin-bottom: 9px;
    }

    .wmc-login-wrap .wmc-reg-grid2,
    .wmc-login-wrap .wmc-reg-password-grid,
    .wmc-login-wrap .wmc-reg-row2,
    .wmc-login-wrap .wmc-reg-row3 {
        gap: 8px !important;
    }

    /* labels */
    .wmc-login-wrap .wmc-reg-form label,
    .wmc-reg-label {
        font-size: 12.5px !important;
        line-height: 1.35 !important;
        margin-bottom: 4px;
    }

    /* inputs — smaller height + font */
    .wmc-login-wrap .wmc-reg-form input[type="text"],
    .wmc-login-wrap .wmc-reg-form input[type="email"],
    .wmc-login-wrap .wmc-reg-form input[type="password"],
    .wmc-login-wrap .wmc-reg-form select,
    .wmc-login-wrap .wmc-otp-email-field {
        border-radius: 7px !important;
        font-size: 13px !important;
        height: 40px !important;
        padding: 8px 10px !important;
    }
    .wmc-login-wrap .wmc-reg-pass-row input[type="password"] {
        padding-right: 44px !important;
    }
    .wmc-login-wrap .wmc-reg-pass-toggle {
        height: 32px !important;
        right: 5px !important;
        width: 32px !important;
    }

    /* buttons */
    .wmc-login-wrap .wmc-reg-btn {
        border-radius: 7px !important;
        font-size: 13px !important;
        padding: 10px 14px !important;
    }

    /* remember / lost-password helpers */
    .wmc-login-remember {
        font-size: 12px;
        gap: 6px;
    }
    .wmc-login-remember input[type="checkbox"] {
        height: 15px;
        width: 15px;
    }
    .wmc-login-lost-link {
        font-size: 12px;
        margin-top: 6px;
    }
    .wmc-login-reset-note {
        font-size: 12px;
        line-height: 1.6;
        margin-bottom: 8px;
        padding: 8px 9px;
    }

    /* OTP sent card + timers */
    .wmc-otp-sent-card {
        font-size: 12px;
        margin-bottom: 9px;
        padding: 9px 11px;
    }
    .wmc-otp-timer-value {
        font-size: 14px;
    }

    /* success screen */
    .wmc-login-success-card {
        max-width: 100%;
    }
}
