:root {
  color-scheme: dark;
  --bg: #09090b; /* zinc-950 */
  --surface-0: #18181b; /* zinc-900 */
  --surface-1: rgba(24, 24, 27, 0.7); /* glass tint */
  --border: rgba(63, 63, 70, 0.4);
  --border-strong: rgba(82, 82, 91, 0.8);
  
  --text: #f8fafc;
  --text-soft: #94a3b8;
  --text-muted: #64748b;
  
  --primary: #2563eb; /* blue-600 */
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.3);
  
  --accent: #38bdf8; /* sky-400 */
  --accent-glow: rgba(56, 189, 248, 0.15);

  --danger: #ef4444;
  --success-bg: rgba(16, 185, 129, 0.1);
  --success-text: #34d399;
  --error-bg: rgba(239, 68, 68, 0.1);
  --error-text: #f87171;
  --info-bg: rgba(56, 189, 248, 0.1);
  --info-text: #7dd3fc;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.4);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.page {
  min-height: 100vh;
  padding: 48px 24px;
  position: relative;
  z-index: 1;
}

.layout {
  width: min(100%, 1060px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.auth-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 8px;
}

.brand-badge {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm), 0 0 20px var(--primary-glow);
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-0);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.card.glass {
  background: var(--surface-1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.copy,
.form,
.field,
.notice,
.feedback {
  display: flex;
  flex-direction: column;
}

.copy {
  gap: 12px;
}

.lead {
  max-width: 65ch;
  font-size: 1.1rem;
  color: var(--text-soft);
}

.eyebrow {
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-glow);
  border: 1px solid rgba(56,189,248,0.2);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1, h2, h3, p, ol, ul {
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.copy p,
.notice p,
.feedback,
.section-heading p,
.step-content p,
.faq-item p,
.timeline {
  color: var(--text-soft);
}

.hero-grid,
.step-list,
.faq-list {
  display: grid;
  gap: 20px;
}

.hero-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.data-box,
.step-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(39, 39, 42, 0.4);
}

.data-box {
  padding: 24px;
}

.data-box strong,
.alert-info strong,
.hero-point strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.cta-row,
.section-heading {
  display: flex;
}

.cta-row {
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.button, .button--submit {
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.button--primary, .button--submit {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.button--submit {
    width: auto;
    min-width: 280px;
    gap: 10px;
}

.button--primary:hover, .button--submit:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

.button--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.button--ghost:hover {
    background: var(--surface-2);
    border-color: var(--text-soft);
}

.section-heading {
  flex-direction: column;
  gap: 10px;
}

.section-tag {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 700;
}

.step-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.step-item {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-0);
  border: 1px solid var(--border);
  color: var(--accent);
}

.timeline {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 16px;
}

.timeline li {
    padding-left: 8px;
}

.notice {
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.alert-info {
    border: 1px solid var(--accent-glow);
    background: var(--info-bg);
}

.alert-info svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-info p {
    color: var(--info-text);
}

.faq-item {
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(39, 39, 42, 0.3);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  font-size: 1.05rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding-top: 16px;
  line-height: 1.6;
}

.code {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-family: monospace;
  font-weight: 700;
  letter-spacing: 1px;
  word-break: break-all;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.field {
  gap: 8px;
}

.full-width {
    grid-column: 1 / -1;
}

.field span {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(9, 9, 11, 0.8);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
}

.field input::placeholder {
  color: rgba(148, 163, 184, 0.4);
}

.field input:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: #000;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "↓";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-soft);
    pointer-events: none;
}

.field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
}

.actions {
  display: flex;
  margin-top: 10px;
}

.actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.feedback {
  padding: 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
}

.feedback--error {
  background: var(--error-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--error-text);
}

.feedback--success {
  background: var(--success-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success-text);
}

.divider {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.app-footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 768px) {
  .page {
    padding: 24px 16px;
  }

  .card {
    padding: 32px 24px;
    border-radius: var(--radius-md);
  }

  .form-grid {
      grid-template-columns: 1fr;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button, .button--submit {
    width: 100%;
  }
}
