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

:root {
  --primary: #6c63ff;
  --primary-dark: #574fd6;
  --primary-glow: rgba(108, 99, 255, 0.35);
  --bg: #0a0a12;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(108, 99, 255, 0.6);
  --text: #f0f0f8;
  --text-muted: #8888aa;
  --text-dim: #555570;
  --success: #22d3a0;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
  --radius-sm: 10px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-x: hidden;
}

/* ── BACKGROUND ── */
.bg-animation {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: float 10s ease-in-out infinite;
}

.orb-1 {
  width: 500px; height: 500px;
  background: #6c63ff;
  top: -150px; left: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: #ff6b9d;
  bottom: -120px; right: -80px;
  animation-delay: -4s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: #00d4ff;
  top: 50%; left: 60%;
  animation-delay: -7s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.97); }
}

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

/* ── BRAND ── */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.brand-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--primary), #ff6b9d);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 24px var(--primary-glow);
}

.brand-name {
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.5px;
}

.brand-name strong {
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── TABS ── */
.tabs {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.tab {
  flex: 1;
  padding: 11px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color .25s;
  position: relative;
  z-index: 1;
}

.tab.active {
  color: var(--text);
}

.tab-indicator {
  position: absolute;
  top: 5px; bottom: 5px;
  width: calc(50% - 5px);
  left: 5px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px var(--primary-glow);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  z-index: 0;
}

.tab-indicator.right {
  transform: translateX(calc(100% + 0px));
}

/* ── CARD ── */
.form-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  animation: fadeUp .4s cubic-bezier(.4,0,.2,1);
}

.form-card.hidden {
  display: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-header {
  margin-bottom: 28px;
}

.form-header h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.form-header p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── INPUTS ── */
.input-group {
  margin-bottom: 18px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.badge {
  font-size: 10px;
  font-weight: 600;
  background: rgba(108, 99, 255, 0.2);
  color: var(--primary);
  border: 1px solid rgba(108, 99, 255, 0.3);
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--text-dim);
  pointer-events: none;
  flex-shrink: 0;
}

.input-wrapper input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.input-wrapper input::placeholder {
  color: var(--text-dim);
}

.input-wrapper input:focus {
  border-color: var(--border-focus);
  background: rgba(108, 99, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}

/* Phone wrapper */
.phone-wrapper input {
  padding-left: 88px !important;
}

.phone-prefix {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
  padding-right: 12px;
  border-right: 1px solid var(--border);
}

/* TikTok @ prefix */
.tiktok-at {
  position: absolute;
  left: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}

/* Select inside input-wrapper */
.input-wrapper select {
  width: 100%;
  padding: 13px 16px 13px 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.input-wrapper select:focus {
  border-color: var(--border-focus);
  background: rgba(108, 99, 255, 0.06);
}

.input-wrapper select option {
  background: #1a1a2e;
  color: var(--text);
}

/* Eye button */
.eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-dim);
  transition: color .2s;
  display: flex;
}

.eye-btn:hover { color: var(--text-muted); }

.eye-icon {
  width: 18px; height: 18px;
}

.field-hint {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 5px;
}

/* ── PASSWORD STRENGTH ── */
.password-strength {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition: width .4s, background .4s;
}

.strength-label {
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

/* ── CHECKBOX ── */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
  background: rgba(255,255,255,0.04);
}

.checkbox-label input:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
  content: '';
  width: 9px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

/* ── FORM OPTIONS ── */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.forgot-link {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  transition: opacity .2s;
}

.forgot-link:hover { opacity: 0.75; }

/* ── BUTTON ── */
.btn-primary {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px var(--primary-glow);
  margin-top: 20px;
}

.btn-primary svg {
  width: 18px; height: 18px;
  transition: transform .2s;
}

.btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 6px 28px var(--primary-glow);
}

.btn-primary:hover svg { transform: translateX(3px); }

.btn-primary:active { transform: scale(0.98); }

/* ── DIVIDER ── */
.divider {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  margin: 22px 0 16px;
  position: relative;
}

.divider::before, .divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 30px);
  height: 1px;
  background: var(--border);
}

.divider::before { left: 0; }
.divider::after  { right: 0; }

/* ── SWITCH TEXT ── */
.switch-text {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.switch-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.switch-text a:hover { text-decoration: underline; }

/* ── TERMS ── */
.terms {
  margin-bottom: 4px;
}

.terms span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.terms a {
  color: var(--primary);
  text-decoration: none;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(20, 20, 35, 0.95);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  border-radius: 40px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .3s;
  opacity: 0;
  z-index: 999;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-icon.success {
  background: rgba(34, 211, 160, 0.2);
  color: var(--success);
}

.toast-icon svg {
  width: 14px; height: 14px;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
  body { padding: 16px 14px; align-items: flex-start; padding-top: 24px; }
  .container { max-width: 100%; }
  .brand { margin-bottom: 24px; }
  .brand-icon { width: 38px; height: 38px; }
  .brand-name { font-size: 19px; }
  .form-card { padding: 22px 18px; border-radius: 16px; }
  .form-header { margin-bottom: 20px; }
  .form-header h2 { font-size: 19px; }
  .input-row { grid-template-columns: 1fr; gap: 0; }
  .input-wrapper input { font-size: 16px; /* iOS zoom önle */ padding: 14px 16px 14px 44px; }
  .form-options { flex-direction: column; align-items: flex-start; gap: 10px; }
  .btn-primary { padding: 15px 20px; font-size: 15px; }
  .toast { width: calc(100% - 28px); left: 14px; transform: translateX(0) translateY(80px); border-radius: 14px; white-space: normal; }
  .toast.show { transform: translateX(0) translateY(0); }
}
