/* White Botanical Calm sign-in surface; the authenticated app keeps its own shell. */
body .auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 16px;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: auto;
  align-items: safe center;
  background: #fff;
  color: #25282d;
}

.auth-botanicals {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("/assets/login-botanicals.webp") center / cover no-repeat;
  opacity: .55;
  pointer-events: none;
}

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

body .auth-card {
  width: 100%;
  padding: 36px;
  border: 1px solid #e2e6ed;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.auth-brand {
  margin: 0 0 23px;
  text-align: center;
}

.auth-brand img { display: block; width: 174px; height: auto; margin: 0 auto; }
.auth-brand p {
  margin: 1px 0 0;
  color: #637085;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.4;
}

body .auth-card h1 {
  color: #25282d;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.25;
}

body .auth-card .page-intro {
  margin: 7px 0 0;
  color: #647188;
  font-size: 14px;
  line-height: 1.5;
}

body .auth-card form {
  display: grid;
  gap: 0;
  margin-top: 29px;
}
body .auth-card form[hidden], body .auth-card .demo-login[hidden] { display: none; }
body .auth-card .demo-login { display: grid; gap: 12px; margin-top: 24px; font-size: 13px; line-height: 1.5; }
body .auth-card .demo-login p { margin: 0; }
body .auth-card .demo-login-context { color: #31577d; font-size: 12px; font-weight: 700; }
body .auth-card a.primary-button { display: flex; align-items: center; justify-content: center; min-height: 44px; color: #fff; text-decoration: none; }
body .auth-card a.primary-button[hidden] { display: none; }
body .auth-card .demo-login button[hidden] { display: none; }
body .auth-card .demo-login .secondary-button { min-height: 44px; border-radius: 999px; }

body .auth-card label {
  display: block;
  margin: 0 0 7px;
  color: #25282d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

body .auth-card input {
  width: 100%;
  min-height: 46px;
  margin: 0 0 19px;
  padding: 0 13px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
  color: #25282d;
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

body .auth-card input:hover { border-color: #bcc6d3; }
body .auth-card input:focus-visible {
  border-color: #3c6bc2;
  box-shadow: 0 0 0 3px #3c6bc226;
}

.password-field { position: relative; margin-bottom: 19px; }
body .auth-card .password-field input { margin-bottom: 0; padding-right: 54px; }
.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: transparent;
  cursor: pointer;
}
.password-toggle:hover { background: #f5f7f9; }
.password-toggle:focus-visible { outline: 2px solid #3c6bc2; outline-offset: 2px; }
.password-toggle img { display: block; width: 18px; height: 18px; opacity: .65; }

body .auth-card .form-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid #f3c8cb;
  border-radius: 8px;
  background: #fff3f3;
  color: #9e3434;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

body .auth-card .form-error[hidden] { display: none; }

body .auth-card .primary-button {
  width: 100%;
  min-height: 48px;
  border: 1px solid #171c27;
  border-radius: 999px;
  background: #171c27;
  box-shadow: none;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 150ms ease, border-color 150ms ease;
}

body .auth-card .primary-button:hover:not(:disabled) {
  border-color: #2d3544;
  background: #2d3544;
  transform: none;
}

body .auth-card .primary-button:focus-visible {
  outline: 2px solid #3c6bc2;
  outline-offset: 2px;
}

body .auth-card .primary-button:disabled { opacity: .6; cursor: default; }

body .auth-card .auth-foot {
  margin: 23px 0 0;
  color: #6d737c;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

@media (max-width: 700px) {
  .auth-botanicals {
    background-image: url("/assets/login-botanicals.webp"), url("/assets/login-botanicals.webp");
    background-size: 640px auto, 640px auto;
    background-position: left -50px top -35px, right -80px bottom -60px;
    background-repeat: no-repeat;
    opacity: .38;
  }
  body .auth-card { padding: 28px; }
  .auth-brand { margin-bottom: 17px; }
  .auth-brand img { width: 148px; }
}

@media (max-width: 480px) {
  body .auth-page { padding: 18px 14px; }
  body .auth-card { padding: 24px 20px; }
  body .auth-card h1 { font-size: 24px; }
  body .auth-card .page-intro { font-size: 13px; }
  body .auth-card form { margin-top: 22px; }
  body .auth-card input { margin-bottom: 16px; font-size: 16px; }
  .password-field { margin-bottom: 16px; }
  body .auth-card .auth-foot { margin-top: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  body .auth-card input,
  body .auth-card .primary-button { transition: none; }
}

/* Sketch board account surfaces; all three auth routes share this treatment. */
@font-face {
  font-family: Inter;
  src: url('/assets/fonts/inter/InterVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
body .auth-page {
  background: #dff2ff url('/assets/sketch/sketch-grid.svg') repeat 0 0 / 24px 24px;
  color: #112742;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.auth-botanicals { opacity: .16; }
body .auth-card {
  border: 1.5px solid #27333d;
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 3px 0 #27333d30;
}
.auth-brand p { color: #496989; }
body .auth-card h1 { color: #112742; font-size: 28px; font-weight: 600; }
body .auth-card .page-intro,
body .auth-card .auth-foot { color: #496989; }
body .auth-card .auth-lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 8px;
  border-radius: 8px; vertical-align: middle;
}
body .auth-card .auth-lang:focus-visible { outline: 2px solid #2967d2; outline-offset: 2px; }
body .auth-card :is(.auth-foot,.form-success) a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 6px;
  border-radius: 8px; vertical-align: middle;
}
body .auth-card :is(.auth-foot,.form-success) a:focus-visible { outline: 2px solid #2967d2; outline-offset: 2px; }
body .auth-card label { color: #112742; }
body .auth-card input { border-color: #94aec8; background: #fffefa; color: #112742; }
body .auth-card input:hover { border-color: #496989; }
body .auth-card input:focus-visible,
.password-toggle:focus-visible,
body .auth-card .primary-button:focus-visible { outline: 2px solid #2967d2; outline-offset: 2px; box-shadow: none; }
body .auth-card .password-toggle { top: 1px; right: 1px; width: 44px; height: 44px; border-radius: 0 7px 7px 0; }
body .auth-card .password-toggle:focus-visible { outline-offset: -3px; }
body .auth-card .primary-button { border-color: #27333d; background: #27333d; }
body .auth-card .primary-button:hover:not(:disabled) { border-color: #112742; background: #112742; }
body .auth-card .form-success { padding: 18px 0 2px; color: #112742; font-size: 13px; line-height: 1.5; }
body .auth-card a { color: #075ac7; }
@media (max-width: 480px) {
  body .auth-card h1 { font-size: 24px; }
}
