:root {
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --white: #ffffff;
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: Vazirmatn, Tahoma, 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 15% -5%, rgba(59, 130, 246, 0.38) 0%, transparent 58%),
    radial-gradient(900px 500px at 100% 0%, rgba(96, 165, 250, 0.28) 0%, transparent 52%),
    radial-gradient(800px 480px at 50% 100%, rgba(37, 99, 235, 0.22) 0%, transparent 55%),
    linear-gradient(165deg, #bfdbfe 0%, #dbeafe 38%, #e0f2fe 72%, #eff6ff 100%);
}

.shell {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card {
  width: 100%;
  max-width: 26rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(30, 64, 175, 0.18);
  border: 1px solid rgba(147, 197, 253, 0.65);
  backdrop-filter: blur(8px);
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #93c5fd 0%, #60a5fa 50%, #3b82f6 100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #60a5fa, #3b82f6);
  box-shadow: 0 6px 14px rgba(59, 130, 246, 0.25);
}

.brand h1 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: #1e3a8a;
  letter-spacing: -0.02em;
}

.sub {
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

.input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #bfdbfe;
  background: #f0f9ff;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.input:focus {
  outline: none;
  border-color: #93c5fd;
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.errors {
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.8rem;
  line-height: 1.5;
}

.field-errors {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #b91c1c;
}

.submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.22);
  transition: transform 0.08s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.submit:hover {
  filter: brightness(1.02);
  box-shadow: 0 10px 22px rgba(59, 130, 246, 0.28);
}

.submit:active {
  transform: translateY(1px);
}

.footer-note {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
