/* =========================================================
   VexoPay — shared styles for the auth pages
   (login.php, register.php, forgot-password.php)
========================================================= */
:root {
  --primary: #123cff; --primary-600: #0d30d9; --primary-800: #0a1f86; --primary-soft: #e7ecff;
  --bg: #F6F1ED; --surface: #ffffff; --surface-2: #F7F5F4; --line: #E5E1DE;
  --ink: #1A1919; --ink-2: #4A4645; --muted: #93908E; --dark: #1A1919; --dark-2: #201F1F;
  --ok: #1f9d55; --err: #b3261e;
  --r-xl: 40px; --r-lg: 28px; --r-md: 18px; --r-sm: 12px;
  --shadow-sm: 0 1px 3px rgba(55,30,6,.08), 0 4px 6px rgba(55,30,6,.04);
  --shadow-md: 0 1px 3px rgba(55,30,6,.10), 0 5px 5px rgba(55,30,6,.08), 0 12px 24px -6px rgba(55,30,6,.12);
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: #ECE7E2; line-height: 1.55; font-size: 15px;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }

.shell {
  width: min(1100px, 100%); background: var(--surface); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-md); display: grid; grid-template-columns: 1fr 1fr; min-height: 640px;
}

/* ---------- Left: form pane ---------- */
.pane { padding: 44px 52px; display: flex; flex-direction: column; }
.pane-top { display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 46px; width: auto; }
.pane-top .help { font-size: 13px; color: var(--muted); }
.pane-top .help a { color: var(--primary); font-weight: 500; }
.form-wrap { margin: auto 0; width: 100%; max-width: 380px; align-self: center; padding: 28px 0; }
h1 { font-size: clamp(26px, 3vw, 32px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.lead { color: var(--ink-2); font-size: 14px; margin-top: 10px; }

.alert {
  margin-top: 20px; border-radius: var(--r-sm); padding: 12px 14px; font-size: 13px;
  display: flex; gap: 10px; align-items: flex-start;
}
.alert svg { flex: none; margin-top: 1px; }
.alert.err { background: #fdecea; color: var(--err); border: 1px solid #f5c6c2; }
.alert.ok  { background: #eaf7ef; color: var(--ok);  border: 1px solid #bfe6cd; }

form { margin-top: 26px; display: grid; gap: 22px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.input { position: relative; }
.input input {
  width: 100%; height: 44px; border: 0; border-bottom: 1.5px solid var(--line); background: transparent;
  font: inherit; font-size: 15px; color: var(--ink); padding: 0 34px 8px 0; outline: none;
  transition: border-color .2s;
}
.input input::placeholder { color: #c4bfbb; }
.input input:focus { border-bottom-color: var(--primary); }
.input.bad input { border-bottom-color: var(--err); }
.input .toggle {
  position: absolute; right: 0; top: 4px; width: 32px; height: 32px; display: grid; place-items: center;
  color: var(--muted); border-radius: 8px;
}
.input .toggle:hover { color: var(--ink); }
.field .err-msg { font-size: 11px; color: var(--err); min-height: 0; }

/* Password strength meter */
.strength { display: grid; gap: 6px; }
.strength .track { display: flex; gap: 5px; }
.strength .track i { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-2); transition: background .25s; }
.strength[data-score="1"] .track i:nth-child(-n+1),
.strength[data-score="2"] .track i:nth-child(-n+2),
.strength[data-score="3"] .track i:nth-child(-n+3),
.strength[data-score="4"] .track i:nth-child(-n+4) { background: var(--sc, var(--primary)); }
.strength[data-score="1"] { --sc: #e0554b; }
.strength[data-score="2"] { --sc: #e0a23a; }
.strength[data-score="3"] { --sc: #4b8fe0; }
.strength[data-score="4"] { --sc: var(--ok); }
.strength small { font-size: 11px; color: var(--muted); }

.row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -4px; font-size: 13px;
}
.remember { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); cursor: pointer; }
.remember input { width: 17px; height: 17px; accent-color: var(--primary); }
.row a { color: var(--primary); font-weight: 500; }

.agree { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.agree input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--primary); flex: none; }
.agree a { color: var(--primary); }
.agree.bad { color: var(--err); }

.btn {
  height: 50px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  box-shadow: 0 8px 20px -8px rgba(18,60,255,.6); transition: transform .15s var(--ease), box-shadow .2s, background .2s;
}
.btn:hover { background: var(--primary-600); box-shadow: 0 10px 24px -8px rgba(18,60,255,.7); }
.btn:active { transform: scale(.98); }
.btn-ghost { background: var(--surface-2); color: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--line); }

.alt { margin-top: 22px; font-size: 14px; color: var(--ink-2); text-align: center; }
.alt a { color: var(--primary); font-weight: 600; }

.pane-foot { margin-top: auto; padding-top: 30px; font-size: 12px; color: var(--muted); display: flex; gap: 18px; }
.pane-foot a:hover { color: var(--ink); }

/* ---------- Right: showcase ---------- */
.show {
  position: relative; background: linear-gradient(160deg, #EEF1FF 0%, #E6EAFF 60%, #dfe4ff 100%);
  overflow: hidden; padding: 40px;
}
.show::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(115deg, rgba(18,60,255,.05) 1px, transparent 1px),
    linear-gradient(65deg, rgba(18,60,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
}
.show > * { position: relative; }

.bal-card {
  position: absolute; left: 12%; top: 32%; width: 340px; aspect-ratio: 1.586; border-radius: 20px; padding: 22px;
  color: #fff; background: linear-gradient(145deg, #2a2827, var(--dark) 60%, #10163a);
  box-shadow: 0 40px 80px -30px rgba(26,25,25,.6), inset 0 1px 0 rgba(255,255,255,.14);
  display: flex; flex-direction: column; justify-content: space-between;
  --r: -4deg; transform: rotate(-4deg); animation: floaty 8s ease-in-out infinite;
}
.bal-top { display: flex; align-items: center; justify-content: space-between; }
.bal-top img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.bal-top .dots { display: flex; }
.bal-top .dots i { width: 22px; height: 22px; border-radius: 50%; display: block; }
.bal-top .dots i:first-child { background: var(--primary); }
.bal-top .dots i:last-child { background: rgba(255,255,255,.55); margin-left: -9px; mix-blend-mode: screen; }
.bal-card .amt { font-size: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bal-card .label { font-size: 12px; opacity: .6; margin-top: 2px; }
.bal-card .num { font-size: 14px; letter-spacing: .16em; opacity: .8; font-variant-numeric: tabular-nums; }
.bal-card .star { color: var(--primary); letter-spacing: 2px; }

.widget { position: absolute; background: #fff; border-radius: 18px; box-shadow: var(--shadow-md); }
.w-notify { right: 8%; top: 12%; width: 250px; padding: 16px; animation: floaty 7s ease-in-out -1s infinite; }
.w-notify .head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.w-notify .head b { font-weight: 600; }
.w-notify .head .time { color: var(--muted); font-size: 11px; }
.w-notify .body { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.w-notify .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.w-notify .body b { font-size: 14px; font-weight: 600; display: block; }
.w-notify .body small { color: var(--muted); font-size: 11px; }

.w-chart { left: 6%; bottom: 12%; width: 210px; padding: 16px 18px; animation: floaty 9s ease-in-out -2s infinite; }
.w-chart .cap { font-size: 11px; color: var(--muted); }
.w-chart .val { font-size: 18px; font-weight: 600; letter-spacing: -.02em; margin-top: 2px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; margin-top: 12px; }
.bars i { flex: 1; background: var(--surface-2); border-radius: 5px; display: block; }
.bars i.on { background: var(--primary); }
.bars-x { display: flex; gap: 8px; margin-top: 6px; }
.bars-x span { flex: 1; text-align: center; font-size: 9px; color: var(--muted); }

.w-chat { right: 7%; bottom: 8%; width: 260px; padding: 14px 16px; animation: floaty 8s ease-in-out -3s infinite; }
.w-chat .head { display: flex; align-items: center; gap: 10px; }
.w-chat .av { width: 34px; height: 34px; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.w-chat .head b { font-size: 13px; font-weight: 600; }
.w-chat .head small { display: block; color: var(--muted); font-size: 10px; }
.w-chat p { font-size: 12px; color: var(--ink-2); margin: 10px 0 12px; }
.w-chat .cta { display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 500; padding: 7px 14px; border-radius: 999px; }

@keyframes floaty { 0%,100% { transform: translateY(0) rotate(var(--r,0deg)); } 50% { transform: translateY(-10px) rotate(var(--r,0deg)); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; min-height: 0; }
  .show { display: none; }
  .pane { padding: 36px 28px; }
}
@media (max-width: 480px) {
  body { padding: 0; }
  .shell { border-radius: 0; min-height: 100vh; }
  .pane { padding: 28px 22px; }
  .form-wrap { max-width: 100%; }
}
