﻿@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 400;
  src: local("Vazirmatn"), local("Vazirmatn Regular");
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 700;
  src: local("Vazirmatn"), local("Vazirmatn Bold");
}

:root {
  --bg-1: #0f0a1f;
  --bg-2: #111827;
  --bg-3: #0b1224;
  --text: #f8fafc;
  --muted: #cbd5f5;
  --accent: #f59e0b;
  --accent-2: #22d3ee;
  --card: rgba(15, 23, 42, 0.78);
  --stroke: rgba(148, 163, 184, 0.25);
  --shadow: 0 25px 60px rgba(6, 8, 20, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Vazirmatn", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(1000px 600px at 10% 10%, rgba(34, 211, 238, 0.25), transparent 60%),
    radial-gradient(900px 700px at 85% 5%, rgba(245, 158, 11, 0.2), transparent 55%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  padding: 64px clamp(24px, 6vw, 96px);
}

.hero h1 {
  font-size: clamp(32px, 3.6vw, 56px);
  margin: 24px 0 16px;
  line-height: 1.2;
}

.lead {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--muted);
  max-width: 520px;
  line-height: 1.9;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #0b1120;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
}

.brand-sub {
  color: var(--muted);
  font-size: 14px;
}

.chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 18px;
}

.chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--stroke);
  font-size: 13px;
}

.meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  font-size: 12px;
  color: #e2f8ff;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.card-header h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.card-header p {
  margin: 0;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.field input {
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  padding: 0 14px;
  font-size: 14px;
}

.field input:focus {
  outline: 2px solid rgba(34, 211, 238, 0.4);
  border-color: transparent;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.toggle input {
  display: none;
}

.track {
  width: 44px;
  height: 24px;
  background: rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  position: relative;
  transition: all 0.2s ease;
}

.track::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e2e8f0;
  position: absolute;
  top: 3px;
  right: 4px;
  transition: all 0.2s ease;
}

.toggle input:checked + .track {
  background: rgba(34, 211, 238, 0.5);
}

.toggle input:checked + .track::after {
  right: 22px;
  background: #0f172a;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.primary,
.ghost {
  height: 48px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.primary {
  background: linear-gradient(135deg, var(--accent), #f97316);
  color: #0b1120;
  box-shadow: 0 12px 20px rgba(245, 158, 11, 0.25);
}

.primary:hover,
.ghost:hover {
  transform: translateY(-2px);
}

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

.link {
  color: var(--accent-2);
  text-decoration: none;
}

.card-footer {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  font-size: 13px;
}

.hint {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.9);
}

@media (max-width: 840px) {
  .page {
    padding: 48px 20px;
  }
  .row {
    flex-direction: column;
    align-items: flex-start;
  }
}
