:root {
  --zumi-brand-600: #0f766e;
  --zumi-brand-700: #0d645d;
  --zumi-bg-page: #f7f2f0;
  --zumi-bg-surface: #ffffff;
  --zumi-white: #ffffff;
  --zumi-text: #0f172a;
  --zumi-muted: #4b5563;
  --zumi-tertiary: #6b7280;
  --zumi-disabled: #9ca3a0;
  --zumi-border: #d1d5d2;
  --zumi-error-bg: #ffe8e6;
  --zumi-error: #c2412d;
  --zumi-shadow-sm: 0 2px 6px rgba(17, 24, 39, 0.08);
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/landing/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--zumi-bg-page);
}

body.auth-page {
  min-width: 320px;
  margin: 0;
  background: var(--zumi-bg-page);
  color: var(--zumi-text);
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.auth-shell {
  display: flex;
  width: min(100%, 375px);
  min-height: 100vh;
  margin: 0 auto;
  flex-direction: column;
  background: var(--zumi-bg-page);
  overflow: hidden;
}

.auth-page .fg-header {
  position: static;
  display: flex;
  height: 88px;
  align-items: flex-end;
  padding: 0 16px;
  background: var(--zumi-bg-page);
}

.auth-page .fg-header__inner {
  width: 100%;
  max-width: 343px;
  height: 40px;
  padding: 0;
}

.auth-page .fg-logo img {
  display: block;
  width: 55px;
  height: 18px;
  object-fit: contain;
}

.auth-page .fg-iconbtn {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-right: 0;
}

.auth-page .fg-iconbtn svg path {
  stroke: var(--zumi-disabled);
}

.auth-page .fg-menu,
.auth-page .fg-header--menu {
  background: var(--zumi-bg-page);
}

.auth-page .fg-menu__body {
  max-width: 375px;
  padding: 24px 20px;
}

.auth-alert {
  display: none;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 20px;
  background: var(--zumi-error-bg);
  color: var(--zumi-error);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.auth-alert.error,
.auth-alert.success {
  display: flex;
}

.auth-alert.success {
  background: #e5f5f1;
  color: var(--zumi-brand-700);
}

.auth-alert::before {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: currentColor;
  color: var(--zumi-white);
  content: "!";
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
}

.auth-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0;
  padding: 0 16px 32px;
}

.auth-content.is-centered {
  justify-content: flex-start;
}

.auth-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 16px;
  text-align: center;
}

.auth-copy.is-left {
  text-align: left;
}

.auth-title {
  margin: 0;
  color: var(--zumi-text);
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
}

.auth-title-sm {
  margin: 0;
  color: var(--zumi-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
}

.auth-subtitle {
  margin: 0;
  color: var(--zumi-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.auth-form,
.auth-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form {
  margin-top: 0;
  padding-top: 16px;
}

.auth-field {
  width: 100%;
  height: 56px;
  padding: 16px;
  border: 1px solid var(--zumi-border);
  border-radius: 8px;
  outline: 0;
  background: var(--zumi-white);
  box-shadow: none;
  color: var(--zumi-text);
  font: 400 16px/24px Manrope, Inter, system-ui, sans-serif;
}

.auth-field::placeholder {
  color: var(--zumi-disabled);
}

.auth-field:focus {
  border-color: var(--zumi-border);
  box-shadow: none;
}

.auth-field.is-invalid,
.auth-field:invalid.is-touched {
  border-color: #f2aaa4;
  background: #fffafa;
}

.auth-password {
  position: relative;
}

.auth-password .auth-field {
  padding-right: 48px;
}

.auth-eye {
  position: absolute;
  right: 16px;
  top: 50%;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--zumi-disabled);
  transform: translateY(-50%);
  cursor: pointer;
}

.auth-btn {
  display: inline-flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border: 0;
  border-radius: 999px;
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
  cursor: pointer;
}

.auth-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.auth-btn-primary {
  border: 0;
  background: var(--zumi-brand-600);
  box-shadow: var(--zumi-shadow-sm);
  color: var(--zumi-white);
}

.auth-btn-secondary {
  border: 1px solid var(--zumi-border);
  background: var(--zumi-white);
  color: var(--zumi-muted);
}

.auth-btn-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--zumi-disabled);
  font-size: 11px;
  line-height: 16px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--zumi-border);
  content: "";
}

.auth-link-line,
.auth-legal,
.auth-help {
  color: var(--zumi-tertiary);
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

.auth-link-line {
  margin-top: auto;
}

.auth-link-line a,
.auth-legal a,
.auth-help a,
.auth-forgot {
  color: var(--zumi-brand-700);
  font-weight: 700;
  text-decoration: none;
}

.auth-forgot {
  display: inline-flex;
  width: fit-content;
  font-size: 12px;
  line-height: 18px;
}

.auth-legal {
  max-width: 290px;
  margin: 0 auto;
}

.auth-error-text {
  display: none;
  color: var(--zumi-error);
  font-size: 12px;
  line-height: 18px;
}

.auth-error-text.is-visible {
  display: block;
}

.auth-state[hidden] {
  display: none !important;
}

.auth-email-note {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-help {
  margin-top: auto;
  padding-top: 24px;
}

.auth-password-flow .auth-content {
  padding: 0 16px 32px;
}

.auth-password-flow .auth-copy {
  gap: 16px;
  padding: 24px 0 0;
}

.auth-password-flow .auth-title-sm {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.auth-password-flow .auth-subtitle {
  font-size: 14px;
  line-height: 20px;
}

.auth-password-flow .auth-form {
  gap: 16px;
  padding-top: 32px;
}

.auth-password-flow #resetRequestForm {
  gap: 24px;
}

.auth-password-flow .auth-field {
  border-radius: 8px;
}

.auth-password-flow .auth-btn {
  font-weight: 600;
}

.auth-password-flow .auth-email-note {
  gap: 44px;
}

.auth-password-flow .auth-error-text {
  margin-top: 12px;
}

#signupEmail .auth-btn-primary {
  margin-top: 16px !important;
}

@media (min-width: 760px) {
  body.auth-page {
    display: flex;
    justify-content: center;
  }

  .auth-shell {
    min-height: 812px;
  }
}
