:root {
  color-scheme: light;
  --ink: #101827;
  --ink-soft: #263247;
  --muted: #778195;
  --line: #e8ebf0;
  --canvas: #f3f5f8;
  --paper: #fff;
  --navy: #121d59;
  --navy-deep: #0c143e;
  --blue: #2457e8;
  --blue-dark: #1745c4;
  --blue-soft: #edf2ff;
  --green: #16896b;
  --red: #c4525c;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-display: 'Inter', 'Segoe UI', sans-serif;
  --radius-sm: 5px;
  --radius-md: 9px;
  --radius-lg: 14px;
  --shadow-panel: 0 10px 32px rgba(25, 39, 68, .045);
  --focus: 0 0 0 3px rgba(36, 87, 232, .2);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
body, p, li, td, th, div, span, label, input, textarea, select, button, a { letter-spacing: normal; word-spacing: normal; }
h1, h2, h3, h4, h5, h6 { letter-spacing: normal; word-spacing: normal; }
button, input, select { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--focus); }
img, svg { max-width: 100%; }

.eyebrow {
  margin: 0 0 11px;
  color: #8991a0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}
.brand-mark {
  display: block;
  width: 32px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 0;
  object-fit: contain;
}
.brand-dark { color: var(--ink); }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-ink { color: #fff; background: #20242b; }
.button-ink:hover { background: #080a0f; }
.button-full { width: 100%; }

.notice {
  margin: 16px 0;
  padding: 11px 13px;
  border: 1px solid;
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.notice-error {
  border-color: #f1d0d3;
  color: #9e303d;
  background: #fff7f7;
}
.notice-success {
  border-color: #cce9df;
  color: #176d54;
  background: #f3fbf7;
}

.auth-page {
  min-height: 100vh;
  background: #f5f6f8;
}

.auth-shell {
  display: grid;
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
}

.auth-login {
  grid-template-columns: 1fr 1fr;
}

.auth-form-side {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: 35px clamp(30px, 6.2vw, 94px) 24px;
}

.auth-form-wrap {
  width: min(100%, 390px);
  align-self: center;
  margin: 32px auto;
}

.auth-form-wrap h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

.auth-subtitle {
  margin: 0 0 26px;
  color: #828b98;
  font-size: 12px;
}

.form-stack {
  display: grid;
  gap: 16px;
}

.form-stack > label:not(.check-label),
.form-row > label {
  display: grid;
  gap: 7px;
  color: #495468;
  font-size: 11px;
  font-weight: 600;
}

.form-row > label {
  align-content: start;
}

.form-stack input:not([type=checkbox]),
.form-stack select {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border: 1px solid #dce1e8;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  font-weight: 400;
}

.form-stack input::placeholder { color: #b4bbc5; }
.form-stack input:focus,
.form-stack select:focus {
  border-color: #5379e8;
  outline: none;
  box-shadow: var(--focus);
}

.password-control {
  position: relative;
  display: block;
}
.password-control input { padding-right: 62px !important; }
.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  height: 43px;
  padding: 0 12px;
  border: 0;
  color: #657086;
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -3px;
  font-size: 10px;
}
.form-options > a,
.auth-switch a {
  color: #2457e8;
  font-weight: 600;
}

.verification-recipient {
  display: grid;
  gap: 5px;
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8f9fb;
}

.verification-recipient span {
  color: var(--muted);
  font-size: 11px;
}

.verification-recipient strong {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.check-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: #687386;
  font-size: 10px;
  font-weight: 400;
}
.check-label input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--blue);
}

.auth-switch {
  margin: 19px 0 0;
  color: #828b98;
  text-align: center;
  font-size: 11px;
}

.auth-legal {
  margin: 25px 0 0;
  color: #a1a8b3;
  font-size: 9px;
  text-align: center;
}

.login-preview {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #fff;
}

.auth-illustration {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-hint {
  display: block;
  margin-top: 4px;
  color: #7d8897;
  font-size: 9px;
  font-weight: 400;
}

.terms-check {
  margin: 3px 0;
}

@media (max-width: 820px) {
  .auth-login { grid-template-columns: 1fr; }
  .auth-form-side { min-height: 100vh; padding: 28px 30px 20px; }
  .auth-form-wrap { margin: 65px auto; }
  .login-preview { display: none; }
}

@media (max-width: 620px) {
  .auth-form-side { padding: 25px 23px 18px; }
  .auth-form-wrap { margin: 55px auto; }
  .auth-form-wrap h1 { font-size: 29px; }
  .form-row { gap: 9px; }
}

.auth-register .auth-success-popup {
  width: min(430px, calc(100vw - 32px));
  padding: 30px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 20px 56px rgba(16, 24, 39, .18);
  font-family: var(--font-body);
}

.auth-register .auth-success-title {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
}

.auth-register .auth-success-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.auth-register .swal2-icon.swal2-success {
  border-color: #d4d7dc;
  color: #20242b;
}

.auth-register .swal2-icon.swal2-success [class^="swal2-success-line"] {
  background-color: #20242b;
}

.auth-register .swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(32, 36, 43, .16);
}

.auth-register .auth-success-confirm {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 0 20px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: #20242b;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.auth-register .auth-success-confirm:hover {
  background: #080a0f;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .auth-register .auth-success-popup { padding: 24px 20px 20px; }
  .auth-register .auth-success-title { font-size: 21px; }
  .auth-register .auth-success-copy { font-size: 14px; }
}

.auth-login .brand { font-size: 19px; }
.auth-login .eyebrow { font-size: 12px; }
.auth-login .auth-form-wrap h1 { font-size: 36px; }
.auth-login .auth-subtitle { font-size: 15px; line-height: 1.6; }
.auth-login .form-stack > label:not(.check-label),
.auth-login .form-row > label { font-size: 14px; }
.auth-login .form-stack input:not([type=checkbox]),
.auth-login .form-stack select { height: 48px; font-size: 15px; }
.auth-login .password-toggle { font-size: 13px; }
.auth-login .form-options,
.auth-login .check-label { font-size: 13px; }
.auth-login .check-label input { width: 16px; height: 16px; }
.auth-login .button { min-height: 52px; font-size: 15px; }
.auth-login .auth-switch { font-size: 13px; }
.auth-login .auth-legal { font-size: 11px; }

@media (max-width: 620px) {
  .auth-login .auth-form-wrap h1 { font-size: 31px; }
}

.account-confirmation {
  min-height: 100vh;
  background: #fff;
  color: #354052;
}

.confirmation-shell {
  display: flex;
  width: min(100%, 760px);
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding: 54px 32px 40px;
  text-align: center;
}

.confirmation-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #14264b;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.confirmation-brand img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.confirmation-welcome {
  margin: 20px 0 8px;
  color: #738095;
  font-size: 16px;
}

.confirmation-shell h1 {
  max-width: 600px;
  margin: 8px 0 0;
  color: #26364f;
  font-size: 26px;
  font-weight: 650;
  line-height: 1.35;
}

.confirmation-holder {
  margin: 12px 0 26px;
  color: #687386;
  font-size: 15px;
}

.confirmation-holder strong {
  color: #34435b;
  font-weight: 650;
}

.confirmation-mail-status {
  max-width: 620px;
  margin: 0 0 22px;
  color: #176d54;
  font-size: 13px;
  line-height: 1.55;
}

.confirmation-mail-status.is-error {
  color: #9e303d;
}

.confirmation-mail-status a {
  color: #2457e8;
  font-weight: 600;
}

.confirmation-details {
  width: 100%;
  border-top: 1px solid #dce1e8;
  border-bottom: 1px solid #dce1e8;
}

.confirmation-detail-row {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 12px;
  text-align: left;
}

.confirmation-detail-row + .confirmation-detail-row {
  border-top: 1px solid #edf0f4;
}

.confirmation-detail-row > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.confirmation-detail-label {
  color: #778195;
  font-size: 13px;
}

.confirmation-detail-value {
  color: #27374f;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 20px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.confirmation-detail-value.confirmation-unavailable {
  color: #707782;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
}

.confirmation-copy {
  display: inline-flex;
  min-width: 82px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #cbd5e3;
  border-radius: 4px;
  color: #1e5d9c;
  background: #fff;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.confirmation-copy:hover {
  border-color: #1d6fb8;
  background: #f5f9fc;
}

.confirmation-copy-feedback {
  min-height: 21px;
  margin: 10px 0 0;
  color: #176d54;
  font-size: 13px;
}

.confirmation-copy-feedback.is-error {
  color: #9e303d;
}

.confirmation-routing-notice {
  max-width: 620px;
  margin: 14px 0 0;
  color: #687386;
  font-size: 14px;
  line-height: 1.6;
}

.confirmation-login-button {
  min-width: 210px;
  min-height: 48px;
  margin-top: 24px;
  border-radius: 4px;
  background: #2457e8;
  font-size: 14px;
}

.confirmation-login-button:hover {
  background: #1745c4;
}

.confirmation-footnote {
  max-width: 560px;
  margin: 18px 0 0;
  color: #8991a0;
  font-size: 12px;
  line-height: 1.5;
}

.confirmation-footnote a {
  color: #2457e8;
  font-weight: 600;
}

.confirmation-signin-link {
  margin-top: 18px;
  color: #2457e8;
  font-size: 14px;
  font-weight: 600;
}

.confirmation-shell a:focus-visible,
.confirmation-shell button:focus-visible {
  outline: 2px solid #2457e8;
  outline-offset: 3px;
}

.auth-login-alert-popup {
  width: min(440px, calc(100vw - 32px));
  padding: 30px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 20px 56px rgba(16, 24, 39, .18);
  font-family: var(--font-body);
}

.auth-login-alert-icon {
  margin: 0 auto 15px;
}

.auth-login-alert-title {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  font-weight: 700;
}

.auth-login-alert-copy {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-login-alert-confirm {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 17px;
  padding: 0 21px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: #20242b;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.auth-login-alert-confirm:hover {
  background: #080a0f;
  transform: translateY(-1px);
}

.auth-login-alert-confirm:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(36, 87, 232, .2);
}

@media (max-width: 620px) {
  .confirmation-shell { padding: 42px 22px 30px; }
  .confirmation-brand { font-size: 27px; }
  .confirmation-brand img { width: 42px; height: 42px; }
  .confirmation-shell h1 { font-size: 23px; }
  .confirmation-holder { margin-bottom: 20px; }
  .confirmation-detail-row { min-height: 78px; gap: 12px; padding: 13px 4px; }
  .confirmation-detail-value { font-size: 17px; }
  .confirmation-copy { min-width: 70px; padding: 0 10px; }
}

@media (max-width: 480px) {
  .auth-login-alert-popup { padding: 25px 20px 21px; }
  .auth-login-alert-title { font-size: 21px; }
}
