:root {
  --bg-dark: #0f1720;
  --bg-overlay: rgba(6, 15, 28, 0.58);
  --text: #0f1720;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.85);
  --card: rgba(255, 255, 255, 0.96);
  --card-border: rgba(255, 255, 255, 0.22);
  --accent: #d49a3a;
  --accent-soft: #e7b965;
  --accent-dark: #b67f28;
  --blue: #2f80ed;
  --blue-dark: #1f6fd8;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.22);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  color: var(--white);
  background:
    linear-gradient(var(--bg-overlay), var(--bg-overlay)),
    url("https://images.unsplash.com/photo-1568605114967-8130f3a36994?auto=format&fit=crop&w=1800&q=80")
    center center / cover no-repeat fixed;
}

img,
input,
select,
button,
textarea {
  max-width: 100%;
}

.brand-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Topbar */
.topbar {
  position: relative;
  z-index: 5;
  width: 100%;
  background: rgba(12, 18, 28, 0.58);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  color: #fff;
  font-size: 18px;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.brand-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.2px;
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.topbar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.topbar-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  text-align: right;
}

/* Page shell */
.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center top, rgba(255, 255, 255, 0.04), transparent 38%),
    linear-gradient(180deg, rgba(3, 7, 18, 0.18), rgba(3, 7, 18, 0.34));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-text {
  text-align: center;
  max-width: 820px;
  margin-bottom: 28px;
}

.main-headline {
  margin: 0;
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.8px;
  text-transform: uppercase;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.subtitle {
  margin: 18px auto 0;
  max-width: 720px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.24);
}

/* Shared card layout */
.form-card-wrap {
  position: relative;
  width: 100%;
  max-width: 620px;
}

.form-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-lg);
}

.form-card-topline {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--accent-soft) 0%,
    var(--accent) 55%,
    var(--accent-dark) 100%
  );
}

.form-card-inner {
  padding: 34px 34px 28px;
  color: var(--text);
}

.form-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  text-align: center;
  color: #16202c;
}

.form-lead {
  margin: 14px auto 24px;
  max-width: 470px;
  text-align: center;
  font-size: 16px;
  line-height: 1.55;
  color: #5d6875;
}

/* Shared form layout */
.form-grid {
  display: grid;
  gap: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.field-label {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1c2734;
}

.field-hint {
  margin-top: 8px;
  font-size: 13px;
  color: #7b8794;
}

.muted {
  font-size: 12px;
  color: #6b7280;
  margin-top: 20px;
}

/* Footer */
.site-footer {
  margin-top: 60px;
  padding: 16px 24px;
  font-size: 12px;
  color: #666;
  background: #f5f5f5;
  border-top: 1px solid #e5e5e5;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-right a {
  margin-left: 16px;
  color: #444;
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}

/* Responsive shared layout */
@media (max-width: 900px) {
  .hero {
    padding: 42px 18px 56px;
  }

  .topbar-inner {
    padding: 14px 18px;
  }

  .form-card-inner {
    padding: 28px 22px 22px;
  }

  .form-title {
    font-size: 28px;
  }

  .subtitle {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px;
    gap: 12px;
  }

  .topbar-right {
    align-items: flex-start;
  }

  .topbar-text {
    text-align: left;
  }

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

  .brand-subtitle {
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    align-items: flex-start;
    padding: 18px 10px 32px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-text {
    width: 100%;
    margin-bottom: 18px;
  }

  .main-headline {
    font-size: 26px;
    line-height: 1.12;
    letter-spacing: -0.4px;
  }

  .subtitle {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.45;
  }

  .form-card-wrap {
    width: 100%;
    max-width: 100%;
  }

  .form-card {
    border-radius: 16px;
  }

  .form-card-inner {
    padding: 18px 12px 16px;
  }

  .form-title {
    font-size: 22px;
    line-height: 1.2;
  }

  .form-lead {
    font-size: 14px;
    line-height: 1.5;
    margin: 12px auto 18px;
  }

  .field-label {
    font-size: 14px;
  }

  .field-hint {
    font-size: 12px;
    margin-top: 6px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-right a {
    margin-left: 0;
    margin-right: 12px;
  }
}

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

.brand-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}

.brand-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.2;
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

.brand-link:hover .brand-logo-wrap {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.brand-logo-wrap {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}