:root {
  --background: #0f0f16;
  --surface: #1c1c2a;
  --surface-variant: #252538;
  --primary: #ffd600;
  --on-primary: #0f0f16;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.54);
  --text-faint: rgba(255, 255, 255, 0.3);
  --error: #ff6b6b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 420px;
}

.brand {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.brand-g8 {
  color: var(--text);
}

.brand-pass {
  color: var(--primary);
}

.subtitle {
  color: var(--text-dim);
  font-size: 14px;
  margin: 6px 0 28px;
}

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

input,
select {
  width: 100%;
  background: var(--surface);
  border: none;
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

input::placeholder {
  color: var(--text-faint);
}

input:focus,
select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 0;
}

.phone-row {
  display: flex;
  gap: 8px;
}

.phone-row select {
  flex: 0 0 auto;
  width: auto;
  background: var(--surface);
}

.phone-row input {
  flex: 1;
}

button {
  width: 100%;
  border: none;
  border-radius: 16px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  padding: 16px;
  cursor: pointer;
}

button[type="submit"] {
  background: var(--primary);
  color: var(--on-primary);
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.link-btn {
  background: transparent;
  color: var(--primary);
  margin-top: 12px;
  font-size: 14px;
  padding: 8px;
}

.link-btn:disabled {
  color: var(--text-dim);
  cursor: not-allowed;
}

.error {
  color: var(--error);
  font-size: 13px;
  margin: -4px 0 14px;
}

.otp-hint {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.success-message {
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
}

.powered {
  text-align: center;
  color: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  margin-top: 40px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
