@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-primary: #0077be;
  --color-primary-dark: #005a93;
  --color-cta: #ffc845;
  --color-cta-hover: #ffb020;
  --color-warm-cream: #faf6f0;
  --color-warm-terracotta: #d97b5f;
  --color-ink-deep: #0b1e3f;
  --color-mist-gray: #e8ecf0;
  --color-sunrise: #ffe5b4;
  --color-text: #1a1a2e;
  --color-text-muted: #5a5a6e;
  --color-bg: #ffffff;
  --color-bg-alt: #f5fafc;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --shadow-editorial: 0 2px 6px rgba(11, 30, 63, 0.06), 0 32px 80px rgba(11, 30, 63, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.sign-in-page {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

.atmosphere {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom right, var(--color-warm-cream), #ffffff, var(--color-bg-alt));
}

.atmosphere::before,
.atmosphere::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: -1;
}

.atmosphere::before {
  width: 520px;
  height: 520px;
  top: -160px;
  left: -140px;
  background: radial-gradient(circle, var(--color-sunrise) 0%, transparent 70%);
}

.atmosphere::after {
  width: 420px;
  height: 420px;
  bottom: -120px;
  right: -120px;
  background: radial-gradient(circle, rgba(217, 123, 95, 0.28) 0%, transparent 70%);
}

.wrap {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

@media (min-width: 640px) {
  .wrap {
    padding: 5rem 1.5rem;
  }
}

.head {
  text-align: center;
  margin-bottom: 2rem;
}

.kicker {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary-dark);
  margin: 0 0 1rem;
}

@media (min-width: 768px) {
  .kicker {
    font-size: 0.875rem;
  }
}

h1 {
  font-family: var(--font-display) !important;
  font-variation-settings: "opsz" 144;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-ink-deep);
  font-size: 2.25rem;
  line-height: 1.04;
  margin: 0 0 1rem;
}

@media (min-width: 640px) {
  h1 {
    font-size: 3rem;
  }
}

.editorial-emphasis {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--color-primary);
}

.subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-mist-gray);
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-editorial);
}

@media (min-width: 640px) {
  .card {
    padding: 2rem;
  }
}

.card > * + * {
  margin-top: 1.25rem;
}

.field {
  display: block;
}

.field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-ink-deep);
}

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-mist-gray);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder {
  color: #9aa0ad;
}

.input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 119, 190, 0.20);
}

.remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  user-select: none;
  cursor: pointer;
}

.remember input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 1px solid var(--color-mist-gray);
  accent-color: var(--color-primary);
  cursor: pointer;
}

.btn {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-cta);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background: var(--color-cta-hover);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.40);
}

.forgot-row {
  padding-top: 0.5rem;
  text-align: center;
}

.forgot {
  font-size: 0.875rem;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(0, 119, 190, 0.40);
}

.forgot:hover {
  color: var(--color-primary-dark);
  text-decoration-color: var(--color-primary);
}

.legal {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
  margin: 2rem 0 0;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.legal a {
  color: var(--color-primary);
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}
