/* ============================================================
   Fokes Consult — Auth Page Styles
   File: signin-signup/css/style.css
   ============================================================ */

:root {
  --navy:       #0b1f3a;
  --navy-mid:   #102848;
  --navy-deep:  #071324;
  --accent:     #1a5cad;
  --accent-lt:  #2271c8;
  --white:      #ffffff;
  --off-white:  #f4f7fc;
  --light-bg:   #eaf0f9;
  --text-dark:  #0b1f3a;
  --text-mid:   #3a5278;
  --text-muted: #7a95b8;
  --border:     #d0ddf0;
}

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

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

/* ════════════════════════════════════════
   LAYOUT
════════════════════════════════════════ */
.wrapper {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* ── LEFT PANEL ── */
.left-panel {
  width: 50%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 2;
}

.left-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(26,92,173,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(11,31,58,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.left-grid {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(11,31,58,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,31,58,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridMove 22s linear infinite;
}

@keyframes gridMove {
  from { background-position: 0 0; }
  to   { background-position: 48px 48px; }
}

/* ── LOGO BAR ── */
.logo-bar {
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 40px 0;
  flex-shrink: 0;
}

.logo-mark img{
  width: auto; height: 44px;
  /* background: var(--navy);
  border-radius: 11px; */
  display: flex; align-items: center; justify-content: center;
  /* box-shadow: 0 3px 12px rgba(11,31,58,0.2); */
  flex-shrink: 0;
}
.logo-mark span {
  font-size: 0.95rem; font-weight: 700;
  color: var(--white); letter-spacing: -0.02em;
}
.logo-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--navy); line-height: 1.1;
  letter-spacing: -0.01em;
}
.logo-text p {
  font-size: 0.62rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* ── FORM WRAP ── */
.form-wrap {
  position: relative; z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 40px 40px;
}

.form-inner { width: 100%; max-width: 400px; }

/* ── RIGHT PANEL ── */
.right-panel {
  width: 50%;
  position: relative;
  overflow: hidden;
}

/* Slideshow */
.slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.slide.active { opacity: 1; }

.slide:nth-child(1) { background-image: url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?w=1200&q=80'); }
.slide:nth-child(2) { background-image: url('https://images.unsplash.com/photo-1556761175-4b46a572b786?w=1200&q=80'); }
.slide:nth-child(3) { background-image: url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?w=1200&q=80'); }
.slide:nth-child(4) { background-image: url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?w=1200&q=80'); }
.slide:nth-child(5) { background-image: url('https://images.unsplash.com/photo-1507679799987-c73779587ccf?w=1200&q=80'); }

.right-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(7,19,36,0.72) 0%, rgba(11,31,58,0.55) 50%, rgba(7,19,36,0.7) 100%);
  z-index: 1;
}

/* Floating slogan card */
.slogan-card {
  position: absolute; z-index: 2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 80px);
  max-width: 360px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 44px 38px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
  animation: fadeUp 0.8s ease 0.3s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 20px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

.slogan-icon {
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.slogan-icon i { color: var(--white); font-size: 1.2rem; }

.slogan-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem; font-weight: 700;
  color: var(--white); line-height: 1.25;
  margin-bottom: 14px; letter-spacing: -0.01em;
}
.slogan-card h3 em { font-style: italic; color: #93c5fd; }

.slogan-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65; margin-bottom: 24px;
}

.slide-dots { display: flex; gap: 7px; justify-content: center; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.4s, transform 0.3s;
  cursor: pointer;
}
.dot.active { background: var(--white); transform: scale(1.3); }

.slide-counter {
  position: absolute; bottom: 28px; right: 32px; z-index: 2;
  font-size: 0.7rem; color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em; font-family: 'Inter', sans-serif;
}

/* ════════════════════════════════════════
   FORM ELEMENTS
════════════════════════════════════════ */
.tab-toggle {
  display: flex;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 11px; padding: 4px;
  margin-bottom: 26px;
}
.tab-btn {
  flex: 1; background: transparent; border: none;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.845rem; font-weight: 500;
  padding: 9px; border-radius: 8px;
  cursor: pointer; transition: all 0.25s;
}
.tab-btn.active {
  background: var(--navy);
  color: var(--white); font-weight: 600;
  box-shadow: 0 2px 8px rgba(11,31,58,0.2);
}

.form-heading { margin-bottom: 20px; }
.form-heading h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem; font-weight: 700;
  color: var(--navy); margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.form-heading p { font-size: 0.78rem; color: var(--text-muted); }

.field { margin-bottom: 13px; }
.field label {
  display: block;
  font-size: 0.67rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-mid); margin-bottom: 6px;
}
.input-wrap { position: relative; }
.input-wrap i.icon {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.75rem;
  pointer-events: none; transition: color 0.2s;
}
.field input {
  width: 100%;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  font-size: 0.865rem;
  padding: 10.5px 13px 10.5px 36px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder { color: #b5c5d9; }
.field input:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,92,173,0.1);
}
.input-wrap:focus-within i.icon { color: var(--accent); }

.toggle-pw {
  position: absolute; right: 11px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-muted); font-size: 0.75rem;
  cursor: pointer; transition: color 0.2s; z-index: 2;
}
.toggle-pw:hover { color: var(--navy); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }

.forgot { text-align: right; margin-bottom: 18px; }
.forgot a {
  font-size: 0.75rem; color: var(--accent);
  text-decoration: none; transition: color 0.2s;
}
.forgot a:hover { color: var(--navy); }

.btn-submit {
  width: 100%;
  background: var(--navy);
  border: none; border-radius: 9px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem; font-weight: 600;
  padding: 12.5px; cursor: pointer; margin-top: 4px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(11,31,58,0.22);
}
.btn-submit:active { transform: translateY(0); }

.spinner {
  display: none; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white); border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Validation ── */
.err { font-size: 0.67rem; color: #dc2626; margin-top: 4px; display: none; }
.field.invalid input { border-color: rgba(220,38,38,0.5); background: #fff5f5; }
.field.invalid .err  { display: block; }
.field.valid input   { border-color: rgba(22,163,74,0.45); background: #f0fdf4; }
.form-section.hidden { display: none; }

/* ── Alert banners (server-side messages) ── */
.alert-banner {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; border-radius: 8px;
  padding: 10px 14px; margin-bottom: 16px;
}
.alert-banner.error   { background: #fff5f5; color: #b91c1c; border: 1px solid rgba(220,38,38,0.25); }
.alert-banner.success { background: #f0fdf4; color: #15803d; border: 1px solid rgba(22,163,74,0.25); }

/* ── Toast ── */
#toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 13px 20px;
  font-size: 0.82rem; color: var(--white);
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 12px 32px rgba(11,31,58,0.3);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 999; white-space: nowrap;
}
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
#toast i { color: #4ade80; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */

/* Hide right panel on portrait orientation or narrow screens */
@media (max-width: 900px), (orientation: portrait) {
  html, body { overflow: auto; }
  .wrapper { flex-direction: column; height: auto; min-height: 100vh; }
  .left-panel { width: 100%; overflow: visible; }
  .right-panel { display: none; }
  .form-wrap { padding: 24px 24px 36px; }
  .logo-bar { padding: 24px 24px 0; }
}

@media (max-width: 480px) {
  .two-col { grid-template-columns: 1fr; }
  .form-inner { max-width: 100%; }
}

/* ════════════════════════════════════════
   FGS ADDITIONS — robot check, OTP page
════════════════════════════════════════ */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.robot-check {
  display: flex; align-items: center; gap: 12px;
  background: var(--off-white); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 13px 16px; margin-bottom: 18px;
  cursor: pointer; user-select: none; transition: border-color 0.25s;
}
.robot-check:hover { border-color: var(--accent); }
.robot-box {
  width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0;
  border: 2px solid var(--border); background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s; position: relative;
}
.robot-check.checking .robot-box { border-color: var(--accent); }
.robot-check.checking .robot-box::after {
  content: ''; width: 13px; height: 13px;
  border: 2px solid var(--accent); border-top-color: transparent;
  border-radius: 50%; animation: rbspin 0.7s linear infinite;
}
@keyframes rbspin { to { transform: rotate(360deg); } }
.robot-check.done .robot-box { background: #22c55e; border-color: #22c55e; }
.robot-check.done .robot-box::after {
  content: '\2713'; color: #fff; font-size: 0.85rem; font-weight: 700;
  border: none; width: auto; height: auto; animation: none;
}
.robot-check span { font-size: 0.82rem; color: var(--text-mid); font-weight: 500; }
.robot-check .rb-brand { margin-left: auto; font-size: 0.6rem; color: var(--text-muted); text-align: right; line-height: 1.3; }

/* ── OTP page ── */
.otp-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--navy-deep); padding: 24px; position: relative; overflow: hidden;
}
.otp-shell::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
}
.otp-card {
  position: relative; width: 100%; max-width: 460px;
  background: #fff; border-radius: 20px; padding: 40px 36px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.45);
  text-align: center;
}
.otp-card .oc-logo { height: 52px; margin-bottom: 18px; }
.otp-card h1 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--navy); margin-bottom: 8px; }
.otp-card .oc-sub { font-size: 0.85rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 26px; }
.otp-card .oc-sub strong { color: var(--navy); }
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin-bottom: 22px; }
.otp-inputs input {
  width: 52px; height: 60px; text-align: center;
  font-size: 1.5rem; font-weight: 700; color: var(--navy);
  border: 2px solid var(--border); border-radius: 12px;
  outline: none; transition: all 0.2s;
}
.otp-inputs input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(26,92,173,0.12); }
.otp-inputs input.filled { border-color: var(--accent); background: var(--off-white); }
.otp-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 22px; }
.otp-meta strong { color: var(--accent); }
.otp-resend { margin-top: 18px; font-size: 0.8rem; color: var(--text-muted); }
.otp-resend button {
  background: none; border: none; color: var(--accent); font-weight: 600;
  cursor: pointer; font-size: 0.8rem; padding: 0;
}
.otp-resend button:disabled { color: var(--text-muted); cursor: default; }
.otp-back { margin-top: 14px; }
.otp-back a { font-size: 0.76rem; color: var(--text-muted); text-decoration: none; }
.otp-back a:hover { color: var(--accent); }
.dev-code {
  background: #fffbeb; border: 1px dashed #f59e0b; color: #92400e;
  border-radius: 10px; padding: 10px 14px; font-size: 0.78rem; margin-bottom: 18px;
}
@media (max-width: 480px) {
  .otp-card { padding: 30px 22px; }
  .otp-inputs input { width: 44px; height: 54px; font-size: 1.3rem; }
}
