/* ============================================================
   ZovoPay — Luxury Auth Pages v1.0
   Three themes: User (Blue) · Agent (Green) · Merchant (Sky)
   ============================================================ */

/* ── Reset auth wrapper ── */
body { margin: 0; padding: 0; }
section.account,
.account-area { all: unset; display: block; }
.bg-bubbles { display: none !important; }

/* ── Full-screen split layout ── */
.lx-auth {
    display: flex;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    overflow: hidden;
    position: relative;
}

/* ── LEFT PANEL (branded) ── */
.lx-left {
    flex: 0 0 52%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 60px 48px;
    z-index: 1;
}

/* Animated gradient background */
.lx-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: 300% 300%;
    animation: lxGrad 12s ease infinite;
    z-index: 0;
}
@keyframes lxGrad {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glowing orb decorations */
.lx-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: lxFloat 8s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}
.lx-orb-1 { width: 320px; height: 320px; top: -80px;  left: -80px; animation-delay: 0s; }
.lx-orb-2 { width: 240px; height: 240px; bottom: 40px; right: -60px; animation-delay: -4s; }
.lx-orb-3 { width: 180px; height: 180px; top: 45%;    right: 15%;   animation-delay: -2s; }

@keyframes lxFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-20px) scale(1.05); }
}

/* Grid pattern overlay */
.lx-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

/* Left content */
.lx-left-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 440px;
}

.lx-logo {
    display: inline-block;
    margin-bottom: 40px;
}
.lx-logo img {
    height: 52px;
    width: auto;
    filter: brightness(0) invert(1);
    drop-shadow: 0 4px 20px rgba(0,0,0,.4);
}

.lx-tagline {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.lx-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.75);
    line-height: 1.65;
    margin: 0 0 48px;
}

/* Feature pills */
.lx-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}
.lx-feat {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.9);
    font-size: .92rem;
    font-weight: 500;
}
.lx-feat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.2);
}

/* ── RIGHT PANEL (form) ── */
.lx-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: #f0f4f9;
    position: relative;
    z-index: 1;
}

/* Subtle right background pattern */
.lx-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(59,111,212,.07) 0%, transparent 50%),
                      radial-gradient(circle at 20% 80%, rgba(59,111,212,.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Form card */
.lx-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 80px rgba(0,0,0,.1), 0 4px 20px rgba(0,0,0,.06);
    padding: 52px 48px;
    width: 100%;
    max-width: 440px;
    animation: lxCardIn .6s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes lxCardIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lx-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.lx-card-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -.02em;
}

.lx-card-sub {
    font-size: .9rem;
    color: #64748b;
    margin: 0 0 32px;
    line-height: 1.6;
}

/* Form overrides */
.lx-card .form-group { margin-bottom: 20px; }
.lx-card label {
    font-size: .82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.lx-card .form--control,
.lx-card .form-control {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: .95rem !important;
    color: #1e293b !important;
    background: #f8fafc !important;
    transition: border-color .2s, box-shadow .2s;
    height: auto !important;
}
.lx-card .form--control:focus,
.lx-card .form-control:focus {
    border-color: var(--lx-accent) !important;
    box-shadow: 0 0 0 3px rgba(var(--lx-accent-rgb), .15) !important;
    background: #fff !important;
    outline: none !important;
}

/* nice-select overrides inside card */
.lx-card .nice-select {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    height: auto !important;
    line-height: 44px !important;
    padding: 0 40px 0 16px !important;
    color: #1e293b !important;
    background: #f8fafc !important;
    width: 100%;
    font-size: .95rem !important;
}
.lx-card .nice-select::after {
    border-color: #64748b !important;
    right: 16px !important;
}
.lx-card .nice-select .list {
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,.12) !important;
    border: 1.5px solid #e2e8f0 !important;
    overflow: hidden;
}
.lx-card .nice-select .option {
    color: #1e293b !important;
    font-size: .92rem !important;
    padding: 10px 16px !important;
}
.lx-card .nice-select .option:hover,
.lx-card .nice-select .option.selected {
    background: var(--lx-accent) !important;
    color: #fff !important;
}

/* input-group overrides */
.lx-card .input-group {
    border-radius: 12px !important;
    overflow: hidden;
}
.lx-card .input-group .input-group-text,
.lx-card .input-group-text {
    border: 1.5px solid #e2e8f0 !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: .85rem !important;
    font-weight: 600 !important;
    border-right: none !important;
}
.lx-card .input-group .form--control {
    border-left: none !important;
    border-radius: 0 12px 12px 0 !important;
}

/* password toggle */
.lx-card #show_hide_password { position: relative; }
.lx-card .show-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 5;
    font-size: 1rem;
}

/* Forgot link */
.lx-card .forgot-item { text-align: right; }
.lx-card .forgot-item a {
    font-size: .83rem;
    font-weight: 600;
    color: var(--lx-accent);
    text-decoration: none;
}
.lx-card .forgot-item a:hover { text-decoration: underline; }

/* Submit button */
.lx-card .btn--base {
    border-radius: 12px !important;
    padding: 14px 24px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: .02em;
    background: linear-gradient(135deg, var(--lx-btn1), var(--lx-btn2)) !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(var(--lx-accent-rgb), .35) !important;
    transition: transform .25s cubic-bezier(0.34,1.56,0.64,1), box-shadow .25s !important;
    position: relative;
    overflow: hidden;
}
.lx-card .btn--base::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
    pointer-events: none;
}
.lx-card .btn--base:hover {
    transform: translateY(-3px) scale(1.01) !important;
    box-shadow: 0 8px 30px rgba(var(--lx-accent-rgb), .45) !important;
}

/* OR divider */
.lx-card .or-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    width: 100%;
}
.lx-card .or-line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.lx-card .or-title {
    font-size: .8rem;
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
}

/* Register link */
.lx-card .account-item label { font-size: .88rem; color: #64748b; }
.lx-card .account-control-btn {
    color: var(--lx-accent) !important;
    font-weight: 700;
    text-decoration: none;
}
.lx-card .account-control-btn:hover { text-decoration: underline; }

/* Error text */
.lx-card .text-danger { font-size: .8rem; }
.lx-card .text--base { color: var(--lx-accent) !important; }

/* ── USER THEME (Royal Blue) ── */
.lx-user {
    --lx-accent: #3b6fd4;
    --lx-accent-rgb: 59, 111, 212;
    --lx-btn1: #2d5299;
    --lx-btn2: #3b6fd4;
}
.lx-user .lx-left::before {
    background: linear-gradient(135deg, #061228, #0d1b3e, #1b2e5f, #2d5299, #3b6fd4);
}
.lx-user .lx-orb-1 { background: #1e3a8a; }
.lx-user .lx-orb-2 { background: #2563eb; }
.lx-user .lx-orb-3 { background: #3b82f6; }
.lx-user .lx-card-badge { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.lx-user .lx-right::before {
    background-image: radial-gradient(circle at 80% 20%, rgba(59,111,212,.08) 0%, transparent 50%),
                      radial-gradient(circle at 20% 80%, rgba(29,78,216,.06) 0%, transparent 50%);
}

/* ── AGENT THEME (Royal Green) ── */
.lx-agent {
    --lx-accent: #16a34a;
    --lx-accent-rgb: 22, 163, 74;
    --lx-btn1: #166534;
    --lx-btn2: #16a34a;
}
.lx-agent .lx-left::before {
    background: linear-gradient(135deg, #030a05, #071510, #0B2D1A, #166534, #16a34a);
}
.lx-agent .lx-orb-1 { background: #14532d; }
.lx-agent .lx-orb-2 { background: #15803d; }
.lx-agent .lx-orb-3 { background: #22c55e; }
.lx-agent .lx-card-badge { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.lx-agent .lx-right::before {
    background-image: radial-gradient(circle at 80% 20%, rgba(22,163,74,.08) 0%, transparent 50%),
                      radial-gradient(circle at 20% 80%, rgba(21,128,61,.06) 0%, transparent 50%);
}

/* ── MERCHANT THEME (Sky Blue) ── */
.lx-merchant {
    --lx-accent: #9333ea;
    --lx-accent-rgb: 2, 132, 199;
    --lx-btn1: #6b21a8;
    --lx-btn2: #9333ea;
}
.lx-merchant .lx-left::before {
    background: linear-gradient(135deg, #0d0118, #1a0533, #2d0e5e, #6b21a8, #9333ea);
}
.lx-merchant .lx-orb-1 { background: #3d0d6b; }
.lx-merchant .lx-orb-2 { background: #6b21a8; }
.lx-merchant .lx-orb-3 { background: #c084fc; }
.lx-merchant .lx-card-badge { background: #f5f0ff; color: #6b21a8; border: 1px solid #ddb6ff; }
.lx-merchant .lx-right::before {
    background-image: radial-gradient(circle at 80% 20%, rgba(2,132,199,.08) 0%, transparent 50%),
                      radial-gradient(circle at 20% 80%, rgba(107,33,168,.06) 0%, transparent 50%);
}

/* Terms checkbox */
.lx-card .custom-check-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.lx-card .custom-check-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: var(--lx-accent);
    margin-top: 2px;
    cursor: pointer;
    border-radius: 4px;
}
.lx-card .custom-check-group label {
    font-size: .83rem !important;
    font-weight: 400 !important;
    color: #64748b !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
    line-height: 1.5;
}
.lx-card .custom-check-group label a {
    color: var(--lx-accent) !important;
    font-weight: 600;
    text-decoration: none;
}
.lx-card .custom-check-group label a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .lx-auth { flex-direction: column; }
    .lx-left {
        flex: none;
        min-height: 220px;
        padding: 40px 24px 32px;
    }
    .lx-tagline { font-size: 1.6rem; }
    .lx-features { display: none; }
    .lx-sub { display: none; }
    .lx-right { padding: 32px 16px 48px; }
    .lx-card { padding: 36px 28px; }
}
@media (max-width: 480px) {
    .lx-card { padding: 28px 20px; border-radius: 18px; }
    .lx-card-title { font-size: 1.4rem; }
}

/* ============================================================
   Phone Picker v3 — Custom flag + code selector (fixed positioning)
   ============================================================ */

/* Phone field wrapper */
.zp-phone-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    transition: border-color .2s, box-shadow .2s;
    position: relative;
    overflow: visible !important;
}
.zp-phone-wrap:focus-within {
    border-color: var(--lx-accent) !important;
    box-shadow: 0 0 0 3px rgba(var(--lx-accent-rgb), .12) !important;
    background: #fff !important;
}

/* Code trigger button */
.zp-code-btn {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 12px 0 12px !important;
    background: transparent !important;
    border: none !important;
    border-right: 1.5px solid #e2e8f0 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    min-width: 88px !important;
    height: 48px !important;
    border-radius: 10px 0 0 10px !important;
    transition: background .15s !important;
    outline: none !important;
    box-shadow: none !important;
}
.zp-code-btn:hover { background: rgba(0,0,0,.04) !important; }

/* Flag icon sizing */
.zp-phone-flag.fi,
.zp-code-item-flag.fi {
    width: 20px !important;
    height: 15px !important;
    border-radius: 2px !important;
    flex-shrink: 0 !important;
    background-size: cover !important;
}

/* Dial code text */
.zp-code-dial {
    font-size: .87rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    letter-spacing: .01em !important;
    font-family: 'Inter','Segoe UI',sans-serif !important;
}

/* Phone number input */
.zp-phone-num {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    padding: 12px 14px !important;
    font-size: .95rem !important;
    color: #1e293b !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 10px 10px 0 !important;
    min-width: 0 !important;
    -moz-appearance: textfield !important;
}
.zp-phone-num::-webkit-outer-spin-button,
.zp-phone-num::-webkit-inner-spin-button { -webkit-appearance: none !important; margin: 0 !important; }
.zp-phone-num::placeholder { color: #94a3b8 !important; font-weight: 400 !important; }

/* ── Country picker panel — position:fixed (body-appended) ── */
#zp-code-panel {
    position: fixed !important;
    z-index: 999999 !important;
    background: #fff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 48px rgba(0,0,0,.18) !important;
    overflow: hidden !important;
    width: 280px !important;
    max-width: calc(100vw - 32px) !important;
}

/* Search row */
.zp-code-search-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: #fff !important;
}
.zp-code-search {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    font-size: .88rem !important;
    color: #1e293b !important;
    background: transparent !important;
    font-family: inherit !important;
}
.zp-code-search::placeholder { color: #94a3b8 !important; }

/* List */
.zp-code-list {
    max-height: 240px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    background: #fff !important;
}
.zp-code-list::-webkit-scrollbar { width: 4px; }
.zp-code-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

.zp-code-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 14px !important;
    cursor: pointer !important;
    transition: background .12s !important;
    font-size: .87rem !important;
}
.zp-code-item:hover { background: #f1f5f9 !important; }
.zp-code-item-name {
    flex: 1 !important;
    color: #1e293b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: .87rem !important;
}
.zp-code-item-dial {
    color: var(--lx-accent, #3b6fd4) !important;
    font-weight: 700 !important;
    font-size: .82rem !important;
    flex-shrink: 0 !important;
    font-family: monospace !important;
}

/* ── Email field ── */
.zp-email-wrap {
    display: flex !important;
    align-items: center !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    transition: border-color .2s, box-shadow .2s !important;
    overflow: hidden !important;
}
.zp-email-wrap:focus-within {
    border-color: var(--lx-accent) !important;
    box-shadow: 0 0 0 3px rgba(var(--lx-accent-rgb), .12) !important;
    background: #fff !important;
}
.zp-email-icon {
    padding: 0 14px !important;
    border-right: 1.5px solid #e2e8f0 !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}
.zp-email-inp {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    padding: 12px 14px !important;
    font-size: .95rem !important;
    color: #1e293b !important;
    outline: none !important;
    box-shadow: none !important;
}
.zp-email-inp::placeholder { color: #94a3b8 !important; }
