@charset "UTF-8";

/*
 * 铜价通电缆报价系统登录体验
 * 仅作用于认证页；业务页面继续使用 arctic-ui.css。
 * 视觉参考：工业精密摄影、Uiverse 玻璃拟态表单与渐变按钮交互。
 */

:root {
  --auth-navy-950: #071d38;
  --auth-navy-900: #0a294d;
  --auth-navy-800: #123f6d;
  --auth-blue-600: #1677ff;
  --auth-cyan-500: #19b9ee;
  --auth-copper-500: #ef7728;
  --auth-copper-400: #f49442;
  --auth-surface: rgba(248, 252, 255, .82);
  --auth-surface-strong: rgba(255, 255, 255, .94);
  --auth-border: rgba(129, 189, 231, .58);
  --auth-border-soft: rgba(255, 255, 255, .72);
  --auth-compact-gap: 8px;
  --auth-shadow: 0 30px 80px rgba(11, 51, 91, .22), 0 8px 28px rgba(27, 119, 181, .11);
}

.auth-page {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  background: #dcebf6;
  color: var(--auth-navy-950);
  font-variant-numeric: tabular-nums;
}

.auth-page [hidden] {
  display: none !important;
}

.auth-page::before,
.auth-page::after {
  display: none;
  content: none;
}

.auth-backdrop {
  position: fixed;
  z-index: -3;
  inset: -6%;
  overflow: hidden;
  background: #dcebf6;
  transform: translate3d(-1.2%, -.6%, 0) scale(1.045);
  transform-origin: 46% 50%;
  animation: auth-background-breathe 16s cubic-bezier(.45, .05, .55, .95) infinite alternate;
  will-change: transform;
}

.auth-backdrop::before,
.auth-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background: url("assets/login/cable-stranding-hero.webp") center center / cover no-repeat;
}

.auth-backdrop::before {
  inset: -5%;
  opacity: .86;
  filter: blur(28px) saturate(112%);
  transform: scale(1.08);
}

.auth-backdrop::after {
  z-index: 1;
}

.auth-ambient {
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 13% 14%, rgba(255, 255, 255, .90), rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 78% 24%, rgba(214, 241, 255, .68), rgba(214, 241, 255, 0) 30%),
    linear-gradient(90deg, rgba(235, 247, 255, .83) 0%, rgba(230, 245, 255, .56) 36%, rgba(207, 235, 251, .24) 59%, rgba(224, 244, 255, .45) 100%);
}

.auth-ambient::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .42;
  background-image:
    linear-gradient(rgba(65, 156, 216, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 156, 216, .14) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, transparent 0, #000 48%, #000 100%);
}

.auth-ambient::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 62%;
  height: 42%;
  content: "";
  opacity: .7;
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(63, 170, 235, .28) 46.2% 46.7%, transparent 46.9%),
    linear-gradient(155deg, transparent 0 61%, rgba(255, 255, 255, .58) 61.2% 61.6%, transparent 61.8%);
}

@keyframes auth-background-breathe {
  0% {
    transform: translate3d(-1.2%, -.6%, 0) scale(1.045);
  }

  100% {
    transform: translate3d(1.1%, .7%, 0) scale(1.085);
  }
}

.auth-shell {
  --auth-card-offset: clamp(160px, 21.5dvh, 240px);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 380px);
  grid-template-areas:
    "story card"
    "features .";
  grid-template-rows: minmax(520px, 1fr) auto;
  width: min(1640px, calc(100% - clamp(48px, 8vw, 144px)));
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(36px, 6vh, 74px) 0;
  align-items: stretch;
  column-gap: clamp(40px, 5vw, 84px);
  row-gap: 18px;
}

.auth-story {
  grid-area: story;
  display: flex;
  min-width: 0;
  min-height: 390px;
  padding: 6px 0;
  flex-direction: column;
  justify-content: space-between;
}

.auth-brand {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.auth-brand-identity {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.auth-brand-mark {
  display: block;
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 20px;
  background: #102a26;
  box-shadow: 0 12px 30px rgba(25, 64, 59, .20);
}

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

.auth-brand-copy {
  display: grid;
}

.auth-brand-copy strong {
  display: flex;
  align-items: baseline;
  gap: .12em;
  color: var(--auth-navy-950);
  line-height: 1.25;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.auth-brand-name {
  color: #b46d22;
  font-size: clamp(28px, 2.2vw, 38px);
  font-weight: 900;
  letter-spacing: -.055em;
  text-shadow: 0 1px 18px rgba(255, 255, 255, .72);
}

.auth-brand-system {
  color: var(--auth-navy-950);
  font-size: clamp(20px, 1.55vw, 27px);
  font-weight: 800;
}

.auth-story-copy {
  max-width: 690px;
  margin: clamp(36px, 7vh, 76px) 0 clamp(32px, 6vh, 62px);
}

.auth-story h1 {
  max-width: 670px;
  margin: 0;
  color: var(--auth-navy-950);
  font-size: clamp(44px, 4.2vw, 72px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(255, 255, 255, .7);
}

.auth-story h1 span {
  display: block;
  margin-top: 6px;
  color: var(--auth-copper-500);
}

.auth-story-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(8, 40, 75, .78);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 520;
  line-height: 1.85;
  text-shadow: 0 1px 12px rgba(255, 255, 255, .84);
}

.auth-contact-layout {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.auth-contact-phone {
  display: grid;
  min-width: 0;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
}

.auth-contact-phone span {
  margin-bottom: 5px;
  color: rgba(12, 56, 96, .66);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.auth-contact-phone strong {
  color: var(--auth-blue-600);
  font-size: clamp(28px, 2.5vw, 40px);
  font-weight: 760;
  line-height: 1.15;
  letter-spacing: .01em;
  text-shadow: 0 8px 22px rgba(22, 119, 255, .16);
}

.auth-contact-phone small {
  margin-top: 8px;
  color: rgba(12, 49, 82, .72);
  font-size: 12px;
  line-height: 1.5;
}

.auth-contact-phone:focus-visible {
  border-radius: 12px;
  outline: 3px solid rgba(22, 119, 255, .28);
  outline-offset: 4px;
}

.auth-contact-qrs {
  display: grid;
  grid-template-columns: repeat(2, minmax(132px, 1fr));
  gap: 12px;
}

.auth-contact-qr {
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 16px;
  background: rgba(255, 255, 255, .46);
  box-shadow: 0 10px 28px rgba(18, 77, 124, .08);
}

.auth-contact-qr img {
  display: block;
  width: 94px;
  height: 94px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

.auth-contact-qr figcaption {
  display: grid;
  margin-top: 8px;
  justify-items: center;
  text-align: center;
}

.auth-contact-qr strong {
  color: var(--auth-blue-600);
  font-size: 13px;
  line-height: 1.35;
}

.auth-contact-qr small {
  margin-top: 2px;
  color: rgba(12, 49, 82, .68);
  font-size: 10px;
  line-height: 1.35;
}

.auth-info-overlay {
  position: fixed;
  z-index: 32;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(5, 31, 57, .34);
  backdrop-filter: blur(12px) saturate(118%);
}

.auth-info-dialog {
  display: grid;
  width: min(760px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, .84);
  border-radius: 24px;
  outline: 0;
  background: rgba(239, 249, 255, .91);
  box-shadow: 0 28px 80px rgba(7, 43, 77, .28), 0 0 36px rgba(61, 184, 244, .2), inset 0 1px 0 #fff;
  backdrop-filter: blur(30px) saturate(136%);
}

.auth-info-head {
  display: flex;
  padding: 22px 24px 18px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(105, 165, 207, .24);
}

.auth-info-head small {
  display: block;
  margin-bottom: 4px;
  color: rgba(21, 78, 126, .58);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
}

.auth-info-head h2 {
  margin: 0;
  color: var(--auth-navy-950);
  font-size: 26px;
  line-height: 1.25;
}

.auth-info-head button {
  padding: 7px 2px 5px;
  border: 0;
  border-bottom: 1px solid rgba(22, 119, 255, .28);
  background: transparent;
  color: rgba(13, 56, 94, .72);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 720;
}

.auth-info-head button:hover,
.auth-info-head button:focus-visible {
  border-bottom-color: var(--auth-blue-600);
  color: var(--auth-blue-600);
  outline: 0;
}

.auth-info-body {
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.auth-contact-panel {
  min-width: 0;
}

.auth-version-content {
  color: rgba(8, 39, 71, .8);
  font-size: 13px;
  line-height: 1.75;
}

.auth-version-content h2 {
  margin: 0 0 8px;
  color: var(--auth-navy-950);
  font-size: 22px;
}

.auth-version-content h3 {
  margin: 22px 0 8px;
  color: var(--auth-navy-900);
  font-size: 17px;
}

.auth-version-content p,
.auth-version-content blockquote {
  margin: 0 0 12px;
}

.auth-version-content blockquote {
  padding: 10px 12px;
  border-left: 3px solid rgba(22, 119, 255, .42);
  background: rgba(221, 241, 255, .44);
  color: rgba(8, 56, 99, .7);
}

.auth-version-content ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.auth-version-content li {
  position: relative;
  padding-left: 17px;
}

.auth-version-content li::before {
  position: absolute;
  top: .72em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--auth-blue-600);
  content: "";
}

.auth-version-content code {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(16, 91, 151, .09);
  color: #0756a1;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: .94em;
}

.auth-version-loading,
.auth-version-empty,
.auth-version-error {
  padding: 28px 4px;
  text-align: center;
}

.auth-version-error {
  color: #b8233c;
}

.auth-feature-grid {
  grid-area: features;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.auth-feature {
  display: grid;
  min-height: 104px;
  padding: 17px;
  grid-template-columns: 40px minmax(0, 1fr);
  align-content: center;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 18px;
  background: rgba(250, 253, 255, .66);
  box-shadow: 0 12px 28px rgba(20, 76, 120, .09);
  backdrop-filter: blur(18px) saturate(125%);
}

.auth-feature-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(38, 132, 205, .18);
  border-radius: 13px;
  background: rgba(237, 248, 255, .82);
  color: var(--auth-blue-600);
}

.auth-feature:nth-child(1) .auth-feature-icon {
  color: var(--auth-copper-500);
  background: rgba(255, 244, 235, .88);
}

.auth-feature:nth-child(3) .auth-feature-icon {
  color: #0b9e78;
  background: rgba(233, 252, 246, .88);
}

.auth-feature-icon svg {
  width: 22px;
  height: 22px;
}

.auth-feature-copy {
  min-width: 0;
}

.auth-feature strong {
  display: block;
  margin-bottom: 3px;
  color: var(--auth-navy-900);
  font-size: 14px;
}

.auth-feature small {
  display: block;
  color: rgba(15, 55, 91, .67);
  font-size: 11px;
  line-height: 1.45;
}

.auth-card {
  grid-area: card;
  align-self: start;
  margin-top: var(--auth-card-offset);
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  padding: clamp(26px, 3vw, 36px);
  overflow: hidden;
  border: 1px solid var(--auth-border-soft);
  border-radius: 30px;
  background: var(--auth-surface);
  box-shadow:
    0 30px 80px rgba(11, 51, 91, .22),
    0 8px 28px rgba(27, 119, 181, .11),
    0 0 42px rgba(62, 181, 245, .10),
    inset 0 1px 0 rgba(255, 255, 255, .76);
  backdrop-filter: blur(28px) saturate(138%);
}

.auth-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid rgba(101, 199, 244, .42);
  border-radius: inherit;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(145deg, #000, transparent 52%);
}

.auth-card-glow {
  position: absolute;
  z-index: -1;
  top: -150px;
  right: -150px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48, 177, 247, .22), rgba(48, 177, 247, 0) 70%);
  pointer-events: none;
}

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

.auth-card-title-row {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.auth-contact-link,
.auth-contact-link:hover {
  flex: 0 0 auto;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--auth-blue-600);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  box-shadow: none;
  transform: none;
}

.auth-contact-link:focus-visible {
  outline: 2px solid rgba(22, 119, 255, .42);
  outline-offset: 4px;
  border-radius: 2px;
}

.auth-card h2 {
  margin: 0;
  color: var(--auth-navy-950);
  font-size: clamp(28px, 2.1vw, 34px);
  line-height: 1.2;
  letter-spacing: -.03em;
}

.auth-card-note {
  margin: 9px 0 0;
  color: rgba(16, 54, 88, .64);
  font-size: 13px;
  line-height: 1.55;
}

.auth-card-note:empty {
  display: none;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-field {
  margin-bottom: 10px;
}

.auth-field label {
  display: flex;
  margin-bottom: 4px;
  align-items: center;
  gap: 5px;
  color: rgba(8, 39, 71, .78);
  font-size: 12px;
  font-weight: 700;
}

.auth-field label span[aria-hidden="true"] {
  color: #d53a52;
}

.auth-field label small {
  margin-left: 0;
  color: rgba(23, 66, 105, .48);
  font-weight: 600;
}

.auth-input-shell {
  position: relative;
  display: flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid rgba(122, 170, 208, .48);
  border-radius: 12px;
  background: rgba(248, 252, 255, .70);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.auth-input-shell:hover {
  border-color: rgba(52, 135, 202, .58);
  background: rgba(255, 255, 255, .82);
}

.auth-input-shell:focus-within {
  border-color: var(--auth-blue-600);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, .11), inset 0 1px 0 #fff;
}

.auth-input-icon {
  width: 18px;
  height: 18px;
  margin-left: 12px;
  flex: 0 0 18px;
  color: rgba(37, 96, 147, .58);
}

.auth-input-shell input {
  width: 100%;
  height: 38px;
  min-width: 0;
  padding: 7px 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--auth-navy-950);
  font-size: 14px;
}

.auth-input-shell input::placeholder {
  color: rgba(37, 75, 111, .43);
}

.auth-field > input,
.auth-field > select {
  width: 100%;
  height: 40px;
  padding: 7px 12px;
  border: 1px solid rgba(122, 170, 208, .48);
  border-radius: 12px;
  outline: 0;
  background: rgba(248, 252, 255, .76);
  color: var(--auth-navy-950);
  font: inherit;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.auth-field > input:hover,
.auth-field > select:hover {
  border-color: rgba(52, 135, 202, .58);
  background: rgba(255, 255, 255, .84);
}

.auth-field > input:focus,
.auth-field > select:focus {
  border-color: var(--auth-blue-600);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, .11);
}

.auth-password-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  min-height: 40px;
  margin-right: 2px;
  padding: 0;
  flex: 0 0 40px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(33, 88, 137, .62);
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease;
}

.auth-password-toggle:hover {
  color: var(--auth-blue-600);
  background: rgba(22, 119, 255, .08);
}

.auth-password-toggle:focus-visible,
.auth-submit:focus-visible {
  outline: 3px solid rgba(22, 119, 255, .32);
  outline-offset: 3px;
}

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

.auth-password-toggle .auth-eye-off,
.auth-password-toggle[aria-pressed="true"] .auth-eye-on {
  display: none;
}

.auth-password-toggle[aria-pressed="true"] .auth-eye-off {
  display: block;
}

.auth-submit {
  position: relative;
  display: inline-flex;
  width: 100%;
  height: 46px;
  min-height: 46px;
  margin-top: 0;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 12px;
  background: linear-gradient(105deg, #0d68f2 0%, #258afc 55%, #1abfe9 100%);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .12em;
  box-shadow: 0 13px 28px rgba(17, 112, 238, .25), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .18s ease, box-shadow .2s ease, filter .2s ease;
}

html[data-ui-theme] button.auth-submit {
  border-color: rgba(255, 255, 255, .86) !important;
  background: linear-gradient(105deg, #0d68f2 0%, #258afc 55%, #1abfe9 100%) !important;
  box-shadow: 0 13px 28px rgba(17, 112, 238, .25), inset 0 1px 0 rgba(255, 255, 255, .35) !important;
}

.auth-submit::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, .3) 48%, transparent 76%);
  transform: translateX(-130%);
  transition: transform .65s ease;
}

.auth-submit:hover:not(:disabled) {
  filter: saturate(112%);
  box-shadow: 0 16px 34px rgba(17, 112, 238, .32), inset 0 1px 0 rgba(255, 255, 255, .42);
  transform: translateY(-1px);
}

.auth-submit:hover:not(:disabled)::before {
  transform: translateX(130%);
}

.auth-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.auth-submit:disabled {
  color: rgba(255, 255, 255, .90);
  background: linear-gradient(105deg, #4c83c9, #60a4d5);
  cursor: wait;
  box-shadow: 0 9px 22px rgba(44, 94, 147, .18);
}

.auth-submit[aria-busy="true"] .auth-submit-label {
  opacity: .88;
}

.auth-submit-arrow {
  width: 21px;
  height: 21px;
  transition: transform .18s ease;
}

.auth-submit:hover:not(:disabled) .auth-submit-arrow {
  transform: translateX(3px);
}

.auth-submit-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-submit-spin .8s linear infinite;
}

.auth-submit[aria-busy="true"] .auth-submit-arrow {
  display: none;
}

.auth-submit[aria-busy="true"] .auth-submit-loader {
  display: block;
}

.auth-secondary {
  display: inline-flex;
  width: 100%;
  min-height: 40px;
  margin-top: 7px;
  padding: 7px 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(83, 150, 204, .58);
  border-radius: 11px;
  background: rgba(250, 253, 255, .58);
  color: #0f6dc5;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.auth-secondary:hover {
  border-color: rgba(20, 119, 210, .8);
  background: rgba(255, 255, 255, .86);
  transform: translateY(-1px);
}

.auth-register-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.auth-captcha-slot {
  min-height: 1px;
}

.auth-sms-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 8px;
}

.auth-sms-row input { min-width: 0; }

.auth-sms-button {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(42, 140, 220, .48);
  border-radius: 11px;
  background: rgba(245, 251, 255, .52);
  color: #086cc9;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.auth-sms-button:hover:not(:disabled),
.auth-sms-button:focus-visible {
  border-color: rgba(20, 119, 210, .78);
  background: rgba(255, 255, 255, .82);
}

.auth-sms-button:disabled { cursor: not-allowed; opacity: .62; }
.auth-sms-button[aria-busy="true"] .auth-submit-loader { display: inline-block; }
.auth-sms-button[aria-busy="true"] .auth-submit-label { display: none; }

.auth-legal-consent {
  display: flex;
  min-height: 24px;
  margin: 0 0 7px;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3px;
  color: rgba(15, 55, 91, .70);
  font-size: clamp(9.5px, 2.65vw, 10.5px);
  line-height: 1.3;
  white-space: nowrap;
}

.auth-legal-consent input {
  width: 14px;
  height: 14px;
  margin: 0 1px 0 0;
  flex: 0 0 14px;
  accent-color: var(--auth-blue-600);
  cursor: pointer;
}

.auth-legal-consent label,
.auth-legal-consent span,
.auth-legal-consent button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.auth-legal-consent label { cursor: pointer; }

.auth-legal-consent button {
  min-height: 0;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #086cc9;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.auth-legal-consent button:hover,
.auth-legal-consent button:focus-visible {
  color: #0756a1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-legal-consent input:focus-visible,
.auth-legal-head button:focus-visible {
  outline: 3px solid rgba(22, 119, 255, .28);
  outline-offset: 3px;
}

.auth-legal-overlay {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(5, 31, 57, .34);
  backdrop-filter: blur(12px) saturate(118%);
}

.auth-legal-dialog {
  display: grid;
  width: min(720px, calc(100vw - 32px));
  max-height: min(780px, calc(100dvh - 32px));
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 24px;
  outline: 0;
  background: rgba(239, 249, 255, .91);
  box-shadow: 0 28px 80px rgba(7, 43, 77, .28), 0 0 36px rgba(61, 184, 244, .18), inset 0 1px 0 #fff;
  backdrop-filter: blur(30px) saturate(136%);
}

.auth-legal-head {
  display: flex;
  padding: 22px 24px 18px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(105, 165, 207, .24);
}

.auth-legal-head small {
  display: block;
  margin-bottom: 4px;
  color: rgba(21, 78, 126, .58);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
}

.auth-legal-head h2 {
  margin: 0;
  color: var(--auth-navy-950);
  font-size: 24px;
  line-height: 1.25;
}

.auth-legal-head button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid rgba(97, 155, 199, .34);
  border-radius: 12px;
  background: rgba(255, 255, 255, .56);
  color: rgba(13, 56, 94, .72);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.auth-legal-body {
  padding: 22px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: rgba(8, 39, 71, .78);
  font-size: 13px;
  line-height: 1.8;
  scrollbar-width: thin;
}

.auth-legal-table {
  width: 100%;
  margin: 10px 0 14px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
  line-height: 1.45;
}

.auth-legal-table th,
.auth-legal-table td {
  padding: 8px;
  border: 1px solid rgba(42, 112, 167, .18);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.auth-legal-table th {
  background: rgba(217, 239, 255, .48);
  color: #143b60;
  font-weight: 750;
}

.auth-legal-body p { margin: 0 0 14px; }

.auth-legal-body h3 {
  margin: 20px 0 7px;
  color: var(--auth-navy-950);
  font-size: 15px;
}

.auth-legal-body .auth-legal-effective {
  color: rgba(22, 87, 139, .62);
  font-size: 12px;
}

.auth-legal-footer {
  padding: 12px 24px 18px;
  border-top: 1px solid rgba(105, 165, 207, .22);
}

.auth-legal-footer .auth-secondary {
  width: 120px;
  margin: 0 0 0 auto;
}

.auth-card:has(.auth-onboarding:not([hidden])) {
  max-height: calc(100dvh - var(--auth-card-offset) - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.company-select,
.auth-onboarding,
.workspace-unavailable {
  color: var(--auth-navy-950);
}

.company-select-kicker {
  margin-bottom: 7px;
  color: var(--auth-blue-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.company-select h2,
.auth-onboarding h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.company-select > p,
.auth-onboarding > p {
  margin: 0 0 18px;
  color: rgba(16, 54, 88, .68);
  line-height: 1.65;
}

.company-select-list {
  display: grid;
  gap: 9px;
}

.company-choice,
.onboarding-actions > button {
  display: flex;
  width: 100%;
  min-height: 66px;
  padding: 13px 15px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(117, 171, 213, .48);
  border-radius: 13px;
  background: rgba(250, 253, 255, .68);
  color: var(--auth-navy-950);
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.company-choice:hover,
.onboarding-actions > button:hover {
  border-color: rgba(22, 119, 255, .62);
  background: rgba(255, 255, 255, .9);
  transform: translateY(-1px);
}

.company-choice span,
.onboarding-actions > button {
  min-width: 0;
}

.company-choice strong,
.onboarding-actions strong {
  display: block;
  color: var(--auth-navy-900);
  font-size: 14px;
}

.company-choice small,
.onboarding-actions span {
  display: block;
  margin-top: 3px;
  color: rgba(16, 54, 88, .58);
  font-size: 11px;
  line-height: 1.45;
}

.company-choice b {
  color: var(--auth-blue-600);
  font-size: 12px;
}

.company-select-logout {
  display: block;
  margin: 14px auto 0;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: rgba(16, 54, 88, .58);
  cursor: pointer;
}

.onboarding-actions {
  display: grid;
  gap: 10px;
}

.onboarding-actions > button {
  display: block;
}

.onboarding-form {
  padding-top: 2px;
}

.auth-inline-actions {
  display: grid;
  grid-template-columns: minmax(100px, .7fr) minmax(160px, 1.3fr);
  gap: 10px;
}

.auth-inline-actions .auth-secondary,
.auth-inline-actions .auth-submit {
  height: 46px;
  min-height: 46px;
  margin-top: 0;
}

.auth-submit.compact {
  letter-spacing: .04em;
  font-size: 14px;
}

.workspace-unavailable {
  padding: 12px 0;
  text-align: center;
}

.workspace-unavailable strong {
  display: block;
  font-size: 20px;
}

.workspace-unavailable p {
  margin: 10px 0 18px;
  color: rgba(16, 54, 88, .68);
}

.workspace-unavailable button {
  min-height: 42px;
  padding: 8px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--auth-blue-600);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

@keyframes auth-submit-spin {
  to { transform: rotate(360deg); }
}

.auth-msg {
  min-height: 18px;
  margin-top: 8px;
  color: rgba(16, 54, 88, .66);
  font-size: 12px;
  line-height: 1.55;
}

.auth-msg:empty {
  min-height: 0;
  margin-top: 0;
}

.auth-msg.error {
  color: #b8233c;
}

.auth-msg.success {
  color: #08785f;
}

.auth-card:has(.company-select:not([hidden])) .auth-card-header,
.auth-card:has(.auth-onboarding:not([hidden])) .auth-card-header,
.auth-card:has(.workspace-unavailable:not([hidden])) .auth-card-header {
  display: none;
}

@media (max-width: 1180px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    width: min(1100px, calc(100% - 48px));
    gap: 42px;
  }

  .auth-story h1 {
    font-size: clamp(40px, 5vw, 58px);
  }

  .auth-feature {
    min-height: 94px;
    padding: 14px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
  }

  .auth-feature-icon {
    width: 34px;
    height: 34px;
  }

  .auth-feature small {
    display: none;
  }

  .auth-contact-layout {
    grid-template-columns: minmax(210px, 1fr) auto;
    gap: 14px;
  }

  .auth-contact-phone strong {
    font-size: clamp(24px, 2.6vw, 31px);
  }

  .auth-contact-qrs {
    grid-template-columns: repeat(2, minmax(104px, 1fr));
    gap: 8px;
  }

  .auth-contact-qr {
    padding: 8px;
  }

  .auth-contact-qr img {
    width: 76px;
    height: 76px;
  }
}

@media (max-width: 820px) {
  .auth-page {
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: #dcebf6;
  }

  .auth-backdrop::before,
  .auth-backdrop::after {
    background-position: 42% center;
  }

  .auth-ambient {
    background:
      linear-gradient(180deg, rgba(238, 249, 255, .82), rgba(214, 238, 252, .58)),
      radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .66), transparent 48%);
  }

  .auth-shell {
    --auth-card-offset: 0px;
    display: flex;
    width: min(500px, calc(100% - 40px));
    min-height: 100dvh;
    padding: 34px 0 52px;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
  }

  .auth-story {
    order: 1;
    width: 100%;
    min-height: 0;
    padding: 0 4px;
  }

  .auth-story-copy {
    margin: 26px 0 0;
  }

  .auth-story-lead,
  .auth-feature-grid {
    display: none;
  }

  .auth-feature-grid {
    order: 3;
  }

  .auth-story h1 {
    max-width: 540px;
    font-size: clamp(30px, 6vw, 42px);
    line-height: 1.18;
  }

  .auth-story h1 span {
    display: inline;
    margin-left: .2em;
  }

  .auth-card {
    order: 2;
    width: 100%;
    padding: 28px;
  }

  .auth-card:has(.auth-onboarding:not([hidden])) {
    max-height: none;
  }

}

@media (max-width: 560px) {
  .auth-backdrop {
    inset: -8%;
  }

  .auth-backdrop::before,
  .auth-backdrop::after {
    background-position: 38% center;
  }

  .auth-shell {
    width: calc(100% - 24px);
    padding: max(12px, env(safe-area-inset-top)) 0 max(8px, env(safe-area-inset-bottom));
    gap: 10px;
  }

  .auth-brand {
    gap: 10px;
  }

  .auth-brand-identity {
    gap: 10px;
  }

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

  .auth-brand-name { font-size: 23px; }
  .auth-brand-system { font-size: 16px; }

  .auth-story-copy {
    margin-top: 17px;
  }

  .auth-story h1 {
    font-size: clamp(27px, 8vw, 34px);
  }

  .auth-card {
    padding: 24px 20px 20px;
    border-radius: 22px;
    background: rgba(250, 253, 255, .91);
  }

  .auth-legal-overlay { padding: 10px; }

  .auth-legal-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 20px;
  }

  .auth-legal-head { padding: 18px 18px 14px; }
  .auth-legal-body { padding: 18px; }
  .auth-legal-footer { padding: 10px 18px 16px; }

  .auth-card-header {
    margin-bottom: 16px;
  }

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

  .auth-contact-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .auth-contact-phone {
    padding: 2px 0 6px;
  }

  .auth-contact-phone strong {
    font-size: clamp(27px, 9vw, 35px);
  }

  .auth-contact-qrs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-contact-qr img {
    width: min(100%, 112px);
    height: auto;
    aspect-ratio: 1;
  }

  .auth-info-overlay {
    padding: 10px;
  }

  .auth-info-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 20px;
  }

  .auth-info-head {
    padding: 18px 18px 14px;
  }

  .auth-info-body {
    padding: 18px;
  }

  .auth-field {
    margin-bottom: 10px;
  }

  .auth-register-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .auth-input-shell,
  .auth-input-shell input {
    min-height: 40px;
  }

  .auth-inline-actions {
    grid-template-columns: 1fr;
  }

}

@media (max-aspect-ratio: 4 / 5) {
  .auth-backdrop::before {
    inset: -9%;
    opacity: .92;
    filter: blur(34px) saturate(108%);
    transform: scale(1.12);
  }

  .auth-backdrop::after {
    background-position: center 34%;
    background-size: 100% auto;
    opacity: .82;
    mask-image: linear-gradient(180deg, transparent 5%, #000 21%, #000 77%, transparent 94%);
  }
}

@media (max-height: 760px) and (min-width: 821px) {
  .auth-shell {
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .auth-story {
    min-height: calc(100dvh - 74px);
  }

  .auth-story-copy {
    margin-top: 24px;
    margin-bottom: 24px;
  }

  .auth-story h1 {
    font-size: clamp(38px, 3.7vw, 58px);
  }

  .auth-story-lead {
    margin-top: 16px;
    line-height: 1.65;
  }

  .auth-card {
    padding-top: 26px;
    padding-bottom: 24px;
  }

  .auth-card-header {
    margin-bottom: 14px;
  }

  .auth-field {
    margin-bottom: 9px;
  }
}

@media (max-height: 650px) and (min-width: 821px) {
  .auth-shell {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .auth-story {
    justify-content: flex-start;
  }

  .auth-story-copy {
    margin-top: auto;
    margin-bottom: auto;
  }

  .auth-feature-grid {
    display: none;
  }

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

  .auth-card-header {
    margin-bottom: 14px;
  }

  .auth-card h2 {
    font-size: 32px;
  }

  .auth-field {
    margin-bottom: 9px;
  }

  .auth-submit {
    height: 44px;
    min-height: 44px;
  }

  .auth-msg {
    min-height: 18px;
    margin-top: 8px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .auth-backdrop {
    animation: none;
    transform: scale(1.055);
  }

  .auth-submit,
  .auth-submit::before,
  .auth-submit-arrow,
  .auth-input-shell,
  .auth-password-toggle {
    transition: none;
  }

  .auth-submit-loader {
    animation-duration: 1.4s;
  }
}
