/* ==========================================================================
   VANRITI LUXURY LOGIN & FAST CHECKOUT MODAL
   File: public/css/vr-login-premium.css
   Designed for high-end botanical luxury, flawless alignment & responsiveness
   ========================================================================== */

/* ── Modal Backdrop & Window ── */
#vrLoginModal {
    z-index: 1060;
}

#vrLoginModal.modal.fade .modal-dialog {
    transform: scale(0.96) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#vrLoginModal.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

.vr-modal-backdrop.show {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(15, 26, 17, 0.65);
}

#vrLoginModal .modal-dialog {
    max-width: 820px;
    margin: 1.5rem auto;
}

.vr-login-dialog {
    border: 1px solid rgba(181, 138, 58, 0.25) !important;
    border-radius: 26px !important;
    overflow: hidden;
    background: #ffffff !important;
    box-shadow:
        0 24px 70px rgba(16, 32, 18, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
    position: relative;
}

/* ── Close Button ── */
.vr-modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(220, 215, 200, 0.8);
    background: #ffffff;
    color: #647062;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 20;
    transition: all 0.25s ease;
    padding: 0;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.vr-modal-close-btn:hover {
    background: #253E27;
    color: #ffffff;
    border-color: #253E27;
    transform: rotate(90deg);
}

/* ── Split Grid Container ── */
.vr-modal-body-split {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 480px;
}

@media (min-width: 768px) {
    .vr-modal-body-split {
        grid-template-columns: 310px 1fr;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   LEFT BRAND SHOWCASE PANEL
   ══════════════════════════════════════════════════════════════════════════ */
.vr-modal-brand-col {
    background: linear-gradient(165deg, #142817 0%, #1e3a22 55%, #122415 100%);
    padding: 2.5rem 1.85rem;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .vr-modal-brand-col {
        display: flex;
    }
}

/* Decorative Background Leaf */
.vr-brand-leaf-art {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.55;
}

.vr-brand-leaf-art svg {
    width: 260px;
    height: 280px;
    transform: rotate(-10deg) scale(1.1);
}

.vr-brand-content-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Brand Badge Circle */
.vr-brand-badge-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.25),
        0 0 0 3px rgba(181, 138, 58, 0.4);
    position: relative;
}

.vr-brand-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.vr-brand-fallback-icon {
    font-size: 2.2rem;
    color: #263D25;
}

/* Typography */
.vr-brand-name {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: 0.18em;
    color: #F8F5EE;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.vr-brand-tagline {
    font-size: 0.76rem;
    color: rgba(240, 235, 220, 0.75);
    letter-spacing: 0.04em;
    margin-bottom: 1.75rem;
    max-width: 220px;
    line-height: 1.4;
}

/* Perks List */
.vr-brand-perks-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    margin-bottom: 1.75rem;
    text-align: left;
}

.vr-perk-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.55rem 0.75rem;
    backdrop-filter: blur(4px);
}

.vr-perk-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    color: #4ADE80;
}

.vr-perk-text {
    display: flex;
    flex-direction: column;
}

.vr-perk-text strong {
    font-size: 0.78rem;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.25;
}

.vr-perk-text span {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.2;
}

/* Bottom Certified Pill */
.vr-brand-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #D4AF37;
    background: rgba(181, 138, 58, 0.12);
    border: 1px solid rgba(181, 138, 58, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════════════════
   RIGHT FORM & INTERACTION PANEL
   ══════════════════════════════════════════════════════════════════════════ */
.vr-modal-form-col {
    padding: 2.25rem 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

@media (max-width: 575.98px) {
    .vr-modal-form-col {
        padding: 1.75rem 1.25rem 1.25rem;
    }
}

/* Header Area */
.vr-form-headline-wrap {
    margin-bottom: 1.15rem;
    padding-right: 2.5rem; /* prevent overlap with close button */
}

.vr-form-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #253E27;
    background: #EEF3E8;
    border: 1px solid #D6E3CB;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.45rem;
}

.vr-kicker-sparkle {
    font-size: 0.75rem;
}

.vr-form-heading {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.45rem;
    color: #1A301D;
    margin: 0 0 0.2rem;
    line-height: 1.25;
}

.vr-form-subheading {
    font-size: 0.82rem;
    color: #727E70;
    margin: 0;
    line-height: 1.4;
}

/* ── Segmented Tab Selector ── */
.vr-tab-selector {
    display: flex;
    background: #F4F1EA;
    border: 1px solid #E5E1D5;
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 1.25rem;
    gap: 4px;
}

.vr-tab-btn {
    flex: 1;
    padding: 0.55rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.84rem;
    color: #6C7869;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    line-height: 1;
}

.vr-tab-btn i {
    font-size: 1.05rem;
    transition: transform 0.2s ease;
}

.vr-tab-btn:hover {
    color: #1A301D;
}

.vr-tab-btn.active {
    background: #ffffff;
    color: #1A301D;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vr-tab-btn.active i.ri-whatsapp-line {
    color: #25D366;
}

/* ── Alerts ── */
.vr-modal-alert {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: #FDF2F2;
    border: 1px solid #F8D7DA;
    color: #B02A37;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 1rem;
    animation: vrAlertPop 0.3s ease;
}

.vr-modal-alert.show {
    display: flex !important;
}

.vr-modal-alert i {
    font-size: 1rem;
    flex-shrink: 0;
}

@keyframes vrAlertPop {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Input Fields & Labels ── */
.vr-input-block {
    margin-bottom: 1.15rem;
}

.vr-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    color: #243527;
    margin-bottom: 0.45rem;
}

.vr-label-badge {
    font-size: 0.72rem;
    font-weight: 500;
    color: #5C6A5A;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* ── Combined Phone Input Group ── */
.vr-phone-field {
    display: flex;
    align-items: center;
    border: 1.5px solid #D9D4C7;
    border-radius: 14px;
    background: #ffffff;
    transition: all 0.25s ease;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.vr-phone-field:focus-within {
    border-color: #253E27;
    box-shadow: 0 0 0 4px rgba(37, 62, 39, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vr-prefix-tag {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 0.85rem;
    background: #F9F7F2;
    border-right: 1.5px solid #EAE6DB;
    flex-shrink: 0;
    user-select: none;
}

.vr-flag-emoji {
    font-size: 1.05rem;
    line-height: 1;
}

.vr-prefix-num {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1A301D;
}

.vr-phone-control {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.75rem 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1A301D;
    background: transparent;
    letter-spacing: 0.04em;
    min-width: 0;
}

.vr-phone-control::placeholder {
    font-weight: 400;
    color: #9EA89C;
    letter-spacing: 0;
}

.vr-field-trailing-icon {
    padding: 0.75rem 0.95rem;
    color: #25D366;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Field Hint */
.vr-input-note {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    color: #727E70;
    margin-top: 0.45rem;
}

.vr-input-note i {
    font-size: 0.85rem;
    color: #253E27;
}

/* ── Standard Input (Password form) ── */
.vr-standard-field {
    display: flex;
    align-items: center;
    position: relative;
    border: 1.5px solid #D9D4C7;
    border-radius: 14px;
    background: #ffffff;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.vr-standard-field:focus-within {
    border-color: #253E27;
    box-shadow: 0 0 0 4px rgba(37, 62, 39, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vr-field-leading-icon {
    position: absolute;
    left: 0.9rem;
    font-size: 1.1rem;
    color: #8C9989;
    pointer-events: none;
}

.vr-standard-control {
    width: 100%;
    border: none;
    outline: none;
    padding: 0.78rem 2.75rem 0.78rem 2.65rem;
    font-size: 0.92rem;
    color: #1A301D;
    background: transparent;
    border-radius: 14px;
}

.vr-standard-control::placeholder {
    color: #9EA89C;
}

.vr-toggle-eye-btn {
    position: absolute;
    right: 0.5rem;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #7A8777;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1.15rem;
    transition: color 0.2s, background 0.2s;
}

.vr-toggle-eye-btn:hover {
    color: #1A301D;
    background: #EEF3E8;
}

/* ── Checkbox & Forgot Password Row ── */
.vr-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.15rem;
}

.vr-checkbox-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.vr-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #253E27;
    border-radius: 4px;
    cursor: pointer;
    margin: 0;
}

.vr-checkbox-text {
    font-size: 0.82rem;
    font-weight: 500;
    color: #4C594A;
}

.vr-forgot-pass-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #B58A3A;
    text-decoration: none;
    transition: color 0.2s;
}

.vr-forgot-pass-link:hover {
    color: #1A301D;
    text-decoration: underline;
}

/* ── Primary Action Buttons ── */
.vr-modal-btn {
    width: 100%;
    padding: 0.8rem 1.25rem;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.vr-btn-primary {
    background: linear-gradient(145deg, #1A321D 0%, #254428 55%, #182E1A 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(26, 50, 29, 0.24);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.vr-btn-primary:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 8px 24px rgba(26, 50, 29, 0.32);
    color: #ffffff;
}

.vr-btn-primary:active {
    transform: translateY(0);
}

.vr-btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.vr-btn-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.vr-btn-label i {
    font-size: 1.05rem;
}

/* ── Auto-Signup Benefit Banner ── */
.vr-auto-signup-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 1.15rem;
    padding: 0.75rem 0.85rem;
    background: #F6F8F3;
    border: 1px solid #DCE6D5;
    border-radius: 12px;
}

.vr-auto-signup-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #E5EFE0;
    color: #253E27;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.vr-auto-signup-text {
    font-size: 0.77rem;
    color: #455243;
    line-height: 1.4;
}

.vr-auto-signup-text strong {
    color: #1A301D;
}

/* ── Step 2: OTP Verification Card ── */
.vr-phone-confirmed-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.95rem;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 12px;
    margin-bottom: 1.15rem;
}

.vr-confirmed-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-right: 0.65rem;
}

.vr-confirmed-info {
    flex: 1;
}

.vr-confirmed-label {
    font-size: 0.72rem;
    color: #15803D;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.vr-confirmed-phone {
    font-size: 0.88rem;
    color: #14532D;
    font-weight: 700;
    line-height: 1.2;
}

.vr-change-phone-link {
    background: transparent;
    border: none;
    color: #15803D;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.vr-change-phone-link:hover {
    background: rgba(37, 211, 102, 0.15);
}

/* OTP Digits Input Box */
.vr-otp-code-box {
    margin: 0.35rem 0;
}

.vr-otp-input-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #253E27;
    border-radius: 14px;
    background: #FAF9F5;
    font-size: 1.6rem;
    font-weight: 800;
    color: #1A301D;
    text-align: center;
    letter-spacing: 0.45em;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 62, 39, 0.08);
    transition: all 0.25s ease;
}

.vr-otp-input-control:focus {
    border-color: #162C18;
    background: #ffffff;
    box-shadow: 0 0 0 5px rgba(37, 62, 39, 0.14);
}

.vr-otp-input-control::placeholder {
    color: #CBD3C8;
    letter-spacing: 0.45em;
}

/* Resend Row */
.vr-resend-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1rem;
    font-size: 0.8rem;
}

.vr-resend-prompt {
    color: #727E70;
}

.vr-resend-action {
    background: transparent;
    border: none;
    color: #253E27;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.vr-resend-action:hover {
    color: #15803D;
    text-decoration: underline;
}

.vr-resend-action:disabled {
    color: #9EA89C;
    cursor: not-allowed;
    text-decoration: none;
}

/* ── Footer CTA ── */
.vr-modal-footer-cta {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid #ECE8DD;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: #727E70;
}

.vr-modal-footer-cta a {
    color: #253E27;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    transition: gap 0.2s, color 0.2s;
}

.vr-modal-footer-cta a:hover {
    color: #15803D;
    gap: 0.4rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE ALIGNMENT & SCREEN RESPONSIVENESS (< 768px)
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    #vrLoginModal .modal-dialog {
        margin: 0.75rem auto !important;
        width: calc(100% - 1.25rem) !important;
        max-width: 440px !important;
    }

    .vr-login-dialog {
        border-radius: 20px !important;
    }

    .vr-modal-body-split {
        min-height: auto !important;
    }

    .vr-modal-form-col {
        padding: 1.4rem 1.15rem 1.15rem !important;
    }

    .vr-modal-close-btn {
        top: 10px !important;
        right: 10px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 1.1rem !important;
    }

    .vr-form-headline-wrap {
        padding-right: 2rem !important;
        margin-bottom: 0.85rem !important;
    }

    .vr-form-heading {
        font-size: 1.25rem !important;
    }

    .vr-login-heading {
        font-size: 0.82rem !important;
    }

    .vr-phone-prefix-pill {
        padding: 0 0.55rem !important;
        font-size: 0.85rem !important;
    }

    .vr-phone-input-control {
        font-size: 0.95rem !important;
        padding: 0.65rem 0.75rem !important;
    }

    .vr-otp-input-control {
        font-size: 1.35rem !important;
        letter-spacing: 0.25em !important;
        padding: 0.75rem 0.5rem !important;
    }

    .vr-login-submit-btn {
        padding: 0.8rem 1rem !important;
        font-size: 0.92rem !important;
    }
}

