/* ════════════════════════════════════════════════════════════════
   MoniFi — Auth pages V2 (2-column layout)
   منقول من Auth.html
   ──────────────────────────────────────────────────────────────── */

.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
}

/* ─── Left: brand panel ─── */
.auth-left {
  background: linear-gradient(170deg, #0F1428 0%, #161D3D 100%);
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--line);
}
[dir="ltr"] .auth-left { border-left: 0; border-right: 1px solid var(--line); }

.auth-left::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,255,92,0.18), transparent 65%);
  top: -200px;
  left: -200px;
  filter: blur(40px);
  pointer-events: none;
}
.auth-left::after {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,123,255,0.16), transparent 65%);
  bottom: -100px;
  right: -100px;
  filter: blur(40px);
  pointer-events: none;
}

.auth-brand {
  position: relative;
  z-index: 2;
}
.auth-brand .brand-mark {
  width: 42px; height: 42px;
  border-radius: 11px;
  font-size: 20px;
}
.auth-brand .brand-name { font-size: 22px; }

.auth-pitch { position: relative; z-index: 2; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(232,255,92,0.10);
  border: 1px solid rgba(232,255,92,0.25);
  color: var(--y);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 22px;
}
.kicker .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--y);
  box-shadow: 0 0 10px var(--y);
}

.auth-pitch h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 54px;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 18px;
}
.auth-pitch h1 .y { color: var(--y); }

.auth-lead {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 38px;
}

/* Mini KPI card preview */
.mini-card {
  background: var(--y);
  color: var(--ink);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 30px 60px -20px rgba(232,255,92,0.3);
  max-width: 380px;
  position: relative;
  z-index: 2;
}
.mini-card .lbl {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  opacity: 0.55;
}
.mini-card .v {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin-top: 6px;
  direction: ltr;
}
.mini-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.mini-card .delta {
  background: var(--ink);
  color: var(--y);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  direction: ltr;
}
.mini-card .spark { width: 120px; height: 38px; }

.auth-quotes {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--text3);
  font-size: 13px;
}
.auth-quotes .avatars { display: flex; }
.auth-quotes .avatars span {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg2);
  margin-left: -9px;
  background: linear-gradient(135deg, var(--y), var(--purple));
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  font-size: 12px;
  display: grid;
  place-items: center;
}
.auth-quotes .avatars span:nth-child(2) { background: linear-gradient(135deg, var(--orange), var(--red)); }
.auth-quotes .avatars span:nth-child(3) { background: linear-gradient(135deg, var(--green), var(--y)); }
.auth-quotes .avatars span:nth-child(4) { background: linear-gradient(135deg, var(--purple), var(--y)); }
.auth-quotes .avatars span:nth-child(5) {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line2);
  font-size: 10px;
}

/* ─── Right: form panel ─── */
.auth-right {
  padding: 32px 50px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.auth-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: auto;
}
.auth-topbar .back {
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  transition: background 0.15s;
}
.auth-topbar .back:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}
.auth-topbar .switch {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text3);
  font-size: 13px;
}
.auth-topbar .switch a {
  color: var(--y);
  font-weight: 700;
}

.form-wrap {
  width: 100%;
  max-width: 440px;
  margin: 30px auto auto;
}

.form-head { margin-bottom: 34px; }
.form-head .step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--y);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.form-head .step::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--y);
}
.form-head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 38px;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 10px;
}
.form-head p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
  font-weight: 500;
}
.form-head p a { color: var(--y); font-weight: 700; }

/* Between (forgot pw row) */
.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 22px;
}
.between .forgot {
  color: var(--y);
  font-size: 13px;
  font-weight: 700;
}
.between .forgot:hover { text-decoration: underline; }

/* Submit */
.submit {
  width: 100%;
  background: var(--y);
  color: var(--ink);
  padding: 17px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 14px 32px -8px rgba(232,255,92,0.45);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.submit:hover {
  background: var(--y2);
  transform: translateY(-1px);
  box-shadow: 0 18px 38px -8px rgba(232,255,92,0.55);
}
.submit:active { transform: translateY(0) scale(0.99); }
.submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 18px;
  color: var(--text3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* OAuth buttons */
.oauth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.oauth button {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 13px;
  padding: 13px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: border-color 0.15s, background 0.15s;
}
.oauth button:hover {
  border-color: var(--line2);
  background: var(--surface2);
}

.form-foot {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text3);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.form-foot a:hover { color: var(--text); }

/* OTP boxes */
.otp-boxes {
  display: flex;
  gap: 10px;
  direction: ltr;
  margin-bottom: 18px;
}
.otp-boxes input {
  flex: 1;
  aspect-ratio: 1;
  max-width: 62px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.otp-boxes input:focus {
  border-color: var(--y);
  background: var(--surface2);
}
.otp-boxes input.filled {
  border-color: var(--y);
  color: var(--y);
}

.otp-resend {
  text-align: center;
  font-size: 13px;
  color: var(--text2);
  margin-top: 14px;
  font-weight: 500;
}
.otp-resend a { color: var(--y); font-weight: 700; }
.otp-resend .timer { color: var(--text3); }

.otp-info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.otp-info .ic {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(232,255,92,0.12);
  display: grid;
  place-items: center;
  color: var(--y);
  flex-shrink: 0;
}
.otp-info .txt {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}
.otp-info .txt strong {
  color: var(--text);
  font-weight: 800;
  direction: ltr;
  display: inline-block;
}

/* Mode screens (login/signup/otp/forgot) */
.mode-screen { display: none; }
.mode-screen.active { display: block; }

@media (max-width: 1024px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 20px 22px; }
}
@media (max-width: 480px) {
  .form-head h2 { font-size: 30px; }
  .otp-boxes input { font-size: 22px; }
}
