:root {
  --auth-bg: #fbf4e8;
  --auth-surface: rgba(255, 250, 242, 0.88);
  --auth-primary: #ec7600;
  --auth-primary-deep: #d95f00;
  --auth-text: #2b160e;
  --auth-muted: #6d6258;
  --auth-border: #eadccb;
  --auth-shadow: rgba(75, 45, 20, 0.14);
}

.site-header-public {
  display: none;
}

.auth-page-shell {
  min-height: 100dvh;
  color: var(--auth-text);
  background:
    radial-gradient(circle at 64% 15%, rgba(255, 215, 150, 0.42), transparent 29%),
    radial-gradient(circle at 12% 78%, rgba(236, 118, 0, 0.13), transparent 28%),
    linear-gradient(180deg, #fff9ef 0%, var(--auth-bg) 100%);
  overflow-x: hidden;
}

.auth-nav {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
}

.auth-brand__icon {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  box-shadow: 0 12px 24px rgba(75, 45, 20, 0.18);
}

.auth-brand span {
  display: grid;
  gap: 2px;
}

.auth-brand strong {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.auth-brand small {
  color: var(--auth-muted);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.auth-nav__link {
  height: 46px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cdb9a8;
  border-radius: 999px;
  color: var(--auth-text);
  background: rgba(255, 250, 242, 0.72);
  text-decoration: none;
  font-weight: 900;
}

.auth-layout {
  width: min(100%, 1180px);
  min-height: calc(100dvh - 110px);
  margin: 0 auto;
  padding: clamp(18px, 4dvh, 48px) clamp(18px, 4vw, 48px) 64px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 500px);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
}

.auth-layout--centered {
  min-height: calc(100dvh - 130px);
}

.auth-layout--centered .auth-copy h1 {
  font-size: clamp(42px, 4.2vw, 60px);
  letter-spacing: -0.05em;
}

.auth-copy {
  max-width: 620px;
}

.auth-kicker {
  margin: 0 0 18px;
  color: var(--auth-primary);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.22em;
}

.auth-copy h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.07em;
  font-weight: 1000;
}

.auth-copy h1 span {
  color: var(--auth-primary);
}

.auth-copy > p:not(.auth-kicker) {
  max-width: 560px;
  margin: 24px 0 0;
  color: #51453d;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.75;
  font-weight: 650;
}

.auth-card {
  width: 100%;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(234, 220, 203, 0.9);
  border-radius: 28px;
  background: var(--auth-surface);
  box-shadow: 0 26px 60px var(--auth-shadow);
  backdrop-filter: blur(14px);
}

.auth-card__header {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.auth-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff1df;
  color: var(--auth-primary);
  font-size: 24px;
  font-weight: 950;
}

.auth-card h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.auth-card p {
  margin: 0;
  color: var(--auth-muted);
  font-weight: 650;
}

.auth-card--error {
  max-width: 520px;
}

.auth-error-panel {
  padding: 18px 20px;
  border: 1px solid rgba(236, 118, 0, 0.16);
  border-radius: 20px;
  color: #4f3f34;
  background: rgba(255, 241, 223, 0.72);
  font-weight: 700;
  line-height: 1.65;
}

.auth-error-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--auth-text);
  font-weight: 950;
}

.auth-error-panel ul {
  margin: 0;
  padding-left: 1.25rem;
}

.auth-actions-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.auth-submit--link {
  margin-top: 0;
}

.auth-secondary-link {
  color: var(--auth-primary-deep);
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.auth-form {
  display: grid;
  gap: 16px;
}

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

.auth-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #d8c7b7;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--auth-text);
  font: inherit;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card input[type="email"],
.auth-card input[type="password"] {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #d8c7b7;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--auth-text);
  font: inherit;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus,
.auth-card input[type="email"]:focus,
.auth-card input[type="password"]:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 4px rgba(236, 118, 0, 0.12);
}

.auth-form-links {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.auth-form-links a {
  color: var(--auth-primary-deep);
  font-weight: 950;
  text-decoration: none;
}

.auth-submit,
.social-login {
  width: 100%;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-size: 18px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.auth-submit {
  margin-top: 8px;
  color: #fff;
  background: linear-gradient(180deg, #f9850a 0%, #e76900 100%);
  box-shadow: 0 16px 30px rgba(226, 99, 0, 0.24);
}

.social-login {
  color: var(--auth-text);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #d8c7b7;
}

.social-login + .social-login {
  margin-top: 12px;
}

.social-login span {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #fff1df;
  color: var(--auth-primary);
  font-weight: 1000;
}

.line-login {
  color: var(--auth-text);
  background: rgba(255, 255, 255, 0.75);
  border-color: #d8c7b7;
}

.line-login span {
  background: #e9fff1;
  color: #06c755;
}

.auth-divider {
  margin: 22px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  color: var(--auth-muted);
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--auth-border);
}

.auth-switch {
  margin-top: 22px;
  text-align: center;
}

.auth-switch a {
  color: var(--auth-primary-deep);
  font-weight: 950;
  text-decoration: none;
}

.auth-alert,
.auth-error {
  color: #a73412;
}

.auth-alert {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(167, 52, 18, 0.08);
  font-weight: 800;
}

.auth-help,
.auth-error {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

.auth-help {
  color: var(--auth-muted);
}

@media (max-width: 860px) {
  .auth-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 18px;
    gap: 28px;
  }

  .auth-layout--centered {
    min-height: auto;
  }

  .auth-copy {
    max-width: none;
  }

  .auth-copy h1 {
    font-size: clamp(36px, 10vw, 46px);
  }
}

@media (max-width: 460px) {
  .auth-nav {
    padding: 18px 16px;
  }

  .auth-brand {
    gap: 11px;
  }

  .auth-brand__icon {
    width: 48px;
    height: 48px;
  }

  .auth-brand strong {
    font-size: 19px;
  }

  .auth-brand small {
    font-size: 13px;
  }

  .auth-nav__link {
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
  }

  .auth-layout {
    padding-inline: 16px;
    padding-bottom: 42px;
  }

  .auth-card {
    padding: 22px;
    border-radius: 24px;
  }

  .auth-actions-row {
    grid-template-columns: 1fr;
    justify-items: stretch;
    text-align: center;
  }

  .auth-card__header {
    grid-template-columns: 48px 1fr;
  }

  .auth-card__icon {
    width: 46px;
    height: 46px;
  }
}

/* ── CAPTCHA ── */
.auth-captcha-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.auth-captcha-wrap img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.auth-captcha-wrap .auth-input {
  max-width: 140px;
}
.auth-captcha-refresh {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: .82rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.auth-captcha-refresh:hover {
  border-color: var(--accent);
  color: var(--accent);
}
