/* ═══════════════════════════════════════
   NAWABIQUE signin.css
   Clean mobile-first sign-in like ADA reference
   ═══════════════════════════════════════ */
:root {
  --gold:     #C9A84C;
  --gold-dk:  #A8722A;
  --gold-deep:#7A4F1A;
  --ink:      #1A0E04;
  --ink-soft: #5C3D18;
  --cream:    #F7F5F1;
  --f-d: 'Cinzel', serif;
  --f-b: 'Cormorant Garamond', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  background: var(--cream);
  font-family: var(--f-b);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Screens ── */
.screen {
  display: none;
  flex-direction: column;
  min-height: 100vh;
}
.screen.active { display: flex; }

/* ── TOP — logo area ── */
.si-top {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 20px;
}

.si-logo {
  width: 110px;
  height: auto;
  object-fit: contain;
  /* no circle crop — show full logo like ADA */
  filter: drop-shadow(0 4px 16px rgba(138,94,32,0.18));
}

/* ── BOTTOM — form area ── */
.si-bottom {
  padding: 0 28px 28px;
}

.si-title {
  font-family: var(--f-b);
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.si-sub {
  font-size: 1rem;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.5;
  font-weight: 300;
}

/* ── Email input row (input + arrow inside) ── */
.email-row {
  position: relative;
  margin-bottom: 12px;
}

.email-inp {
  width: 100%;
  padding: 18px 56px 18px 18px;
  border: 1.8px solid var(--gold);
  border-radius: 10px;
  background: #fff;
  font-family: var(--f-b);
  font-size: 1.1rem;
  color: var(--ink);
  outline: none;
  transition: box-shadow 0.3s;
}

.email-inp::placeholder { color: #aaa; }
.email-inp:focus {
  box-shadow: 0 0 0 3px rgba(201,168,76,0.18);
}

.email-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 8px;
  border: none;
  background: var(--gold-dk);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
}
.email-arrow:hover { background: var(--gold-deep); transform: translateY(-50%) scale(1.06); }

/* ── Messages ── */
.err-msg {
  color: #c0392b;
  font-size: 0.88rem;
  margin-bottom: 10px;
  display: none;
}
.send-msg {
  color: var(--gold-dk);
  font-size: 0.88rem;
  margin-bottom: 10px;
  display: none;
  align-items: center;
  gap: 6px;
}

/* Spinner */
.spin {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(168,114,42,0.3);
  border-top-color: var(--gold-dk);
  border-radius: 50%;
  animation: spinAnim 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spinAnim { to { transform: rotate(360deg); } }

/* ── Checkbox row ── */
.chk-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  cursor: pointer;
}

.chk-row input[type="checkbox"] { display: none; }

.chk-box {
  width: 20px; height: 20px;
  border: 1.5px solid var(--gold);
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chk-row input:checked + .chk-box {
  background: var(--gold-dk);
  border-color: var(--gold-dk);
}

.chk-row input:checked + .chk-box::after {
  content: '✓';
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
}

.chk-text {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ── Terms ── */
.terms {
  font-size: 0.88rem;
  color: #888;
  line-height: 1.6;
  text-align: center;
}
.terms a { color: var(--gold-dk); text-decoration: underline; }

/* ── Footer ── */
.si-foot {
  padding: 20px;
  text-align: center;
}
.foot-link {
  color: var(--gold-dk);
  font-family: var(--f-b);
  font-size: 0.95rem;
  text-decoration: none;
}

/* ══ OTP SCREEN ══ */
.otp-emoji { font-size: 2.8rem; margin-bottom: 14px; }

.otp-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 24px 0;
}

.otp-cell {
  width: 46px; height: 56px;
  text-align: center;
  font-family: var(--f-d);
  font-size: 1.5rem;
  border: 1.8px solid rgba(201,168,76,0.40);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.otp-cell:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
  transform: scale(1.06);
}

.succ-msg {
  color: #1a7a3a;
  font-size: 0.88rem;
  margin-bottom: 10px;
  display: none;
}

/* Verify button */
.verify-btn {
  display: block;
  width: 100%;
  padding: 17px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--f-d);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #FAF7F0;
  background: linear-gradient(110deg, #5C3210, #A8722A, #C9A84C, #F0D080, #C9A84C, #A8722A, #5C3210);
  background-size: 220% 100%;
  transition: background-position 0.6s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 24px rgba(138,94,32,0.35);
  margin-bottom: 18px;
}
.verify-btn:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(138,94,32,0.45);
}
.verify-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.timer-txt {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.timer-txt span { color: var(--gold-dk); font-weight: bold; }

.resend-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gold-dk);
  font-family: var(--f-b);
  font-size: 0.95rem;
  text-decoration: underline;
  display: none;
  margin-bottom: 16px;
}

.back-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--f-d);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-top: 10px;
}

/* ══ PROFILE SCREEN ══ */
#profileScreen { background: var(--cream); }

.prof-hdr {
  background: linear-gradient(135deg, #4A2A08, #7A4F1A, #A8722A, #C9A84C, #A8722A, #7A4F1A);
  padding: 52px 24px 36px;
  text-align: center;
  position: relative;
}

.back-home {
  position: absolute;
  top: 18px; left: 20px;
  font-family: var(--f-d);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
  text-decoration: none;
}
.back-home:hover { color: #fff; }

.prof-av {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 2.5px solid rgba(255,255,255,0.65);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-d);
  font-size: 2.1rem;
  color: #fff;
  margin: 0 auto 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.prof-name {
  font-family: var(--f-d);
  font-size: 1.4rem;
  letter-spacing: 0.10em;
  color: #fff;
  margin-bottom: 4px;
}

.prof-email {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
}

.prof-body {
  padding: 22px 20px;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.sec-lbl {
  font-family: var(--f-d);
  font-size: 0.58rem;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin: 18px 0 9px;
}

.gold-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.38), transparent);
  margin-bottom: 12px;
}

.mrow {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(201,168,76,0.16);
  border-radius: 10px;
  margin-bottom: 9px;
  text-decoration: none;
  transition: box-shadow 0.3s, transform 0.2s;
}
.mrow:hover { box-shadow: 0 4px 18px rgba(138,94,32,0.11); transform: translateX(3px); }

.mrow-l { display: flex; align-items: center; gap: 13px; }

.mrow-ic {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #F5DC8A, #C9A84C);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(138,94,32,0.15);
  flex-shrink: 0;
}

.mrow-t {
  font-family: var(--f-d);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 2px;
}

.mrow-s { font-size: 0.80rem; color: var(--ink-soft); font-style: italic; }
.mrow-arr { color: var(--gold); font-size: 1.3rem; }

.so-btn {
  width: 100%;
  padding: 15px;
  margin-top: 14px;
  margin-bottom: 50px;
  border: 1.5px solid rgba(201,168,76,0.40);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-family: var(--f-d);
  font-size: 0.70rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-dk);
  transition: all 0.3s;
}
.so-btn:hover { background: rgba(201,168,76,0.08); border-color: var(--gold); }