:root {
  --soocker-amber: #f6ab00;
  --soocker-amber-hover: #d89400;
  --soocker-cyan: #00a7cb;
  --soocker-cyan-soft: #dff6fb;
  --soocker-navy: #0b3244;
  --soocker-text: #466674;
  --soocker-muted: #78909b;
  --soocker-line: #d8e6ec;
  --soocker-line-soft: #eaf1f4;
  --soocker-bg: #edf8fc;
  --soocker-white: #ffffff;
  --soocker-success: #087c3c;
  --soocker-danger: #b42318;
  --soocker-shadow: 0 24px 64px rgba(11, 50, 68, 0.12);
  --soocker-radius-lg: 28px;
  --soocker-radius-md: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color-scheme: light;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--soocker-bg);
  color: var(--soocker-navy);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--soocker-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.auth-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--soocker-navy);
  color: var(--soocker-white);
  transform: translateY(-160%);
}

.auth-skip:focus {
  transform: translateY(0);
}

.auth-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--soocker-line-soft);
  background: rgba(255, 255, 255, 0.96);
}

.auth-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.035em;
  color: var(--soocker-amber-hover);
}

.auth-logo span {
  color: var(--soocker-cyan);
}

.auth-page {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: 56px 24px;
}

.auth-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  overflow: hidden;
  border: 1px solid var(--soocker-line);
  border-radius: var(--soocker-radius-lg);
  background: var(--soocker-white);
  box-shadow: var(--soocker-shadow);
}

.auth-story {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px;
  background: var(--soocker-navy);
  color: var(--soocker-white);
}

.auth-story::before,
.auth-story::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  pointer-events: none;
}

.auth-story::before {
  width: 250px;
  height: 250px;
  top: -92px;
  right: -100px;
  background: rgba(0, 167, 203, 0.22);
}

.auth-story::after {
  width: 170px;
  height: 170px;
  left: -74px;
  bottom: -78px;
  background: rgba(246, 171, 0, 0.18);
}

.auth-story > * {
  position: relative;
  z-index: 1;
}

.auth-story__brand {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #ffc443;
}

.auth-story__brand span {
  margin-left: 7px;
  color: #59d6ef;
}

.auth-story__eyebrow {
  margin-top: 62px;
  color: #8fdcee;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.auth-story h1 {
  margin: 16px 0 0;
  color: var(--soocker-white);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.auth-story > p {
  max-width: 440px;
  margin: 18px 0 0;
  color: #c6dee8;
  font-size: 16px;
  line-height: 1.9;
}

.auth-points {
  display: grid;
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.auth-points li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--soocker-radius-md);
  background: rgba(255, 255, 255, 0.055);
  font-size: 13px;
  font-weight: 700;
}

.auth-points i {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soocker-amber);
  color: var(--soocker-navy);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 54px;
}

.auth-panel__kicker {
  color: #966400;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.auth-panel h2 {
  margin: 12px 0 0;
  color: var(--soocker-navy);
  font-size: 34px;
  line-height: 1.35;
}

.auth-panel__intro {
  margin: 10px 0 0;
  color: var(--soocker-text);
  font-size: 14.5px;
  line-height: 1.75;
}

.auth-form {
  display: grid;
  gap: 19px;
  margin-top: 32px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field label {
  color: var(--soocker-navy);
  font-size: 13.5px;
  font-weight: 800;
}

.auth-field input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1.5px solid var(--soocker-line);
  border-radius: var(--soocker-radius-md);
  background: var(--soocker-white);
  color: var(--soocker-navy);
  font-size: 15px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.auth-field input::placeholder {
  color: #9aadb6;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--soocker-amber);
  box-shadow: 0 0 0 4px rgba(246, 171, 0, 0.12);
}

.auth-password {
  position: relative;
}

.auth-password input {
  padding-right: 70px;
}

.auth-password button {
  position: absolute;
  top: 7px;
  right: 8px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #00728c;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.auth-password button:hover {
  background: var(--soocker-cyan-soft);
}

.auth-form__meta {
  display: flex;
  justify-content: flex-end;
  margin-top: -5px;
}

.auth-form__meta a,
.auth-back {
  color: #00728c;
  font-size: 13px;
  font-weight: 800;
}

.auth-form__meta a:hover,
.auth-back:hover {
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--soocker-radius-md);
  background: var(--soocker-amber);
  color: var(--soocker-navy);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(246, 171, 0, 0.22);
  transition: background-color 0.18s, transform 0.18s;
}

.auth-submit:hover {
  background: var(--soocker-amber-hover);
  transform: translateY(-1px);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-submit:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.auth-security {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--soocker-line-soft);
  color: var(--soocker-text);
  font-size: 12px;
  line-height: 1.65;
}

.auth-security i {
  color: var(--soocker-success);
  font-style: normal;
  font-weight: 900;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
}

.auth-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #f4b4ad;
  border-radius: 10px;
  background: #fff2f0;
  color: var(--soocker-danger);
  font-size: 12.5px;
  line-height: 1.6;
}

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

.auth-dialog[hidden] {
  display: none;
}

.auth-dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 50, 68, 0.48);
}

.auth-dialog__panel {
  width: min(360px, 100%);
  padding: 28px;
  border-radius: 18px;
  background: var(--soocker-white);
  box-shadow: var(--soocker-shadow);
  text-align: center;
}

.auth-dialog__title {
  margin: 0;
  color: var(--soocker-navy);
  font-size: 18px;
  font-weight: 900;
}

.auth-dialog__message {
  margin: 12px 0 0;
  color: var(--soocker-text);
  font-size: 14px;
  line-height: 1.7;
}

.auth-dialog__confirm {
  min-width: 112px;
  margin-top: 22px;
  padding: 10px 18px;
  border: 0;
  border-radius: 9px;
  background: var(--soocker-amber);
  color: var(--soocker-navy);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.auth-dialog__confirm:hover {
  background: var(--soocker-amber-hover);
}

.auth-logo:focus-visible,
.auth-form__meta a:focus-visible,
.auth-back:focus-visible,
.auth-password button:focus-visible,
.auth-submit:focus-visible {
  outline: 3px solid rgba(0, 167, 203, 0.38);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .auth-page {
    align-items: start;
    padding-top: 36px;
  }

  .auth-shell {
    max-width: 620px;
    grid-template-columns: 1fr;
  }

  .auth-story {
    min-height: 0;
    padding: 42px;
  }

  .auth-story__eyebrow {
    margin-top: 36px;
  }

  .auth-panel {
    padding: 46px 42px;
  }
}

@media (max-width: 600px) {
  .auth-header {
    height: 66px;
  }

  .auth-page {
    min-height: calc(100vh - 66px);
    padding: 22px 14px;
  }

  .auth-shell {
    border-radius: 20px;
  }

  .auth-story {
    padding: 32px 24px;
  }

  .auth-story h1 {
    font-size: 29px;
  }

  .auth-story > p {
    font-size: 14.5px;
  }

  .auth-points {
    display: none;
  }

  .auth-panel {
    padding: 34px 24px;
  }

  .auth-panel h2 {
    font-size: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
