:root {
  --auth-page: #fbfaf7;
  --auth-paper: rgba(255, 255, 255, .94);
  --auth-ink: #15233c;
  --auth-muted: #737d8f;
  --auth-line: rgba(28, 42, 65, .10);
  --auth-line-strong: rgba(28, 42, 65, .17);
  --auth-gold: #dda12d;
  --auth-gold-dark: #c78818;
  --auth-gold-soft: #fff6e3;
  --auth-sage: #8fae86;
  --auth-sage-soft: #edf3e8;
  --auth-peach: #f6e6d2;
  --auth-danger: #a33d38;
  --auth-danger-soft: #fff1f0;
  --auth-success: #3f7858;
  --auth-success-soft: #eef7f0;
  --auth-shadow: 0 24px 70px rgba(54, 48, 38, .09);
  --auth-shadow-card: 0 18px 46px rgba(54, 48, 38, .08);
  --auth-radius-xl: 30px;
  --auth-radius-lg: 22px;
  --auth-radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.seido-auth {
  margin: 0;
  min-height: 100vh;
  color: var(--auth-ink);
  background: var(--auth-page);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

body.seido-auth a {
  color: inherit;
}

.auth-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(900px 620px at 8% 91%, rgba(248, 218, 180, .52), transparent 67%),
    radial-gradient(820px 560px at 94% 55%, rgba(222, 233, 213, .72), transparent 68%),
    radial-gradient(760px 520px at 77% 7%, rgba(249, 231, 209, .44), transparent 65%),
    linear-gradient(180deg, #fdfcf9 0%, #fbfaf7 100%);
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: absolute;
  z-index: -2;
  pointer-events: none;
  border-radius: 46% 54% 54% 46% / 46% 44% 56% 54%;
}

.auth-page::before {
  width: min(44vw, 680px);
  height: min(48vw, 720px);
  left: -15vw;
  top: 25%;
  background: rgba(255, 246, 231, .68);
  transform: rotate(9deg);
}

.auth-page::after {
  width: min(43vw, 670px);
  height: min(47vw, 710px);
  right: -17vw;
  bottom: -7%;
  background: rgba(239, 235, 226, .72);
  transform: rotate(-14deg);
}

.auth-topbar {
  width: min(calc(100% - 40px), 1360px);
  min-height: 76px;
  margin: 0 auto;
  padding: 25px 0 8px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.auth-lang-switcher {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.auth-lang-switcher::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: .67;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2315233c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15.3 15.3 0 0 1 0 18M12 3a15.3 15.3 0 0 0 0 18'/%3E%3C/svg%3E");
}

.auth-lang-switcher__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.auth-lang-switcher__select {
  min-width: 118px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  color: var(--auth-ink);
  background: rgba(255, 255, 255, .66);
  padding: 0 32px 0 12px;
  font-size: .92rem;
  font-weight: 650;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(28, 42, 65, .06);
}

.auth-lang-switcher__select:focus-visible {
  box-shadow: 0 0 0 3px rgba(221, 161, 45, .18), inset 0 0 0 1px rgba(221, 161, 45, .44);
}

.auth-main {
  width: min(calc(100% - 36px), 1220px);
  margin: 0 auto;
  padding: 15px 0 48px;
  flex: 1;
}

.auth-header {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.auth-brand-home {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 62px;
  text-decoration: none;
}

.auth-brand-logo {
  display: block;
  width: auto;
  max-width: 232px;
  max-height: 72px;
  object-fit: contain;
}

.auth-heading {
  margin: 15px 0 0;
  color: var(--auth-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.25rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.auth-subtitle {
  max-width: 620px;
  margin: 10px auto 0;
  color: var(--auth-muted);
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: balance;
}

.auth-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  color: #667286;
  font-size: .92rem;
  font-weight: 600;
}

.auth-trust svg {
  width: 18px;
  height: 18px;
  stroke: #718099;
}

.auth-stage {
  position: relative;
  width: min(100%, 900px);
  margin: 0 auto;
  min-height: 470px;
}

.auth-stage.is-tall {
  min-height: 680px;
}

.auth-form-card {
  position: relative;
  z-index: 3;
  width: min(100%, 580px);
  margin: 0 auto;
  padding: 28px 30px 26px;
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius-lg);
  background: var(--auth-paper);
  box-shadow: var(--auth-shadow-card);
  backdrop-filter: blur(15px);
}

.auth-form-card.is-wide {
  width: min(100%, 630px);
}

.auth-context-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: -2px 0 22px;
  padding: 10px 14px;
  border: 1px solid rgba(221, 161, 45, .24);
  border-radius: 12px;
  color: #6e5a30;
  background: linear-gradient(180deg, rgba(255, 249, 235, .96), rgba(255, 246, 227, .84));
  font-size: .89rem;
  font-weight: 600;
  text-align: center;
}

.auth-context-banner svg {
  width: 18px;
  height: 18px;
  stroke: var(--auth-gold-dark);
  flex: 0 0 18px;
}

.auth-card-title {
  margin: 0;
  color: var(--auth-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  font-size: 2.15rem;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-align: center;
}

.auth-card-subtitle {
  max-width: 470px;
  margin: 8px auto 22px;
  color: var(--auth-muted);
  font-size: .94rem;
  line-height: 1.6;
  text-align: center;
}

.auth-destination {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: -168px;
  width: 230px;
  padding: 22px;
  border: 1px solid rgba(28, 42, 65, .08);
  border-radius: 19px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 18px 42px rgba(54, 48, 38, .08);
  transform: rotate(1.4deg);
  backdrop-filter: blur(12px);
}

.auth-destination-label {
  margin: 0 0 12px;
  color: var(--auth-muted);
  font-size: .84rem;
  font-weight: 650;
}

.auth-destination-app {
  display: flex;
  align-items: center;
  gap: 13px;
}

.auth-destination-name {
  min-width: 0;
  color: var(--auth-ink);
  font-size: 1.42rem;
  font-weight: 780;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.auth-destination-copy {
  margin: 14px 0 0;
  color: var(--auth-muted);
  font-size: .82rem;
  line-height: 1.55;
}

.auth-destination-inline {
  display: none;
  margin: 0 0 20px;
  padding: 12px 14px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--auth-line);
  border-radius: 16px;
  background: #fbfbf8;
}

.auth-destination-inline-copy {
  min-width: 0;
}

.auth-destination-inline-label {
  display: block;
  color: var(--auth-muted);
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.2;
}

.auth-destination-inline-name {
  display: block;
  margin-top: 2px;
  color: var(--auth-ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.auth-app-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(54, 48, 38, .08);
  overflow: hidden;
}

.auth-app-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.auth-app-fallback {
  color: #fff;
  background: linear-gradient(145deg, #31456a, #6379aa);
  font-size: 1.38rem;
  font-weight: 850;
}

.auth-decor {
  pointer-events: none;
}

.auth-floating-app {
  position: absolute;
  z-index: 1;
  width: 104px;
  padding: 13px 12px 11px;
  border: 1px solid rgba(28, 42, 65, .06);
  border-radius: 15px;
  background: rgba(255, 255, 255, .73);
  box-shadow: 0 14px 36px rgba(54, 48, 38, .06);
  text-align: center;
  backdrop-filter: blur(8px);
}

.auth-floating-app img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin: 0 auto 7px;
}

.auth-floating-app span {
  color: #536177;
  font-size: .74rem;
  font-weight: 720;
}

.auth-floating-app.one {
  left: -165px;
  top: 40px;
  transform: rotate(-2.5deg);
}

.auth-floating-app.two {
  left: -105px;
  top: 230px;
  transform: rotate(2deg);
}

.auth-floating-app.three {
  right: -144px;
  top: 280px;
  transform: rotate(-1.4deg);
}

.auth-form-group {
  margin-bottom: 17px;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.auth-label {
  margin: 0;
  color: var(--auth-ink);
  font-size: .89rem;
  font-weight: 750;
}

.auth-label-link {
  color: var(--auth-gold-dark);
  font-size: .82rem;
  font-weight: 650;
  text-decoration: none;
}

.auth-label-link:hover {
  color: #a76c0a;
  text-decoration: underline;
}

.auth-input-wrap {
  position: relative;
}

.auth-field-icon {
  position: absolute;
  z-index: 1;
  left: 15px;
  top: 50%;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  color: #8993a3;
  pointer-events: none;
}

.auth-field-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.auth-input,
.auth-select {
  width: 100%;
  min-height: 49px;
  border: 1px solid var(--auth-line-strong);
  border-radius: 12px;
  color: var(--auth-ink);
  background: rgba(255, 255, 255, .82);
  padding: 11px 14px;
  font: inherit;
  font-size: .93rem;
  outline: none;
  box-shadow: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.auth-input.has-icon {
  padding-left: 45px;
}

.auth-input.has-toggle {
  padding-right: 48px;
}

.auth-input::placeholder {
  color: #a1a8b4;
}

.auth-input:focus,
.auth-select:focus {
  border-color: rgba(221, 161, 45, .66);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(221, 161, 45, .11);
}

.auth-select {
  appearance: auto;
}

.auth-password-toggle {
  position: absolute;
  z-index: 2;
  right: 7px;
  top: 50%;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #7c8799;
  background: transparent;
  cursor: pointer;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  color: var(--auth-ink);
  background: rgba(21, 35, 60, .05);
  outline: none;
}

.auth-password-toggle svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
}

.auth-primary {
  width: 100%;
  min-height: 51px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, #e2a637, #d59622);
  padding: 12px 18px;
  font: inherit;
  font-size: .94rem;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(199, 136, 24, .20);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.auth-primary:hover,
.auth-primary:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  filter: saturate(1.03);
  box-shadow: 0 13px 29px rgba(199, 136, 24, .24);
  outline: none;
}

.auth-primary svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.auth-secondary-row {
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid var(--auth-line);
  color: var(--auth-muted);
  font-size: .89rem;
  text-align: center;
}

.auth-secondary-row a {
  color: var(--auth-ink);
  font-weight: 760;
  text-decoration: none;
}

.auth-secondary-row a:hover {
  color: var(--auth-gold-dark);
}

.auth-help-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 17px;
  color: #788396;
  font-size: .8rem;
}

.auth-help-row a {
  text-decoration: none;
}

.auth-help-row a:hover {
  color: var(--auth-ink);
}

.auth-alert {
  margin: 0 0 17px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 12px;
  font-size: .87rem;
  line-height: 1.5;
}

.auth-alert-danger {
  color: #7d2f2b;
  border-color: rgba(163, 61, 56, .17);
  background: var(--auth-danger-soft);
}

.auth-alert-success {
  color: #315f45;
  border-color: rgba(63, 120, 88, .16);
  background: var(--auth-success-soft);
}

.auth-info-box {
  margin: 0 0 17px;
  padding: 13px 14px;
  border: 1px solid rgba(143, 174, 134, .2);
  border-radius: 13px;
  color: #536a55;
  background: rgba(237, 243, 232, .7);
  font-size: .85rem;
  line-height: 1.55;
}

.auth-footer {
  width: min(calc(100% - 40px), 1360px);
  margin: auto auto 0;
  padding: 17px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(28, 42, 65, .07);
  color: #8991a0;
  font-size: .75rem;
}

.auth-footer-left,
.auth-footer-right {
  display: flex;
  align-items: center;
  gap: 9px;
}

.auth-footer-left svg {
  width: 16px;
  height: 16px;
  stroke: var(--auth-gold-dark);
}

.auth-footer-right a {
  color: #7e8796;
  text-decoration: none;
}

.auth-footer-right a:hover {
  color: var(--auth-ink);
}

.auth-footer-dot {
  opacity: .55;
}

@media (max-width: 1180px) {
  .auth-destination {
    right: -105px;
  }

  .auth-floating-app.one {
    left: -105px;
  }

  .auth-floating-app.two {
    left: -65px;
  }

  .auth-floating-app.three {
    right: -95px;
  }
}

@media (max-width: 980px) {
  .auth-page {
    min-height: 100dvh;
  }

  .auth-topbar {
    width: min(calc(100% - 28px), 720px);
    min-height: 64px;
    padding-top: 16px;
  }

  .auth-main {
    width: min(calc(100% - 28px), 720px);
    padding-top: 6px;
    padding-bottom: 34px;
  }

  .auth-header {
    margin-bottom: 21px;
  }

  .auth-brand-logo {
    max-width: 205px;
    max-height: 65px;
  }

  .auth-heading {
    font-size: clamp(2.05rem, 6vw, 2.8rem);
    margin-top: 10px;
  }

  .auth-subtitle {
    max-width: 560px;
  }

  .auth-stage,
  .auth-stage.is-tall {
    width: 100%;
    min-height: 0;
  }

  .auth-form-card,
  .auth-form-card.is-wide {
    width: min(100%, 620px);
  }

  .auth-destination,
  .auth-floating-app {
    display: none;
  }

  .auth-destination-inline {
    display: flex;
  }

  .auth-context-banner {
    margin-bottom: 17px;
  }

  .auth-footer {
    width: min(calc(100% - 28px), 720px);
  }
}

@media (max-width: 640px) {
  .auth-page::before {
    width: 82vw;
    height: 70vw;
    left: -48vw;
    top: 26%;
  }

  .auth-page::after {
    width: 88vw;
    height: 82vw;
    right: -52vw;
    bottom: 5%;
  }

  .auth-topbar {
    width: calc(100% - 24px);
    min-height: 58px;
    padding: 11px 0 4px;
  }

  .auth-lang-switcher::before {
    width: 17px;
    height: 17px;
  }

  .auth-lang-switcher__select {
    min-width: 108px;
    min-height: 39px;
    max-width: 148px;
    font-size: .86rem;
  }

  .auth-main {
    width: calc(100% - 24px);
    padding: 7px 0 calc(24px + env(safe-area-inset-bottom));
  }

  .auth-header {
    margin-bottom: 17px;
  }

  .auth-brand-home {
    min-height: 52px;
  }

  .auth-brand-logo {
    max-width: 176px;
    max-height: 57px;
  }

  .auth-heading {
    margin-top: 7px;
    font-size: 2rem;
    line-height: 1.12;
    letter-spacing: -.025em;
  }

  .auth-subtitle {
    margin-top: 8px;
    font-size: .9rem;
    line-height: 1.52;
  }

  .auth-trust {
    margin-top: 9px;
    font-size: .82rem;
  }

  .auth-form-card,
  .auth-form-card.is-wide {
    padding: 20px 17px 19px;
    border-radius: 22px;
    box-shadow: 0 15px 38px rgba(54, 48, 38, .07);
  }

  .auth-card-title {
    font-size: 1.78rem;
  }

  .auth-card-subtitle {
    margin: 7px auto 18px;
    font-size: .88rem;
  }

  .auth-context-banner {
    padding: 9px 11px;
    font-size: .79rem;
    line-height: 1.35;
  }

  .auth-destination-inline {
    margin-bottom: 17px;
    padding: 11px 12px;
  }

  .auth-app-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 13px;
  }

  .auth-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .auth-form-group {
    margin-bottom: 15px;
  }

  .auth-label-row {
    margin-bottom: 6px;
  }

  .auth-label {
    font-size: .86rem;
  }

  .auth-label-link {
    font-size: .78rem;
  }

  .auth-input,
  .auth-select {
    min-height: 50px;
    border-radius: 12px;
    font-size: 16px;
  }

  .auth-primary {
    min-height: 52px;
    border-radius: 12px;
    font-size: .92rem;
  }

  .auth-secondary-row {
    margin-top: 15px;
    padding-top: 15px;
    font-size: .84rem;
  }

  .auth-help-row {
    margin-top: 14px;
    gap: 13px;
    font-size: .76rem;
  }

  .auth-alert,
  .auth-info-box {
    font-size: .82rem;
  }

  .auth-footer {
    width: calc(100% - 24px);
    padding: 14px 0 calc(18px + env(safe-area-inset-bottom));
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }

  .auth-footer-left,
  .auth-footer-right {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 380px) {
  .auth-main,
  .auth-topbar,
  .auth-footer {
    width: calc(100% - 18px);
  }

  .auth-form-card,
  .auth-form-card.is-wide {
    padding-left: 14px;
    padding-right: 14px;
  }

  .auth-heading {
    font-size: 1.78rem;
  }

  .auth-card-title {
    font-size: 1.62rem;
  }
}

@media (max-height: 760px) and (min-width: 981px) {
  .auth-topbar {
    padding-top: 14px;
    min-height: 58px;
  }

  .auth-main {
    padding-top: 2px;
    padding-bottom: 26px;
  }

  .auth-header {
    margin-bottom: 18px;
  }

  .auth-heading {
    margin-top: 8px;
    font-size: 2.55rem;
  }

  .auth-subtitle {
    margin-top: 7px;
  }
}
