/* ==========================================================================
   058 · AURORA SIGNUP (فجر الهوية) — 1:1 Dark Split Onboarding & Passkey Card
   #000000 outer shell · 52% rounded-3xl violet aurora left/start card · #1A1A1A form inputs
   ========================================================================== */

:root {
  --au-bg: #000000;
  --au-gray: #1A1A1A;
  --au-border: rgba(255, 255, 255, 0.10);
  --au-ink: #FFFFFF;
  --au-sans: 'IBM Plex Sans Arabic', 'Readex Pro', ui-sans-serif, system-ui, sans-serif;
  --au-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
  background: var(--au-bg);
  color: var(--au-ink);
  font-family: var(--au-sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font-family: inherit;
  letter-spacing: 0;
}

.au-shell {
  width: 100vw;
  height: 100dvh;
  padding: 16px;
  display: flex;
  align-items: stretch;
  gap: 16px;
}

/* ======================== VISUAL AURORA PANEL (50%) ======================== */
.au-visual-panel {
  width: 50%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 36px 40px 54px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.9);
  isolation: isolate;
}

.au-visual-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.au-visual-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

#au-aurora-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.au-visual-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(110, 66, 214, 0.12) 0%, rgba(0, 0, 0, 0.55) 56%, rgba(0, 0, 0, 0.92) 100%);
  pointer-events: none;
}

.au-top-showcase {
  position: absolute;
  top: 18px;
  inset-inline: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  z-index: 10;
}

.au-mini-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  gap: 10px;
}

.au-mini-pill a:hover {
  color: #FFFFFF;
}

.au-visual-stack {
  width: 100%;
  max-width: 340px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.au-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
}

.au-brand-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 22px rgba(167, 139, 250, 0.85);
}

.au-visual-title {
  font-size: 31px;
  font-weight: 600;
  line-height: 1.22;
  margin-bottom: 8px;
}

.au-visual-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.65;
}

/* 3-Step Vertical Progress Stack */
.au-steps {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.au-step {
  width: 100%;
  border-radius: 16px;
  padding: 13px 18px;
  background: var(--au-gray);
  border: 1px solid transparent;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: start;
  transition: background 0.22s ease, color 0.22s ease, transform 0.2s ease;
}

.au-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.au-step-lbl {
  font-size: 14px;
  font-weight: 500;
}

.au-step.is-active {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
}

.au-step.is-active .au-step-num {
  background: #000000;
  color: #FFFFFF;
}

/* ======================== FORM COLUMN (50%) ======================== */
.au-form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 44px;
}

.au-form-box {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.au-form-h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 4px;
}

.au-form-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.44);
}

.au-oauth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.au-oauth-btn {
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--au-border);
  background: #000000;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.au-oauth-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.22);
}

.au-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

.au-divider::before,
.au-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--au-border);
}

.au-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.au-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.au-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.88);
}

.au-input-wrap {
  position: relative;
}

.au-input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: var(--au-gray);
  border: 1px solid transparent;
  padding: 0 14px;
  color: #FFFFFF;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.au-input::placeholder {
  color: rgba(255, 255, 255, 0.26);
}

.au-input:focus {
  border-color: rgba(255, 255, 255, 0.28);
}

.au-input.has-eye {
  padding-inline-end: 44px;
}

.au-eye-btn {
  position: absolute;
  top: 50%;
  inset-inline-end: 10px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.au-eye-btn:hover {
  color: #FFFFFF;
}

.au-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 6px;
}

.au-submit-btn {
  margin-top: 6px;
  height: 52px;
  width: 100%;
  border-radius: 12px;
  border: none;
  background: #FFFFFF;
  color: #000000;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.16s ease;
}

.au-submit-btn:hover {
  opacity: 0.92;
}

.au-submit-btn:active {
  transform: scale(0.985);
}

.au-bottom-prompt {
  text-align: center;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
}

.au-link-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  text-decoration: underline;
  font-size: 13.5px;
  cursor: pointer;
  margin-inline-start: 4px;
}

@media (max-width: 720px) {
  html, body {
    overflow-y: auto;
  }
  .au-shell {
    height: auto;
    min-height: 100dvh;
    flex-direction: column;
  }
  .au-visual-panel {
    width: 100%;
    min-height: 420px;
  }
  .au-form-col {
    padding: 28px 20px 44px;
  }
}
