/**
 * Standalone ValueCard Auth Styles
 * SCOPED to match both Woodmart Sidebar and Delivery Slots Popup
 */

/* 1. Base Hidden States - DO NOT USE !IMPORTANT */
.auth-form-wrap,
.otp-form-wrap .otp-step-2,
.register-form-wrap .reg-step-2 {
    display: none;
}

/* 2. Base Input & Label Styling (Matching Popup Design) */
.auth-form-group, .auth-input-group {
    margin-bottom: 15px;
}

.auth-form-label {
    display: block;
    margin-bottom: 5px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.auth-form-input {
    width: 100%;
    height: 42px;
    padding: 0 15px;
    border: 1px solid rgba(0, 0, 0, 0.105);
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.2s ease;
    text-align: left;
    direction: ltr;
}

/* RTL override for specific fields */
.reg-first-name, 
.reg-last-name {
    direction: rtl !important;
    text-align: right !important;
}

/* Phone numbers should be LTR */
.auth-form-input.otp-phone,
.auth-form-input.reg-phone {
    text-align: left;
    direction: ltr;
}

/* Verification code styling */
.auth-form-input.code-input {
    text-align: center;
    letter-spacing: 4px;
}

.auth-form-input:focus {
    border-color: var(--wd-primary-color);
    outline: none;
}

/* Message styling */
.auth-message {
    margin: 15px 0;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.auth-message:empty {
    display: none;
}

.auth-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-message.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Back Link styling */
.auth-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--wd-primary-color);
    font-size: 14px;
    padding: 0;
    cursor: pointer;
    margin-top: 20px;
    font-weight: 600;
}

.auth-back-btn:hover{
    background-color: transparent;
}

/* 3. Woodmart Button Aesthetics (Global Members Club Buttons) */
.login-club-btn,
.register-club-btn,
.auth-form-wrap .btn {
    background-color: var(--wd-primary-color);
    color: #fff;
    border: none;
    border-radius: 42px;
    height: 50px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    transition: all 0.2s ease;
}

.login-club-btn:hover,
.register-club-btn:hover,
.auth-form-wrap .btn:hover {
    background-color: rgb(30,14,8);
}

/* Specifically for "Register" as a bordered button in Sidebar entry */
.register-club-btn.btn-style-bordered {
    background-color: transparent;
    color: var(--wd-primary-color);
    border: 1px solid var(--wd-primary-color);
}

.register-club-btn.btn-style-bordered:hover {
    background-color: var(--wd-primary-color);
    color: #fff;
}


/* 4. Layout Control */

/* Default Modal Side-by-side (Desktop) */
@media (min-width: 769px) {
    .otp-form-wrap .otp-step-1, 
    .otp-form-wrap .otp-step-2 {
        display: flex;
        flex-wrap: nowrap;
        align-items: flex-end;
        justify-content: space-between;
        gap: 12px;
    }
    .auth-input-group {
        flex: 1;
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
    }
    .otp-form-wrap .otp-step-1 .auth-form-input, 
    .otp-form-wrap .otp-step-2 .auth-form-input {
        margin-bottom: 0;
    }
    /* Buttons in side-by-side mode are auto-width */
    .otp-form-wrap .otp-step-1 .btn, 
    .otp-form-wrap .otp-step-2 .btn {
        width: auto;
        height: auto;
        font-size: 14px;
        min-height: 42px;
        padding: 0 25px;
    }
}

/* Sidebar Specific: Force stacked layout for Sidebar */
.login-form-side .otp-form-wrap .otp-step-1, 
.login-form-side .otp-form-wrap .otp-step-2 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.login-form-side .token-otp-form-wrap .token-otp-step-1 > *, 
.login-form-side .token-otp-form-wrap .token-otp-step-2 > * {
    width: 100%;
}

.login-form-side .otp-form-wrap .otp-step-1 > *, 
.login-form-side .otp-form-wrap .otp-step-2 > * {
    width: 100%;
}

.login-form-side .otp-form-wrap .btn {
    width: 100%;
    height: 50px;
    font-size: 16px;
}

/* Support for custom icons alignment */
.btn [class^="icon-"] {
    margin-bottom: 0;
}

/* Custom Checkbox */
.custom-round-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 35px;
    cursor: pointer;
    font-size: 14px;
}

.reg-terms-wrap {
    margin: 15px 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
}


.login-buttons-wrap.vc-sidebar-auth-buttons{
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vc-sidebar-auth-forms{
    padding: 20px;
}

.myaccount-wrap{
    max-width: 500px;
    margin: 0 auto;
}