:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17212b;
  background: #f2f5f7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body.auth-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f2f5f7;
}

.auth-card {
  width: min(100%, 440px);
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 70px rgba(25, 42, 54, .10), 0 2px 8px rgba(25, 42, 54, .04);
  backdrop-filter: blur(22px);
}

.auth-brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.auth-brand-mark { display: flex; width: 34px; height: 34px; align-items: end; justify-content: center; gap: 3px; padding: 7px; border-radius: 11px; background: #e9f4f1; }
.auth-brand-mark i { display: block; width: 4px; border-radius: 4px; background: #31806d; }
.auth-brand-mark i:nth-child(1) { height: 11px; }
.auth-brand-mark i:nth-child(2) { height: 17px; }
.auth-brand-mark i:nth-child(3) { height: 8px; }
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { font-size: 14px; font-weight: 650; }
.auth-brand small { margin-top: 3px; color: #8a969f; font-size: 9px; font-weight: 650; letter-spacing: .08em; }

.auth-heading { margin: 44px 0 28px; }
.auth-eyebrow { margin: 0 0 10px; color: #698d83; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.auth-heading h1 { margin: 0; font-size: 27px; font-weight: 650; line-height: 1.25; }
.auth-heading > p:last-child { margin: 10px 0 0; color: #687681; font-size: 14px; line-height: 1.6; }

.auth-setup-note { display: grid; gap: 5px; margin-bottom: 20px; padding: 13px 14px; border: 1px solid #dce9e5; border-radius: 10px; background: #f4faf8; }
.auth-setup-note strong { color: #2f6d5e; font-size: 13px; }
.auth-setup-note span { color: #586a67; font-size: 12px; line-height: 1.55; }
.auth-label { display: block; margin-bottom: 8px; color: #394852; font-size: 12px; font-weight: 600; }
.auth-input { width: 100%; height: 46px; margin-bottom: 13px; padding: 0 13px; border: 1px solid #d6dee2; border-radius: 9px; outline: none; background: #fff; color: #17212b; font: inherit; font-size: 14px; }
.auth-input:focus { border-color: #5a9b88; box-shadow: 0 0 0 3px rgba(61, 136, 115, .13); }
.auth-primary-button { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 9px; background: #397d6b; color: #fff; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; transition: background .16s ease, transform .16s ease; }
.auth-primary-button:hover { background: #2f6d5e; }
.auth-primary-button:active { transform: translateY(1px); }
.auth-primary-button:focus-visible { outline: 3px solid rgba(61, 136, 115, .28); outline-offset: 2px; }
.auth-primary-button:disabled { cursor: wait; opacity: .68; }
.auth-primary-button svg { width: 20px; height: 20px; flex: 0 0 auto; }
.auth-status { min-height: 20px; margin: 14px 0 0; color: #56656e; font-size: 12px; line-height: 1.5; }
.auth-status[data-error="true"] { color: #ad4242; }
.auth-footnote { margin: 26px 0 0; padding-top: 17px; border-top: 1px solid #edf0f2; color: #87939a; font-size: 11px; line-height: 1.6; }

@media (max-width: 480px) {
  body.auth-page { padding: 16px; }
  .auth-card { padding: 28px 22px; border-radius: 14px; }
  .auth-heading { margin-top: 36px; }
}

