/* ================================================
   BEINGSHIPS AUTH — v6  (login / register / forget)
   two-column: left = logistics info panel, right = form
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;0,14..32,900;1,14..32,400&display=swap');

/* ── tokens ── */
:root {
    --p:        #4f46e5;        /* primary indigo    */
    --pd:       #3730a3;        /* primary dark      */
    --p2:       #06b6d4;        /* accent cyan       */
    --pl:       rgba(79,70,229,.08);
    --success:  #16a34a;
    --danger:   #dc2626;
    --warning:  #d97706;
    --text:     #0f172a;
    --sub:      #64748b;
    --border:   #e2e8f0;
    --bg:       #f8fafc;
    --card:     #ffffff;
    --r:        18px;
    --rs:       12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* ════════════════════════════════════════
   LAYOUT
════════════════════════════════════════ */
.ba-wrap { display: flex; min-height: 100vh; }

/* ════════════════════════════════════════
   LEFT PANEL — logistics info
════════════════════════════════════════ */
.ba-left {
    flex: 0 0 46%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    background:
        radial-gradient(ellipse 75% 60% at 15% 0%,  rgba(255,255,255,.12) 0%, transparent 55%),
        radial-gradient(ellipse 60% 55% at 90% 90%, rgba(6,182,212,.35)   0%, transparent 55%),
        linear-gradient(160deg, #4338ca 0%, #4f46e5 45%, #3730a3 100%);
}

/* soft grid overlay */
.ba-left::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 30% 20%, #000 0%, transparent 75%);
            mask-image: radial-gradient(ellipse 90% 70% at 30% 20%, #000 0%, transparent 75%);
    pointer-events: none;
}

.ba-left-inner {
    display: flex;
    flex-direction: column;
    padding: 40px 44px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* ── brand ── */
.ba-brand {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50px;
    padding: 6px 16px 6px 6px;
    backdrop-filter: blur(12px);
    align-self: flex-start;
    margin-bottom: 44px;
}
.ba-brand-logo {
    width: 34px; height: 34px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    padding: 4px;
    flex-shrink: 0;
    display: block;
}
.ba-brand-icon {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #fff;
    color: var(--p);
    font-size: 16px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ba-brand-name {
    font-size: 16px; font-weight: 800;
    color: #fff; letter-spacing: -.2px; white-space: nowrap;
}

/* ── art / illustration stage ── */
.ba-left-art {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 280px;
}

.ba-illus-stage {
    position: relative;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1.05 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-illus-glow {
    position: absolute;
    width: 82%; height: 82%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.28) 0%, rgba(6,182,212,.12) 45%, transparent 72%);
    filter: blur(1px);
}

.ba-illus-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px dashed rgba(255,255,255,.24);
}
.ba-illus-ring-1 { width: 96%; height: 96%; animation: ba-spin-slow 34s linear infinite; }
.ba-illus-ring-1::before,
.ba-illus-ring-1::after {
    content: '';
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px 2px rgba(255,255,255,.7);
}
.ba-illus-ring-1::before { top: -3px; left: 50%; margin-left: -3px; }
.ba-illus-ring-1::after  { bottom: 8%; right: 4%; background: #67e8f9; box-shadow: 0 0 8px 2px rgba(103,232,249,.7); }
.ba-illus-ring-2 { width: 70%; height: 70%; border-style: solid; border-color: rgba(255,255,255,.16); }
@keyframes ba-spin-slow { to { transform: rotate(360deg); } }

/* platform ellipse under the icon for a grounded, crafted feel */
.ba-illus-platform {
    position: absolute;
    bottom: 8%;
    width: 46%; height: 22px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(15,23,42,.28) 0%, transparent 72%);
    z-index: 1;
}

.ba-illus-orb {
    position: relative;
    z-index: 2;
    width: 44%; height: 44%;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(150deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,.06) 100%);
    border: 1px solid rgba(255,255,255,.35);
    box-shadow:
        inset 0 2px 12px rgba(255,255,255,.25),
        0 24px 48px -8px rgba(15,23,42,.4);
    animation: ba-float-main 4.5s ease-in-out infinite;
}

.ba-illus-main {
    font-size: 68px;
    color: #fff;
    filter: drop-shadow(0 8px 14px rgba(15,23,42,.3));
}
@keyframes ba-float-main {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-10px); }
}

.ba-orbit-badge {
    position: absolute;
    z-index: 3;
    width: 46px; height: 46px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
    box-shadow: 0 10px 24px rgba(15,23,42,.3);
    animation: ba-float-badge 3.6s ease-in-out infinite;
}
.ba-orbit-1 {
    top: 4%;  left: 2%;  animation-delay: 0s;
    background: linear-gradient(145deg, #22d3ee, #0891b2);
    border: 1px solid rgba(255,255,255,.4);
}
.ba-orbit-2 {
    top: 12%; right: 0%; animation-delay: .6s;
    background: linear-gradient(145deg, #a78bfa, #7c3aed);
    border: 1px solid rgba(255,255,255,.4);
}
.ba-orbit-3 {
    bottom: 6%; left: 10%; animation-delay: 1.2s;
    background: linear-gradient(145deg, #4ade80, #16a34a);
    border: 1px solid rgba(255,255,255,.4);
}
@keyframes ba-float-badge {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-8px); }
}

.ba-illus-chip {
    position: absolute;
    z-index: 3;
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; color: #fff;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.26);
    backdrop-filter: blur(10px);
    padding: 7px 12px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(15,23,42,.2);
}
.ba-illus-chip iconify-icon { font-size: 13px; color: #86efac; }
.ba-illus-chip-l { bottom: 16%; right: -4%; }
.ba-illus-chip-r { top: 8%; left: -6%; }

/* ── left bottom text ── */
.ba-left-text { color: rgba(255,255,255,.95); width: 100%; margin-top: 20px; }
.ba-left-text h2 {
    font-size: 22px; font-weight: 800; margin-bottom: 8px;
    color: #fff; letter-spacing: -.4px; line-height: 1.25;
}
.ba-left-text p { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.ba-features { display: flex; flex-direction: column; gap: 8px; }
.ba-feature {
    display: flex; align-items: center; gap: 10px;
    font-size: 12.5px; color: rgba(255,255,255,.85);
    padding: 9px 13px;
    background: rgba(255,255,255,0.07);
    border-radius: 10px; border: 1px solid rgba(255,255,255,0.09);
}
.ba-feature iconify-icon { font-size: 15px; color: #86efac; flex-shrink: 0; }

/* ════════════════════════════════════════
   RIGHT PANEL — form
════════════════════════════════════════ */
.ba-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 44px;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}
.ba-right::before {
    content: '';
    position: absolute;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79,70,229,.06) 0%, transparent 65%);
    top: -140px; right: -140px;
    pointer-events: none;
}
.ba-right::after {
    content: '';
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6,182,212,.05) 0%, transparent 65%);
    bottom: -100px; left: -80px;
    pointer-events: none;
}
.ba-right-scroll {
    align-items: flex-start;
    padding-top: 48px;
    overflow-y: auto;
}

.ba-form-box {
    width: 100%;
    max-width: 440px;
    background: var(--card);
    border-radius: var(--r);
    padding: 40px 42px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 24px 48px -12px rgba(15,23,42,.1);
    position: relative;
    z-index: 1;
}
.ba-form-box::before {
    content: '';
    position: absolute;
    top: 0; left: 12%; right: 12%;
    height: 3px;
    background: linear-gradient(90deg, var(--p), #7c3aed, var(--p2));
    border-radius: 0 0 6px 6px;
}

/* mobile brand (shown when left panel is hidden) */
.ba-mobile-brand {
    display: none;
    align-items: center; gap: 10px;
    margin-bottom: 26px;
    background: var(--pl);
    border: 1.5px solid rgba(79,70,229,.18);
    border-radius: 50px;
    padding: 5px 16px 5px 5px;
    align-self: flex-start;
    width: fit-content;
}
.ba-mobile-brand span { font-size: 15px; font-weight: 800; color: var(--text); }
.ba-mobile-brand .ba-brand-logo {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: var(--pl);
    padding: 3px;
}

.ba-form-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--pl);
    color: var(--p);
    border: 1px solid rgba(79,70,229,.2);
    border-radius: 50px;
    padding: 5px 13px 5px 8px;
    font-size: 11.5px; font-weight: 700;
    margin-bottom: 14px; letter-spacing: .1px;
}
.ba-form-badge iconify-icon { font-size: 13px; }

/* ════════════════════════════════════════
   TYPOGRAPHY
════════════════════════════════════════ */
.ba-title {
    font-size: 27px; font-weight: 800;
    color: var(--text); letter-spacing: -.6px;
    margin-bottom: 6px; line-height: 1.2;
}
.ba-sub {
    font-size: 13.5px; color: var(--sub);
    margin-bottom: 26px; line-height: 1.6;
}

/* ════════════════════════════════════════
   ALERTS
════════════════════════════════════════ */
.ba-alert {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px;
    border-radius: var(--rs);
    font-size: 13.5px; margin-bottom: 18px; line-height: 1.5;
}
.ba-alert iconify-icon { font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.ba-alert-danger  { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.ba-alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.ba-alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* ════════════════════════════════════════
   FORM FIELDS
════════════════════════════════════════ */
.ba-field { margin-bottom: 16px; }
.ba-label {
    display: block;
    font-size: 12px; font-weight: 700;
    color: var(--sub);
    margin-bottom: 7px;
    letter-spacing: .3px; text-transform: uppercase;
}
.ba-label-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 7px;
}
.ba-label-row .ba-label { margin-bottom: 0; }
.req { color: var(--danger); margin-left: 2px; }

.ba-input-wrap { position: relative; display: flex; align-items: center; }

.ba-input-icon {
    position: absolute; left: 14px;
    font-size: 17px; color: #94a3b8;
    pointer-events: none; transition: color .2s;
}
.ba-input-wrap:focus-within .ba-input-icon { color: var(--p); }

.ba-input {
    width: 100%; height: 48px;
    border: 1.5px solid var(--border);
    border-radius: var(--rs);
    padding: 0 44px 0 42px;
    font-size: 14.5px; color: var(--text);
    background: #f8fafc;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    font-family: inherit;
}
.ba-input:focus {
    border-color: var(--p);
    box-shadow: 0 0 0 4px var(--pl);
    background: #fff;
}
.ba-input::placeholder { color: #a3adc2; font-size: 13.5px; }
.ba-input.ba-input-err { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.ba-input.ba-input-ok  { border-color: var(--success); box-shadow: 0 0 0 3px rgba(22,163,74,.1); }

.ba-eye-btn {
    position: absolute; right: 13px;
    background: none; border: none; cursor: pointer;
    color: #94a3b8; font-size: 17px;
    display: flex; align-items: center; padding: 0;
    transition: color .2s;
}
.ba-eye-btn:hover { color: var(--p); }

.ba-otp-btn {
    position: absolute; right: 8px;
    background: var(--p); color: #fff;
    border: none; border-radius: 8px;
    padding: 7px 13px; font-size: 11.5px; font-weight: 700;
    cursor: pointer; transition: background .2s; white-space: nowrap;
    font-family: inherit;
}
.ba-otp-btn:hover { background: var(--pd); }
.ba-otp-btn:disabled { background: #cbd5e1; cursor: not-allowed; }
.ba-otp-resend { background: var(--sub); }
.ba-otp-resend:hover { background: var(--text); }

.ba-hint { font-size: 12px; margin-top: 5px; color: var(--sub); }
.ba-hint-success { color: var(--success); font-weight: 600; }
.ba-hint-error   { color: var(--danger);  font-weight: 600; }
.ba-error { font-size: 12px; color: var(--danger); margin-top: 4px; font-weight: 500; }

.ba-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ════════════════════════════════════════
   CHECKBOX
════════════════════════════════════════ */
.ba-checkbox {
    display: flex; align-items: flex-start; gap: 9px;
    font-size: 13.5px; color: var(--sub); cursor: pointer; line-height: 1.5;
}
.ba-checkbox input[type=checkbox] {
    width: 17px; height: 17px; margin-top: 2px;
    accent-color: var(--p); flex-shrink: 0; cursor: pointer;
}
.ba-check-row { margin-bottom: 18px; }

/* ════════════════════════════════════════
   LINKS
════════════════════════════════════════ */
.ba-link { color: var(--p); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.ba-link:hover { text-decoration: underline; }
.ba-link-bold { font-weight: 700; }
.ba-link-btn {
    background: none; border: none; color: var(--p);
    cursor: pointer; font-size: 13px; font-weight: 600;
    padding: 0; text-decoration: underline; font-family: inherit;
}

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.ba-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; width: 100%; height: 50px;
    background: linear-gradient(120deg, var(--p) 0%, #6d28d9 100%);
    color: #fff; border: none; border-radius: var(--rs);
    font-size: 14.5px; font-weight: 700; cursor: pointer;
    transition: transform .15s, box-shadow .2s, filter .2s;
    box-shadow: 0 8px 20px -4px rgba(79,70,229,.45);
    margin-top: 6px; text-decoration: none;
    font-family: inherit; letter-spacing: .1px;
}
.ba-btn:hover { filter: brightness(1.06); box-shadow: 0 10px 24px -4px rgba(79,70,229,.5); }
.ba-btn:active { transform: translateY(1px); }
.ba-btn:disabled { background: #cbd5e1; box-shadow: none; transform: none; cursor: not-allowed; filter: none; }

.ba-btn-ghost {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; width: 100%; height: 44px;
    background: none; color: var(--sub);
    border: 1.5px solid var(--border); border-radius: var(--rs);
    font-size: 13.5px; font-weight: 600; cursor: pointer;
    margin-top: 10px; transition: all .2s; font-family: inherit;
}
.ba-btn-ghost:hover { border-color: var(--p); color: var(--p); background: var(--pl); }

.ba-spinner {
    display: none; width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,.3);
    border-top-color: #fff; border-radius: 50%;
    animation: ba-spin .7s linear infinite;
}
@keyframes ba-spin { to { transform: rotate(360deg); } }

.ba-footer-link { text-align: center; font-size: 13.5px; color: var(--sub); margin-top: 22px; }

/* ════════════════════════════════════════
   TRUST ROW
════════════════════════════════════════ */
.ba-trust-row {
    display: flex; align-items: center; justify-content: center;
    gap: 0; padding: 12px 16px;
    background: #f8fafc; border-radius: 12px;
    border: 1px solid var(--border); margin-top: 20px;
}
.ba-trust-item {
    display: flex; align-items: center; gap: 5px;
    font-size: 11.5px; color: var(--sub); font-weight: 600;
    flex: 1; justify-content: center;
}
.ba-trust-item iconify-icon { font-size: 13px; color: var(--p); }
.ba-trust-sep { width: 1px; height: 18px; background: var(--border); flex-shrink:0; }

/* ════════════════════════════════════════
   PASSWORD STRENGTH
════════════════════════════════════════ */
.ba-pass-strength { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ba-pass-bars { display: flex; gap: 4px; flex: 1; }
.bpsb { height: 4px; flex:1; border-radius: 99px; background: var(--border); transition: background .3s; }
.ba-pass-label { font-size: 11px; font-weight: 700; white-space: nowrap; }

/* ════════════════════════════════════════
   STEP INDICATOR (forget)
════════════════════════════════════════ */
.ba-steps {
    display: flex; align-items: center; margin-bottom: 24px;
    padding: 12px 16px;
    background: #f8fafc; border-radius: 13px; border: 1px solid var(--border);
}
.ba-step {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--sub); font-weight: 600; white-space: nowrap;
}
.ba-step span {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--border); color: var(--sub);
    font-size: 11px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background .3s, color .3s, box-shadow .3s;
}
.ba-step.active span { background: var(--p); color: #fff; box-shadow: 0 2px 8px rgba(79,70,229,.4); }
.ba-step.active { color: var(--p); }
.ba-step.done span { background: var(--success); color: #fff; }
.ba-step.done { color: var(--success); }
.ba-step-line { flex:1; height: 2px; background: var(--border); margin: 0 8px; border-radius: 99px; }

/* ════════════════════════════════════════
   OTP BOXES
════════════════════════════════════════ */
.ba-otp-boxes { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }
.ba-otp-box {
    width: 50px; height: 58px;
    border: 2px solid var(--border); border-radius: 12px;
    text-align: center; font-size: 22px; font-weight: 800;
    color: var(--text); background: #f8fafc; outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    font-family: inherit;
}
.ba-otp-box:focus { border-color: var(--p); box-shadow: 0 0 0 4px var(--pl); background: #fff; }
.ba-otp-resend-row { text-align: center; margin-bottom: 16px; font-size: 13px; }

/* ════════════════════════════════════════
   PASSWORD RULES
════════════════════════════════════════ */
.ba-pass-rules {
    display: flex; flex-direction: column; gap: 7px;
    margin-bottom: 18px; padding: 13px 15px;
    background: #f8fafc; border-radius: var(--rs); border: 1px solid var(--border);
}
.ba-rule { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--sub); transition: color .2s; }
.ba-rule iconify-icon { font-size: 13px; flex-shrink: 0; }
.ba-rule.ba-rule-ok { color: var(--success); }
.ba-rule.ba-rule-ok iconify-icon { color: var(--success); }

/* ════════════════════════════════════════
   SUCCESS ICON
════════════════════════════════════════ */
.ba-success-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto; font-size: 42px; color: var(--success);
    border: 3px solid #86efac; box-shadow: 0 8px 24px rgba(22,163,74,.2);
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1060px) {
    .ba-left { flex: 0 0 42%; }
    .ba-left-inner { padding: 32px 34px; }
    .ba-illus-main { font-size: 104px; }
    .ba-form-box { padding: 36px 34px; }
}

@media (max-width: 860px) {
    .ba-left { display: none; }
    .ba-right { padding: 32px 24px; align-items: center; }
    .ba-right-scroll { align-items: flex-start; }
    .ba-mobile-brand { display: flex; }
    .ba-form-box { max-width: 500px; padding: 34px 32px; }
}

@media (max-width: 560px) {
    .ba-right { padding: 20px 14px; align-items: flex-start; }
    .ba-form-box { max-width: 100%; padding: 26px 20px; border-radius: 18px; }
    .ba-title { font-size: 23px; }
    .ba-grid-2 { grid-template-columns: 1fr; }
    .ba-otp-box { width: 42px; height: 52px; font-size: 21px; }
    .ba-otp-boxes { gap: 7px; }
    .ba-steps { padding: 11px 13px; }
    .ba-step { font-size: 11px; gap: 4px; }
    .ba-step span { width: 21px; height: 21px; font-size: 10px; }
    .ba-step-line { margin: 0 4px; }
    .ba-btn { height: 48px; }
    .ba-mobile-brand { margin-bottom: 20px; }
}

@media (max-width: 380px) {
    .ba-right { padding: 14px 10px; }
    .ba-form-box { padding: 20px 16px; border-radius: 16px; }
    .ba-title { font-size: 21px; }
    .ba-otp-box { width: 37px; height: 46px; font-size: 18px; }
    .ba-otp-boxes { gap: 5px; }
}
