:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --text: #121212;
  --muted: #676767;
  --line: #e7e7ea;
  --red: #c91818;
  --red-hover: #a90f0f;
  --green: #147a3f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
  --radius-xl: 28px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

input,
button {
  font: inherit;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(201, 24, 24, 0.07), transparent 35%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.05), transparent 30%),
    linear-gradient(180deg, #fbfbfc 0%, #eef1f4 100%);
}

.coming-soon-page {
  overflow: hidden;
}

.modal-wrap {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.coming-soon-modal {
  position: relative;
  width: min(100%, 700px);
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.modal-inner {
  padding: 36px 32px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.coming-soon-modal h1,
.auth-card h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  font-weight: 800;
  color: #000;
}

.coming-soon-modal h1 {
  text-align: left;
  margin-bottom: 18px;
}

p {
  margin: 0 0 16px;
  font-size: 1.05rem;
  line-height: 1.68;
}

.newsletter-form,
.login-form {
  display: grid;
  gap: 12px;
}

.newsletter-form {
  grid-template-columns: 1fr auto;
  margin: 26px 0 12px;
}

.newsletter-form input,
.login-form input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.newsletter-form input:focus,
.login-form input:focus {
  border-color: rgba(201, 24, 24, 0.5);
  box-shadow: 0 0 0 4px rgba(201, 24, 24, 0.12);
}

.newsletter-form button,
.primary-button {
  border: 0;
  border-radius: var(--radius-lg);
  min-height: 54px;
  padding: 0 24px;
  font-weight: 700;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.newsletter-form button:hover,
.primary-button:hover {
  background: var(--red-hover);
}

.newsletter-form button:active,
.primary-button:active {
  transform: translateY(1px);
}

.form-status {
  min-height: 1.5em;
  margin-bottom: 10px;
  font-size: 0.96rem;
  color: var(--muted);
}

.form-status.is-success {
  color: var(--green);
}

.form-status.is-error {
  color: #b11212;
}

.subtext {
  margin-bottom: 0;
  color: var(--muted);
}

.auth-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f5f6f8 100%);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.auth-card {
  width: min(100%, 720px);
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding: 36px 30px 30px;
}

.brand-logo {
  width: min(220px, 48vw);
  height: auto;
  margin: 26px auto 28px;
}

.login-form {
  max-width: 520px;
  margin: 0 auto;
}

.field-label {
  font-size: 0.98rem;
  font-weight: 700;
  color: #111;
  margin-top: 4px;
}

.primary-button {
  margin-top: 8px;
}

.auth-status {
  text-align: center;
  margin: 14px 0 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .modal-inner {
    padding: 28px 20px;
  }

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

  .newsletter-form button,
  .primary-button {
    width: 100%;
  }

  .auth-card {
    padding: 28px 18px 22px;
    border-radius: 26px;
  }

  p {
    font-size: 1rem;
  }
}
