/* ============================================================
   RowadAI — Signup Page CSS
   ============================================================ */

:root {
  --bg:      #04040c;
  --card:    rgba(14,14,28,.9);
  --surface: #10101e;
  --border:  rgba(99,102,241,.12);
  --text:    #f0f0ff;
  --muted:   #7070a0;
  --muted2:  #a0a0c0;
  --accent:  #6366f1;
  --accent2: #4f46e5;
  --success: #10b981;
  --danger:  #ef4444;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body { background: var(--bg); color: var(--text); direction: rtl; }
.site-header, .site-footer, #colophon, footer { display: none !important; }

/* ── BG ── */
.signup-bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(99,102,241,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.signup-orb { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; }
.signup-orb.orb-1 {
  width: 700px; height: 700px; top: -300px; right: -200px;
  background: radial-gradient(circle, rgba(99,102,241,.09) 0%, transparent 65%);
}
.signup-orb.orb-2 {
  width: 500px; height: 500px; bottom: -200px; left: -150px;
  background: radial-gradient(circle, rgba(16,185,129,.06) 0%, transparent 65%);
}

/* ── Page ── */
.signup-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  position: relative; z-index: 1;
}

/* ── NAV ── */
.signup-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4,4,12,.8); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.signup-nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 62px; display: flex; align-items: center; justify-content: space-between;
}
.signup-nav-logo { display: flex; align-items: center; text-decoration: none; }
.signup-nav-back {
  font-size: 13px; color: var(--muted2); text-decoration: none;
  display: flex; align-items: center; gap: 6px; transition: color .2s;
}
.signup-nav-back:hover { color: var(--text); }

/* ── MAIN ── */
.signup-main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 48px 20px;
}
.signup-wrap { width: 100%; max-width: 560px; }

/* ── Header ── */
.signup-header { text-align: center; margin-bottom: 36px; }

.signup-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.18);
  border-radius: 100px; padding: 6px 16px;
  font-size: 12px; color: var(--success); font-weight: 700; margin-bottom: 18px;
}
.signup-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,.4); }
  50%      { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

.signup-header h1 {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 900; letter-spacing: -.8px; line-height: 1.15; margin-bottom: 10px;
}
.signup-header h1 span {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.signup-header p { font-size: 15px; color: var(--muted2); line-height: 1.75; }

.signup-perks {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 16px;
}
.signup-perk {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted2);
}
.signup-perk::before { content: '✓'; color: var(--success); font-weight: 700; }

/* ── Card ── */
.signup-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 24px; padding: 36px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px rgba(99,102,241,.08), 0 20px 60px rgba(0,0,0,.4);
  position: relative; overflow: hidden;
}
.signup-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,.5), transparent);
}

/* ── Fields ── */
.signup-field { margin-bottom: 18px; }
.signup-field label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--muted2); margin-bottom: 7px;
}
.req { color: var(--accent); font-size: 14px; }

.signup-field input,
.signup-field textarea {
  width: 100%; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
  padding: 12px 16px; font-size: 15px; color: var(--text);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  outline: none; transition: border-color .2s, box-shadow .2s; direction: rtl;
}
.signup-field textarea { min-height: 100px; resize: vertical; }
.signup-field input:focus,
.signup-field textarea:focus {
  border-color: rgba(99,102,241,.5);
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.signup-field input::placeholder,
.signup-field textarea::placeholder { color: rgba(255,255,255,.2); }

.field-hint  { font-size: 11px; color: var(--muted); margin-top: 5px; }
.field-error { font-size: 12px; color: var(--danger); margin-top: 5px; display: none; }
.signup-field.has-error input,
.signup-field.has-error textarea { border-color: rgba(239,68,68,.4); }
.signup-field.has-error .field-error { display: block; }

/* Phone */
.phone-row { display: flex; gap: 8px; }
.phone-code {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 12px 14px; font-size: 15px; color: var(--muted2);
  white-space: nowrap; display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.phone-row input { flex: 1; }

/* ── Submit ── */
.btn-signup-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border: none; border-radius: 14px; padding: 16px;
  font-size: 16px; font-weight: 700; font-family: 'IBM Plex Sans Arabic', sans-serif;
  color: #fff; cursor: pointer; transition: all .22s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 8px; position: relative; overflow: hidden;
  box-shadow: 0 4px 20px rgba(99,102,241,.4);
}
.btn-signup-submit::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
  opacity: 0; transition: opacity .22s;
}
.btn-signup-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,.5); }
.btn-signup-submit:hover::before { opacity: 1; }
.btn-signup-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.signup-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  animation: spin .8s linear infinite; display: none; flex-shrink: 0;
}

/* Trust */
.signup-trust {
  text-align: center; margin-top: 16px; font-size: 12px; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* ── Success ── */
.signup-success {
  display: none; text-align: center; padding: 40px 24px;
  animation: fadeUp .4s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.success-icon  { font-size: 52px; margin-bottom: 14px; }
.signup-success h2 {
  font-family: 'Cairo', sans-serif; font-size: 24px; font-weight: 900; margin-bottom: 10px;
}
.signup-success p  { font-size: 15px; color: var(--muted2); line-height: 1.75; margin-bottom: 24px; }
.success-id {
  background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.2);
  border-radius: 12px; padding: 13px 18px; margin-bottom: 22px;
  font-size: 13px; color: var(--success); font-family: monospace;
}
.btn-wa-success {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #128c7e, #25d366);
  border: none; border-radius: 12px; padding: 13px 24px;
  font-size: 14px; font-weight: 700; font-family: 'IBM Plex Sans Arabic', sans-serif;
  color: #fff; cursor: pointer; transition: all .2s; text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,.25);
}
.btn-wa-success:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,211,102,.35); }
.btn-wa-success svg  { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .signup-card  { padding: 24px 16px; }
  .signup-perks { gap: 12px; }
  .signup-main  { padding: 32px 16px; }
}
