/* ==========================================================================
   VASbay sign-in / sign-up screens (login_vasbay.php, login_guest.php and the
   signin / signup / forgetpassword fragments loaded into #loadcontentDiv)
   ========================================================================== */

html, body { height: 100%; }

/* ---------- Split layout (login_vasbay.php) ---------- */
body.vb-auth-body {
    margin: 0;
    background: var(--vb-canvas, #f4f6fa);
}
.vb-auth {
    min-height: 100vh;
    display: flex;
}
.vb-auth__brand {
    flex: 1 1 52%;
    position: relative;
    overflow: hidden;
    color: #e2e8f0;
    background:
        radial-gradient(1200px 600px at -10% 110%, rgba(35, 198, 223, .35), transparent 60%),
        radial-gradient(900px 500px at 110% -10%, rgba(26, 179, 148, .30), transparent 55%),
        linear-gradient(160deg, #0b1220 0%, #0f1f33 55%, #0c3b4a 100%);
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
}
.vb-auth__brand::after {           /* subtle grid texture */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 85%);
    pointer-events: none;
}
.vb-auth__brand > * { position: relative; z-index: 1; }
.vb-auth__logo img { height: 72px; width: auto; margin-left: -8px; }
.vb-auth__pitch { margin-top: auto; margin-bottom: auto; max-width: 520px; padding: 48px 0; }
.vb-auth__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #5eead4;
    background: rgba(94, 234, 212, .08);
    border: 1px solid rgba(94, 234, 212, .25);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 22px;
}
.vb-auth__title {
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -.025em;
    color: #ffffff;
    margin: 0 0 16px;
}
.vb-auth__lead {
    font-size: 16px;
    line-height: 1.65;
    color: #94a3b8;
    margin: 0 0 36px;
}
.vb-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.vb-features li { display: flex; gap: 14px; align-items: flex-start; }
.vb-features__icon {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    color: #5eead4;
    font-size: 16px;
}
.vb-features strong { display: block; color: #f1f5f9; font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.vb-features span { color: #94a3b8; font-size: 13.5px; line-height: 1.55; }
.vb-auth__foot { font-size: 12.5px; color: #64748b; }

.vb-auth__panel {
    flex: 1 1 48%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: var(--vb-canvas, #f4f6fa);
}
.vb-auth__card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 40px rgba(15, 23, 42, .08);
    padding: 40px 36px 32px;
}
.vb-auth__secure {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 18px;
    font-size: 12.5px;
    color: #64748b;
}
.vb-auth__secure .fa { color: #16a34a; }

/* ---------- Form fragments (signin.php, signup.php, forgetpassword.php) ---------- */
#loadcontentDiv h2,
#loadcontentDiv #title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.02em;
    margin: 0 0 4px;
}
#loadcontentDiv .vb-subtitle { color: #64748b; font-size: 14px; margin: 0 0 24px; }
#loadcontentDiv form.m-t { margin-top: 8px; }
#loadcontentDiv .form-group { margin-bottom: 16px; }
#loadcontentDiv .form-control {
    height: 44px;
    padding: 10px 14px;
    font-size: 14.5px;
    border-radius: 10px !important;
    border: 1px solid #d5dce6;
    background: #ffffff;
}
#loadcontentDiv .form-control:focus {
    border-color: var(--vb-primary, #1ab394);
    box-shadow: 0 0 0 3px var(--vb-primary-soft, rgba(26, 179, 148, .15));
}
#loadcontentDiv .btn-primary,
#loadcontentDiv .form-control.btn-primary {
    background: var(--vb-primary, #1ab394);
    border-color: var(--vb-primary, #1ab394);
    color: #ffffff;
}
#loadcontentDiv .btn-primary:hover,
#loadcontentDiv .form-control.btn-primary:hover {
    background: var(--vb-primary-dark, #148f76);
    border-color: var(--vb-primary-dark, #148f76);
}
#loadcontentDiv .btn {
    display: flex;
    align-items: center;
    justify-content: center;
}
#loadcontentDiv a:not(.btn) { color: var(--vb-primary-dark, #148f76); }
#loadcontentDiv .btn-primary {
    height: 44px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .01em;
}
#loadcontentDiv .btn-white,
#loadcontentDiv .btn-sm.btn-primary.btn-block {
    height: 40px;
    border-radius: 10px;
    font-weight: 500;
}
#loadcontentDiv .checkbox label { font-weight: 500; color: #475569; }
#loadcontentDiv #html_element { display: flex; justify-content: center; }
#loadcontentDiv #html_element:empty { display: none; }
#loadcontentDiv .alert { border-radius: 10px; }
#loadcontentDiv a small { font-size: 13px; font-weight: 500; }

/* ---------- Reseller login (login_guest.php) ---------- */
.loginscreen.middle-box {
    max-width: 420px;
    width: 100%;
    padding-top: 60px;
}
.loginscreen #loadcontentDiv {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .18);
    padding: 32px 30px 26px;
    margin-top: 22px;
    text-align: left;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .vb-auth { flex-direction: column; }
    .vb-auth__brand { padding: 32px 24px; flex: none; }
    .vb-auth__pitch { padding: 24px 0 8px; }
    .vb-auth__title { font-size: 28px; }
    .vb-auth__lead { margin-bottom: 20px; }
    .vb-features { display: none; }
    .vb-auth__foot { display: none; }
    .vb-auth__panel { padding: 24px 16px 48px; }
    .vb-auth__card { padding: 28px 22px 24px; }
    /* the site header above already shows the brand: no second, oversized logo on phones / tablets */
    .vb-auth__logo { display: none; }
    .vb-auth__brand { padding: 22px 20px 6px; }
    .vb-auth__pitch { padding: 0 0 6px; }
    .vb-auth__eyebrow { font-size: 11px; padding: 4px 10px; }
    .vb-auth__lead { font-size: 15px; margin-bottom: 14px; }
}
@media (max-width: 480px) {
    .vb-auth__title { font-size: 24px; }
    .vb-auth__lead { font-size: 14px; }
}

/* desktop logo: never wider than the column, whatever was uploaded */
.vb-auth__logo img { max-width: min(240px, 100%); object-fit: contain; }

/* reCAPTCHA (Enterprise / v3) floats a badge over the bottom-right corner, covering "Forgot password?":
   hidden, with the reCAPTCHA notice under the form instead (allowed by Google's terms) */
.grecaptcha-badge { visibility: hidden !important; }
.vb-recaptcha-note { margin: 14px 0 0; font-size: 11.5px; line-height: 1.5; color: #94a3b8; text-align: center; }
.vb-recaptcha-note a { color: inherit; text-decoration: underline; }

/* ==========================================================================
   VASbay login v3 (body.vb-auth-body only; the white-label guest login
   uses .vbg and is not affected)
   ========================================================================== */
.vb-auth-body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* ---------- brand panel: deep navy with soft aurora ---------- */
.vb-auth-body .vb-auth__brand {
    background:
        radial-gradient(520px 420px at 85% 55%, rgba(139, 92, 246, .28), transparent 65%),
        radial-gradient(620px 460px at 15% 95%, rgba(20, 184, 166, .30), transparent 65%),
        radial-gradient(500px 380px at 90% 0%, rgba(56, 189, 248, .18), transparent 60%),
        linear-gradient(160deg, #070b1a 0%, #0b1330 55%, #0a1a33 100%);
}
.vb-auth-body .vb-auth__brand::after {      /* dotted texture instead of the grid */
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 22px 22px;
}
.vb-auth-body .vb-auth__pitch { max-width: 540px; padding: 28px 0; }
.vb-auth-body .vb-auth__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: #a5f3fc; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14);
    letter-spacing: .14em;
}
.vb-pulse { width: 7px; height: 7px; border-radius: 50%; background: #34d399; animation: vb-pulse 2s infinite; }
@keyframes vb-pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); }
    70%, 100% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
}
.vb-auth-body .vb-auth__title { font-size: 46px; line-height: 1.08; letter-spacing: -.035em; margin-bottom: 14px; }
.vb-grad {
    background: linear-gradient(90deg, #5eead4 0%, #38bdf8 50%, #a78bfa 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vb-auth-body .vb-auth__lead { font-size: 15.5px; color: #a3b1c6; max-width: 460px; margin-bottom: 8px; }

/* ---------- product scene ---------- */
.vb-scene { position: relative; height: 380px; max-width: 520px; margin: 18px 0 22px; }
.vb-phone {
    position: absolute; left: 70px; top: 0;
    width: 232px; height: 380px;
    border-radius: 36px; padding: 10px;
    background: linear-gradient(160deg, #1e293b, #0b1220);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .10), 0 30px 70px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 255, 255, .04);
}
.vb-phone::before {                          /* screen */
    content: ""; position: absolute; inset: 10px; border-radius: 27px;
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
}
.vb-phone > * { position: relative; }
.vb-phone__notch { width: 84px; height: 20px; margin: 0 auto; border-radius: 0 0 14px 14px; background: #0b1220; }
.vb-phone__head {
    display: flex; align-items: center; gap: 9px;
    padding: 10px 12px 10px; border-bottom: 1px solid #e2e8f0;
}
.vb-phone__head b { display: block; font-size: 12.5px; color: #0f172a; letter-spacing: .04em; }
.vb-phone__head small { display: block; font-size: 10.5px; color: #64748b; }
.vb-phone__avatar {
    width: 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: #ffffff;
    background: linear-gradient(135deg, #14b8a6, #6366f1);
}
.vb-phone__msgs { padding: 12px 12px 0; display: flex; flex-direction: column; gap: 8px; }
.vb-bubble, .vb-typing {
    margin: 0; max-width: 88%;
    padding: 8px 11px; border-radius: 14px 14px 14px 4px;
    background: #ffffff; color: #1e293b;
    font-size: 11.5px; line-height: 1.45;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
    opacity: 0; transform: translateY(8px);
    animation: vb-in .5s ease-out var(--d, 0s) forwards;
}
.vb-bubble b { color: #0f8f75; letter-spacing: .05em; }
.vb-typing { display: inline-flex; gap: 4px; width: auto; align-self: flex-start; padding: 10px 12px; }
.vb-typing i { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; animation: vb-blink 1.2s infinite; }
.vb-typing i:nth-child(2) { animation-delay: .2s; }
.vb-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes vb-in { to { opacity: 1; transform: none; } }
@keyframes vb-blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.vb-float {
    position: absolute;
    padding: 12px 14px; border-radius: 14px;
    color: #e2e8f0; font-size: 12.5px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    animation: vb-bob 6s ease-in-out infinite;
}
.vb-float b { color: #ffffff; font-weight: 600; font-size: 12.5px; }
.vb-float__icon {
    flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #ffffff; font-size: 13px;
    background: linear-gradient(135deg, #14b8a6, #0ea5e9);
}
.vb-float__icon--violet { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.vb-float__row { display: flex; align-items: center; gap: 10px; }
@keyframes vb-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.vb-float--voice { right: 0; top: 34px; display: flex; align-items: center; gap: 11px; animation-delay: -1.5s; }
.vb-float--voice b { display: block; margin-bottom: 5px; }
.vb-wave { display: flex; align-items: center; gap: 3px; height: 18px; }
.vb-wave i { width: 3px; height: 100%; border-radius: 2px; background: linear-gradient(180deg, #f0abfc, #a78bfa); animation: vb-wave 1s ease-in-out infinite; transform-origin: center; }
.vb-wave i:nth-child(2n) { animation-delay: -.3s; }
.vb-wave i:nth-child(3n) { animation-delay: -.6s; }
.vb-wave i:nth-child(4n) { animation-delay: -.15s; }
@keyframes vb-wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

.vb-float--dlr { right: 10px; top: 168px; width: 200px; animation-delay: -3s; }
.vb-bar { height: 7px; margin: 12px 0 9px; border-radius: 999px; background: rgba(251, 191, 36, .35); overflow: hidden; }
.vb-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #14b8a6, #34d399); animation: vb-fill 2.4s .6s ease-out forwards; }
@keyframes vb-fill { to { width: 92%; } }
.vb-float__legend { display: flex; gap: 14px; font-size: 11px; color: #a3b1c6; }
.vb-float__legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
.vb-float__legend .ok { background: #34d399; }
.vb-float__legend .wait { background: #fbbf24; }

.vb-float--api { left: 0; bottom: 34px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; animation-delay: -4.5s; background: rgba(11, 19, 48, .92); }
.vb-float--api code { background: none; padding: 0; color: #cbd5e1; font: 11.5px ui-monospace, Menlo, Consolas, monospace; }
.vb-float--api em { font-style: normal; font-weight: 700; color: #f472b6; margin-right: 4px; }
.vb-ok { font: 700 11px ui-monospace, Menlo, Consolas, monospace; color: #052e1f; background: #34d399; padding: 3px 7px; border-radius: 6px; }

.vb-channels { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vb-channels li {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12.5px; font-weight: 500; color: #cbd5e1;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10);
}
.vb-channels .fa { color: #5eead4; }

/* ---------- form side ---------- */
.vb-auth-body .vb-auth__panel {
    background:
        radial-gradient(500px 300px at 100% 0%, rgba(139, 92, 246, .07), transparent 70%),
        radial-gradient(500px 300px at 0% 100%, rgba(20, 184, 166, .08), transparent 70%),
        #f7f8fc;
}
.vb-auth-body .vb-auth__card {
    border: 1px solid #e7eaf3;
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 30px 70px -28px rgba(30, 41, 99, .28);
    padding: 38px 36px 30px;
    position: relative; overflow: hidden;
}
.vb-auth-body .vb-auth__card::before {        /* brand gradient hairline */
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
    background: linear-gradient(90deg, #14b8a6, #38bdf8, #8b5cf6);
}
.vb-auth-body .vb-auth-view h2 { font-size: 26px; font-weight: 700; letter-spacing: -.025em; color: #0b1330; margin: 0 0 6px; }
.vb-auth-body .vb-subtitle { color: #64748b; font-size: 14.5px; margin: 0 0 24px; }
.vb-auth-body .vb-auth__card .form-group { margin-bottom: 14px; }
.vb-auth-body .vb-auth__card .form-control:not(.btn) {
    height: 48px; padding: 10px 15px; font-size: 14.5px; color: #0f172a;
    border-radius: 12px; border: 1px solid #dde2ec; background: #f9fafc;
    box-shadow: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.vb-auth-body .vb-auth__card .form-control:not(.btn)::placeholder { color: #94a3b8; }
.vb-auth-body .vb-auth__card .form-control:not(.btn):focus {
    background: #ffffff; border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .14);
}
.vb-auth-body .vb-auth__card .btn-primary {
    height: 48px; border-radius: 12px; border: 0;
    font-weight: 600; font-size: 15px; letter-spacing: .01em; color: #ffffff;
    background: linear-gradient(90deg, #0d9488 0%, #0284c7 55%, #6366f1 100%);
    background-size: 160% 100%; background-position: 0 0;
    box-shadow: 0 12px 24px -12px rgba(2, 132, 199, .7);
    display: flex; align-items: center; justify-content: center;
    transition: background-position .4s, transform .15s, box-shadow .15s;
}
.vb-auth-body .vb-auth__card .btn-primary:hover,
.vb-auth-body .vb-auth__card .btn-primary:focus {
    color: #ffffff; background-position: 100% 0;
    transform: translateY(-1px); box-shadow: 0 16px 28px -12px rgba(99, 102, 241, .7);
}
.vb-auth-body .vb-auth__card .btn-white {
    height: 44px; border-radius: 12px; font-weight: 600; color: #0f172a;
    border: 1px solid #dde2ec; background: #ffffff;
    display: flex; align-items: center; justify-content: center;
    transition: border-color .15s, color .15s;
}
.vb-auth-body .vb-auth__card .btn-white:hover { border-color: #6366f1; color: #4f46e5; }
.vb-auth-body .vb-auth__card a:not(.btn) { color: #4f46e5; font-weight: 500; }
.vb-auth-body .vb-auth__card .checkbox label { color: #475569; font-weight: 500; }
.vb-auth-body .vb-auth__card .alert { border-radius: 12px; }

.vb-auth__trust {
    list-style: none; padding: 0; margin: 20px 0 0;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
    font-size: 12.5px; color: #64748b;
}
.vb-auth__trust .fa { color: #14b8a6; margin-right: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .vb-phone { left: 40px; }
    .vb-float--dlr { right: 0; }
}
@media (max-width: 991px) {
    .vb-scene { display: none; }
    .vb-auth-body .vb-auth__title { font-size: 30px; }
    .vb-auth-body .vb-auth__lead { margin-bottom: 14px; }
    .vb-channels li { font-size: 12px; padding: 5px 10px; }
    .vb-auth-body .vb-auth__brand { padding-bottom: 20px; }
    .vb-auth-body .vb-auth__card { padding: 30px 22px 24px; }
}
@media (max-width: 480px) {
    .vb-auth-body .vb-auth__title { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    .vb-pulse, .vb-float, .vb-wave i, .vb-typing i { animation: none; }
    .vb-bubble, .vb-typing { animation: none; opacity: 1; transform: none; }
    .vb-bar span { animation: none; width: 92%; }
}
