:root {
  color-scheme: light;
  font-family: "Plus Jakarta Sans", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6fb;
  color: #111827;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; }

.auth-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background: #000000;
}

.color-bends-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000000;
  pointer-events: auto;
}

.color-bends-container.is-fallback { background: #000000; }

.auth-shell { position: relative; z-index: 1; width: min(100%, 460px); }

.auth-card {
  padding: 55px 42px 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

.auth-brand { display: flex; align-items: center; justify-content: center; margin-bottom: 36px; }
.auth-brand-icon { width: 145px; flex: 0 0 145px; }
.auth-brand-icon img { display: block; width: 100%; height: auto; }
.auth-brand-wordmark { display: grid; align-content: center; color: #111827; line-height: 1; }
.auth-brand-wordmark strong { font-size: 31px; font-weight: 800; letter-spacing: .02em; }
.auth-brand-wordmark small { margin-top: 5px; font-size: 13px; font-weight: 800; letter-spacing: .08em; }

.auth-heading { text-align: center; }
.auth-kicker { color: #7351e8; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; }
.auth-heading h1 { margin: 10px 0 8px; font-size: 28px; letter-spacing: 0; line-height: 1.2; color: #fff; }
.auth-heading p { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 14px; line-height: 1.6; }

.auth-form { display: grid; gap: 17px; margin-top: 30px; }
.auth-field { display: grid; gap: 8px; }
.auth-field span { color: rgba(255, 255, 255, 0.7); font-size: 12px; font-weight: 700; }
.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  outline: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  font: inherit;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.auth-field input:focus { border-color: #1AD549; background: rgba(0, 0, 0, 0.5); box-shadow: 0 0 0 4px rgba(26, 213, 73, 0.15); }

.auth-submit {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 5px;
  border: 1px solid #1AD549;
  border-radius: 10px;
  cursor: pointer;
  color: #1AD549;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.auth-submit:hover:not(:disabled) { background: #1AD549; color: #fff; box-shadow: 0 9px 22px rgba(26, 213, 73, .2); transform: translateY(-1px); }
.auth-submit:disabled { cursor: wait; opacity: .72; }
.auth-submit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.auth-submit.is-loading { pointer-events: none; }

.auth-alert { padding: 11px 13px; border-radius: 9px; font-size: 12px; line-height: 1.45; }
.auth-alert-error { margin-top: 18px; border: 1px solid #f4cdd2; color: #b53145; background: #fff4f5; }
.auth-form .auth-alert-error { margin-top: -2px; }
.is-hidden { display: none !important; }

.auth-security-note { margin: 25px 0 0; color: #9aa3b2; text-align: center; font-size: 11px; }

@media (max-width: 520px) {
  .auth-card { padding: 32px 22px 25px; }
  .auth-heading h1 { font-size: 25px; }
}
