@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../source/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: "Inter";
  src: url("../source/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: "Manrope";
  src: url("../source/fonts/manrope.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../source/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
}

:root {
  --bg: #fbfcfc;
  --surface: #ffffff;
  --text: #0f1720;
  --muted: #6b7682;
  --line: rgba(15, 23, 32, 0.08);
  --field: #f7f9fa;
  --field-line: #d9e1e7;
  --button: #111111;
  --button-text: #ffffff;
  --brand-accent: #30e0da;
  --font-ui: "Inter", "Plus Jakarta Sans", Arial, sans-serif;
  --font-heading: "Manrope", "Plus Jakarta Sans", Arial, sans-serif;
  --font-brand: "Space Grotesk", "Plus Jakarta Sans", Arial, sans-serif;
  font-family: var(--font-ui);
  font-synthesis: none;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(48, 224, 218, 0.08), transparent 24%),
    linear-gradient(180deg, #fcfdfd 0%, #f4f7f8 100%);
}

body {
  min-height: 100svh;
}

body.auth-pending .page {
  visibility: hidden;
}

.page {
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: inherit;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
}

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

.brand img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.brand span {
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.header-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.header-close img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.header-close:hover {
  opacity: 0.63;
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.login-wrap,
.signup-wrap {
  width: min(100%, 420px);
  padding: 0 16px;
}

.hero-copy {
  margin-bottom: 28px;
  text-align: center;
}

.hero-copy h1 {
  font-family: var(--font-heading);
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy p {
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.hero-copy p strong {
  font-weight: 800;
}

.hero-copy a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.hero-copy a:hover {
  text-decoration: underline;
}

.form-card {
  padding: 0;
}

label {
  font-family: var(--font-ui);
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}

input {
  font-family: var(--font-ui);
  width: 100%;
  height: 54px;
  margin: 0 0 18px;
  padding: 0 16px;
  border: 1px solid var(--field-line);
  border-radius: 14px;
  background: var(--field);
  font: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:hover {
  border-color: #b8c8c2;
  background: #f1f6f5;
}

input:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 4px rgba(48, 224, 218, 0.18);
  background: #ffffff;
}

.submit {
  font-family: var(--font-ui);
  width: 100%;
  height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text) !important;
  font: inherit;
  font-size: 15px;
  font-weight: 500 !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-text-fill-color: var(--button-text);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.submit:hover {
  background: #2f2f2f;
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.18);
}

.submit span,
.google-button span {
  font-weight: 500 !important;
}

.or-text {
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  margin: 18px 0 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.google-button,
.provider-button {
  font-family: var(--font-ui);
  width: 100%;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--field-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 500 !important;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.google-button:hover,
.provider-button:hover {
  background: #f1f7f6;
  border-color: #aebdb7;
  box-shadow: 0 14px 30px rgba(15, 23, 32, 0.09);
}

.provider-stack {
  display: grid;
  gap: 12px;
}

.provider-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.provider-icon img,
.google-button img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.help-text {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
}

.help-text a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
}

.help-text a:hover {
  opacity: 0.72;
}

.auth-message {
  min-height: 22px;
  margin: 12px 0 0;
  text-align: center;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 14px;
  color: var(--muted);
}

.auth-message[data-tone="error"] {
  color: #b42318;
}

.auth-message[data-tone="success"] {
  color: #0b6c68;
}

.footer {
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  padding: 16px 20px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: auto;
}

@media (max-width: 640px) {
  .header {
    padding: 18px 18px 16px;
  }

  .main {
    padding: 24px 16px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }
}

@media (max-width: 480px) {
  input {
    font-size: 16px;
  }
}
