/* ── Reset & base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #f0f0f5;
  color: #1a1a2e;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Signup page layout ────────────────────────────────────────────────────── */
.page-center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.signup-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e0e0ea;
  padding: 48px 44px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Brand mark */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c6fd0, #4fc3f7);
}

.brand-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
}

/* Hero text */
.hero-title {
  font-size: 32px;
  font-weight: 800;
  color: #0f0f23;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 15px;
  color: #666;
  line-height: 1.65;
  margin-bottom: 28px;
}

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.alert-success {
  background: #e6f9f0;
  color: #1a7a4a;
  border: 1px solid #b8e8d0;
}

.alert-error {
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid #f5c6c6;
}

/* Form */
.signup-form { display: flex; flex-direction: column; gap: 20px; }

.field-group { display: flex; flex-direction: column; gap: 6px; }

.field-group label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  letter-spacing: 0.2px;
}

.field-group input[type="email"] {
  padding: 12px 16px;
  border: 1.5px solid #d8d8e8;
  border-radius: 8px;
  font-size: 15px;
  color: #1a1a2e;
  background: #fafafe;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  width: 100%;
  font-family: inherit;
}

.field-group input[type="email"]:focus {
  border-color: #7c6fd0;
  box-shadow: 0 0 0 3px rgba(124, 111, 208, 0.12);
  background: #fff;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid #d8d8e8;
}

.lang-toggle input[type="radio"] { display: none; }

.lang-btn {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  background: #fafafe;
  transition: background .15s, color .15s;
  user-select: none;
}

.lang-toggle input[type="radio"]:checked + .lang-btn {
  background: #7c6fd0;
  color: #fff;
  font-weight: 600;
}

/* Submit button */
.btn-primary {
  padding: 14px 24px;
  background: linear-gradient(135deg, #7c6fd0, #5b4fc0);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform .1s, box-shadow .1s;
  box-shadow: 0 2px 8px rgba(124, 111, 208, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124, 111, 208, 0.45);
}

.btn-primary:active { transform: translateY(0); }

/* Fine print */
.fine-print {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #aaa;
}

/* Features strip */
.features {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.feature-icon { font-size: 22px; }

.feature p {
  font-size: 12px;
  color: #888;
  font-weight: 500;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
  .signup-card { padding: 32px 24px; }
  .hero-title  { font-size: 26px; }
  .features    { gap: 20px; }
}
