/* Local design library components/auth-page.css — Login 11 / Register 11. */
body.show-account,
body.show-join-background,
#login-page {
  isolation: isolate;
  min-height: 100vh;
  background-color: #071a13;
  background-image:
    radial-gradient(ellipse 58% 31% at 14% 30%, rgb(0 255 136 / .46) 0 24%, rgb(0 155 88 / .38) 48%, transparent 76%),
    radial-gradient(ellipse 49% 36% at 88% 17%, rgb(122 255 178 / .46) 0 26%, rgb(0 174 100 / .44) 53%, transparent 78%),
    radial-gradient(ellipse 54% 39% at 55% 58%, rgb(0 255 136 / .40) 0 24%, rgb(0 103 66 / .48) 49%, transparent 78%),
    radial-gradient(ellipse 50% 34% at 4% 94%, rgb(0 122 75 / .76) 0 30%, transparent 77%),
    radial-gradient(ellipse 50% 43% at 100% 95%, rgb(122 255 178 / .38) 0 25%, rgb(0 113 67 / .62) 52%, transparent 80%),
    linear-gradient(137deg, #0b3825 3%, #09291c 47%, #06170f 100%);
  background-attachment: fixed;
}
body.show-account::before,
body.show-join-background::before,
body.show-account::after,
body.show-join-background::after,
#login-page::before,
#login-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
}
body.show-account::before,
body.show-join-background::before,
#login-page::before {
  inset: -12% -18%;
  opacity: .56;
  background:
    radial-gradient(ellipse 58% 14% at 45% 22%, rgb(209 255 227 / .62), transparent 72%),
    radial-gradient(ellipse 65% 17% at 64% 49%, rgb(0 255 136 / .34), transparent 73%),
    radial-gradient(ellipse 52% 13% at 36% 78%, rgb(185 255 215 / .50), transparent 76%);
  filter: blur(12px);
  transform: rotate(-18deg);
}
body.show-account::after,
body.show-join-background::after,
#login-page::after {
  inset: 8% -23% 16% 18%;
  border: 32px solid rgb(117 255 176 / .20);
  border-radius: 46% 54% 51% 49% / 54% 41% 59% 46%;
  filter: blur(20px);
  transform: rotate(24deg);
}
.auth-card {
  --auth-panel: #fff;
  --auth-ink: #181a1d;
  --auth-muted: #73777e;
  --auth-line: #e2e4e8;
  --auth-input: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(100%, 920px);
  min-height: 548px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--auth-line) 86%, transparent);
  border-radius: 14px;
  background: var(--auth-panel);
  box-shadow: 0 10px 28px rgb(0 0 0 / .05);
}
:where([data-theme="dark"]) .auth-card {
  --auth-panel: #191f29;
  --auth-ink: #f5f7fb;
  --auth-muted: #a8b1be;
  --auth-line: #343e4c;
  --auth-input: #1a202a;
  border-color: #323c49;
  box-shadow: 0 14px 40px rgb(0 0 0 / .22);
}
.auth-visual {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 548px;
  isolation: isolate;
  overflow: hidden;
  background: #071a13 url("./animations/kaigan-auth-desktop-1080x1440.jpg") center / cover no-repeat;
}
.auth-visual__animation { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.auth-visual__animation :is(video, canvas, svg) { display: block; width: 100%; height: 100%; }
.auth-visual__animation video { object-fit: cover; object-position: center; opacity: 0; }
.auth-visual__video.is-playing { opacity: 1; }
.auth-form-pane { display: grid; min-width: 0; align-items: center; padding: 38px clamp(27px, 4vw, 46px); background: var(--auth-panel); color: var(--auth-ink); }
.auth-form-content { width: 100%; max-width: 370px; margin-inline: auto; }
.auth-heading { margin-bottom: 22px; }
.auth-heading h2 { margin: 0; font-size: clamp(23px, 2.1vw, 27px); font-weight: 670; line-height: 1.2; letter-spacing: -.035em; }
.auth-heading p { margin: 8px 0 0; color: var(--auth-muted); font-size: 13px; line-height: 1.55; }
.auth-social { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.auth-social :is(button, a) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; border: 1px solid var(--auth-line); border-radius: 8px; background: var(--auth-input); color: var(--auth-ink); font: inherit; font-size: 13px; font-weight: 590; cursor: pointer; transition: background-color .16s ease, border-color .16s ease; }
.auth-social :is(button, a):hover { background: color-mix(in srgb, var(--auth-input) 78%, var(--auth-muted)); border-color: color-mix(in srgb, var(--auth-line) 72%, var(--auth-muted)); }
.auth-social svg { width: 17px; height: 17px; flex: 0 0 auto; }
.auth-social img { display: block; width: 20px; height: 20px; flex: 0 0 auto; border-radius: 5px; object-fit: cover; }
.auth-divider { display: flex; align-items: center; gap: 11px; margin: 19px 0 18px; color: var(--auth-muted); font-size: 12px; white-space: nowrap; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--auth-line); }
.auth-form { display: grid; gap: 15px; }
.auth-field { display: grid; min-width: 0; gap: 7px; color: var(--auth-ink); font-size: 12px; font-weight: 590; }
.auth-field__heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-field__heading a, .auth-switch a { color: #317fdf; font-weight: 570; }
:where([data-theme="dark"]) .auth-field__heading a, :where([data-theme="dark"]) .auth-switch a { color: #79b5ff; }
.auth-input { display: flex; align-items: center; gap: 9px; min-height: 39px; padding: 0 10px; border: 1px solid var(--auth-line); border-radius: 8px; background: var(--auth-input); color: var(--auth-muted); transition: border-color .16s ease, box-shadow .16s ease; }
.auth-input:focus-within { border-color: #418ae5; box-shadow: 0 0 0 2px rgb(49 127 223 / .12); }
.auth-input > svg { width: 17px; height: 17px; flex: 0 0 auto; }
.auth-input input { width: 100%; min-width: 0; height: 37px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--auth-ink); font: inherit; font-size: 12px; font-weight: 430; }
.auth-input input::placeholder { color: #888e97; opacity: 1; }
.auth-password-toggle { display: grid; flex: 0 0 auto; width: 25px; height: 29px; place-items: center; padding: 0; border: 0; background: transparent; color: var(--auth-muted); cursor: pointer; }
.auth-password-toggle svg { width: 17px; height: 17px; }
.auth-check { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--auth-ink); font-size: 12px; font-weight: 470; cursor: pointer; }
.auth-check input { width: 14px; height: 14px; margin: 0; accent-color: #3684e7; }
.auth-submit { min-height: 39px; margin-top: 1px; border: 1px solid #2e7cde; border-radius: 8px; background: #3787e8; color: #fff; font: inherit; font-size: 12px; font-weight: 620; cursor: pointer; transition: background-color .16s ease, transform .16s ease; }
.auth-submit:hover { background: #2776d6; }
.auth-submit:active { transform: translateY(1px); }
.auth-switch { margin: 20px 0 0; color: var(--auth-muted); text-align: center; font-size: 12px; line-height: 1.5; }
.auth-copyright { margin: 17px 0 0; color: var(--auth-muted); text-align: center; font-size: 10px; }
.auth-status { min-height: 0; margin: 0; color: var(--auth-muted); text-align: center; font-size: 11px; line-height: 1.45; }
.auth-status:not(:empty) { margin-top: 9px; }
@media (max-width: 860px) {
  .auth-card { min-height: 500px; }
  .auth-visual { min-height: 500px; }
  .auth-form-pane { padding-inline: 25px; }
}
@media (max-width: 680px) {
  .auth-card { grid-template-columns: minmax(0, 1fr); }
  .auth-visual {
    min-height: 0;
    aspect-ratio: 3 / 2;
    background-image: url("./animations/kaigan-auth-mobile-1080x720.jpg");
  }
  .auth-form-pane { padding: 28px 22px 25px; }
}
@media (max-width: 400px) {
  .auth-form-pane { padding-inline: 17px; }
  .auth-social { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) { .auth-social :is(button, a), .auth-input, .auth-submit { transition: none; } }

/* Login 11 and Register 11 use the same shell. Account controls use the Kaigan palette. */
.auth-card { --auth-brand: var(--accent, #00ff88); --auth-action-text: var(--accent-on, #082012); }
.auth-card [hidden] { display: none !important; }
.auth-card .auth-submit { border-color: var(--auth-brand); background: var(--auth-brand); color: var(--auth-action-text); }
.auth-card .auth-submit:hover:not(:disabled) { filter: brightness(.9); }
.auth-card .auth-submit:disabled { cursor: wait; opacity: .65; }
.auth-card .auth-switch a, .auth-card .auth-field__heading a { color: var(--auth-brand); }
.auth-card .auth-input:focus-within { border-color: var(--auth-brand); box-shadow: none; }
.auth-card .auth-social a { text-decoration: none; }
.auth-card .auth-inputline { display: flex; gap: 8px; min-width: 0; }
.auth-card .auth-inputline .auth-input { flex: 1; }
.auth-card .auth-inputline button { flex: none; min-height: 39px; border: 1px solid var(--auth-line); border-radius: 8px; padding: 0 8px; background: var(--auth-input); color: var(--auth-ink); cursor: pointer; }
.auth-card .auth-scan { margin-top: 12px; }
.auth-card .auth-step { color: var(--auth-muted); font-size: 12px; line-height: 1.5; }
.auth-card .auth-switch + .auth-switch { margin-top: 10px; }
.auth-card .auth-help { margin-bottom: 12px; }
.auth-card .auth-form > div > .auth-field + .auth-field { margin-top: 15px; }
@media (max-width: 680px) {
  .auth-card .auth-submit, .auth-card .auth-input, .auth-card .auth-social :is(button, a) { min-height: 44px; }
  .auth-card .auth-input input { font-size: 16px; }
}
