:root {
  --zaxms-ink: #151a2d;
  --zaxms-forest: #11162a;
  --zaxms-lime: #8173ff;
  --zaxms-mint: #45dcc6;
  --zaxms-coral: #ff7a74;
  --zaxms-paper: #f5f7fc;
}

html:has(.zaxms-auth), body.zaxms-standalone-page:has(.zaxms-auth) {
  width: 100%; min-width: 320px; min-height: 100%; margin: 0 !important; padding: 0 !important;
  overflow-x: hidden; background: var(--zaxms-paper);
}

body.zaxms-standalone-page:has(.zaxms-auth) { min-height: 100svh; }
body.zaxms-standalone-page:has(.zaxms-auth) #zaxms-app-root { width: 100%; min-height: 100svh; margin: 0; padding: 0; }
body.zaxms-standalone-page:has(.zaxms-auth) #wpadminbar { display: none !important; }
html:has(.zaxms-auth) { margin-top: 0 !important; }

.zaxms-auth, .zaxms-auth * { box-sizing: border-box; }
.zaxms-auth {
  position: relative; display: grid; grid-template-columns: minmax(420px, .92fr) minmax(540px, 1.08fr);
  width: 100vw; min-height: 100svh; margin: 0; color: var(--zaxms-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--zaxms-paper); isolation: isolate;
}

.zaxms-auth-story {
  position: relative; min-height: 100svh; overflow: hidden; padding: clamp(28px, 4vw, 64px);
  display: flex; flex-direction: column; color: #fff; background:
    radial-gradient(circle at 94% 4%, rgba(124,108,255,.35), transparent 31%),
    radial-gradient(circle at 15% 88%, rgba(69,220,198,.2), transparent 30%), linear-gradient(155deg, #171d35, #0d1224 78%);
}
.zaxms-auth-story::before {
  content: ""; position: absolute; width: 42vw; aspect-ratio: 1; left: -27vw; top: 17%;
  border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 7vw rgba(255,255,255,.025), 0 0 0 14vw rgba(255,255,255,.018);
}
.zaxms-auth-brand { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 12px; width: max-content; color: #fff; text-decoration: none !important; }
.zaxms-auth-brand > span, .zaxms-auth-mobile-brand > span {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px 13px 13px 4px;
  background: linear-gradient(135deg, #7c6cff, #45dcc6); color: white; font-size: 22px; font-weight: 950; letter-spacing: -.08em;
  box-shadow: 0 12px 28px rgba(69,57,207,.3);
}
.zaxms-auth-brand strong { font-size: 23px; letter-spacing: -.04em; }
.zaxms-auth-brand strong span { color: #a9a1ff; }
.zaxms-auth-story-copy { position: relative; z-index: 2; max-width: 610px; margin: auto 0; padding: 90px 0; }
.zaxms-auth-kicker, .zaxms-auth-step { margin: 0 0 20px; color: #a9a1ff; font-size: 11px; line-height: 1.2; font-weight: 900; letter-spacing: .18em; }
.zaxms-auth-story-copy h1 { max-width: 600px; margin: 0; color: #fff; font-size: clamp(46px, 5.1vw, 78px); line-height: .94; letter-spacing: -.065em; font-weight: 760; }
.zaxms-auth-story-copy > p:not(.zaxms-auth-kicker) { max-width: 540px; margin: 28px 0 0; color: rgba(255,255,255,.7); font-size: clamp(16px, 1.35vw, 20px); line-height: 1.65; }
.zaxms-auth-points { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 36px; }
.zaxms-auth-points span { display: inline-flex; align-items: center; gap: 9px; padding: 10px 13px 10px 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: rgba(255,255,255,.055); backdrop-filter: blur(10px); }
.zaxms-auth-points svg { width: 19px; height: 19px; color: var(--zaxms-lime); }
.zaxms-auth-points b { color: rgba(255,255,255,.86); font-size: 12px; font-weight: 700; }
.zaxms-auth-legal { position: relative; z-index: 2; margin: 0; color: rgba(255,255,255,.42); font-size: 11px; letter-spacing: .06em; }

.zaxms-auth-orbit { position: absolute; z-index: 1; right: -140px; bottom: -130px; width: 430px; height: 430px; border: 1px solid rgba(124,108,255,.2); border-radius: 50%; animation: zaxms-orbit 34s linear infinite; }
.zaxms-auth-orbit::before, .zaxms-auth-orbit::after { content: ""; position: absolute; border: 1px solid rgba(124,108,255,.14); border-radius: 50%; inset: 70px; }
.zaxms-auth-orbit::after { inset: 145px; background: rgba(124,108,255,.06); }
.zaxms-auth-orbit i { position: absolute; display: block; width: 17px; height: 17px; border-radius: 50%; background: var(--zaxms-lime); box-shadow: 0 0 0 8px rgba(124,108,255,.12); }
.zaxms-auth-orbit i:nth-child(1) { top: 22px; left: 125px; }.zaxms-auth-orbit i:nth-child(2) { right: 28px; top: 116px; background: var(--zaxms-coral); }.zaxms-auth-orbit i:nth-child(3) { left: 58px; bottom: 60px; background: var(--zaxms-mint); }.zaxms-auth-orbit i:nth-child(4) { inset: 50% auto auto 50%; width: 28px; height: 28px; }
@keyframes zaxms-orbit { to { transform: rotate(360deg); } }

.zaxms-auth-panel { min-width: 0; min-height: 100svh; display: grid; place-items: center; padding: clamp(32px, 6vw, 100px); background:
  linear-gradient(115deg, transparent 0 48%, rgba(124,108,255,.045) 48% 48.3%, transparent 48.3%), var(--zaxms-paper); }
.zaxms-auth-card { width: min(100%, 530px); animation: zaxms-card-in .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes zaxms-card-in { from { opacity: 0; transform: translateY(18px); } }
.zaxms-auth-mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 48px; }.zaxms-auth-mobile-brand strong { font-size: 21px; }
.zaxms-auth-step { color: #6258e8; margin-bottom: 13px; }
.zaxms-auth-card h2 { margin: 0; color: var(--zaxms-ink); font-size: clamp(38px, 4vw, 58px); line-height: 1; letter-spacing: -.055em; font-weight: 760; }
.zaxms-auth-subtitle { max-width: 470px; margin: 18px 0 36px; color: #65736f; font-size: 15px; line-height: 1.65; }
.zaxms-auth form { display: grid; gap: 19px; margin: 0; }
.zaxms-auth form > label, .zaxms-auth-grid label { display: grid; gap: 9px; margin: 0; }
.zaxms-auth label > span:first-child { color: #273f39; font-size: 12px; font-weight: 800; letter-spacing: .025em; }
.zaxms-auth label > span:first-child a { float: right; color: #366d5e; text-decoration: none; }
.zaxms-auth input:not([type="checkbox"]) {
  width: 100%; height: 57px; min-width: 0; margin: 0; padding: 0 17px; border: 1px solid #d5d9d2; border-radius: 14px;
  outline: 0; background: rgba(255,255,255,.75); color: var(--zaxms-ink); box-shadow: none; font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.zaxms-auth input:not([type="checkbox"]):hover { border-color: #b7c4bc; background: #fff; }
.zaxms-auth input:not([type="checkbox"]):focus { border-color: #7668f5; background: #fff; box-shadow: 0 0 0 4px rgba(118,104,245,.12); }
.zaxms-auth label small { margin-top: -2px; color: #79837f; font-size: 11px; line-height: 1.4; }
.zaxms-password-field { position: relative; display: block !important; }
.zaxms-password-field input { padding-right: 64px !important; }
.zaxms-password-field button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; padding: 8px; background: transparent; color: #6258e8; font-size: 11px; font-weight: 850; cursor: pointer; }
.zaxms-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.zaxms-auth-check { display: flex !important; align-items: flex-start; gap: 10px !important; cursor: pointer; }
.zaxms-auth-check input { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--zaxms-forest); }
.zaxms-auth-check span { color: #65736f !important; font-size: 12px !important; line-height: 1.5; font-weight: 550 !important; letter-spacing: 0 !important; }
.zaxms-auth-submit {
  width: 100%; min-height: 59px; margin-top: 4px; padding: 12px 13px 12px 21px; border: 0; border-radius: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--zaxms-ink); color: #fff !important;
  font: inherit; font-size: 14px; font-weight: 820; text-decoration: none !important; cursor: pointer; box-shadow: 0 16px 36px rgba(16,40,34,.17); transition: transform .2s, background .2s, box-shadow .2s;
}
.zaxms-auth-submit b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #7c6cff, #6657eb); color: white; font-size: 18px; }
.zaxms-auth-submit:hover { transform: translateY(-2px); background: #232a45; box-shadow: 0 20px 42px rgba(26,29,58,.24); }
.zaxms-auth-submit:disabled { opacity: .72; cursor: wait; transform: none; }
.zaxms-auth-submit.is-loading b { font-size: 11px; letter-spacing: .08em; }
.zaxms-auth-switch { margin: 25px 0 0; text-align: center; color: #78827f; font-size: 13px; }
.zaxms-auth-switch a { color: #5f55dd; font-weight: 800; text-decoration: none; }
.zaxms-auth-notice { margin: -14px 0 23px; padding: 13px 15px; border-radius: 12px; font-size: 12px; line-height: 1.5; }
.zaxms-auth-notice.is-error { border: 1px solid #f2bbb3; background: #fff0ed; color: #9b362a; }
.zaxms-auth-notice.is-success { border: 1px solid #a8d8c0; background: #e9f8f0; color: #236348; }
.zaxms-auth-notice.is-static { margin-top: -16px; }
.zaxms-auth-closed { padding: 27px; border: 1px solid #d7ddd5; border-radius: 20px; background: rgba(255,255,255,.55); }
.zaxms-auth-closed > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #e0f4e8; color: #205e4e; }.zaxms-auth-closed svg { width: 23px; }
.zaxms-auth-closed h3 { margin: 20px 0 8px; font-size: 20px; letter-spacing: -.025em; }.zaxms-auth-closed p { margin: 0 0 22px; color: #6d7975; font-size: 13px; line-height: 1.6; }

@media (max-width: 920px) {
  .zaxms-auth { grid-template-columns: 1fr; min-height: 100svh; }
  .zaxms-auth-story { min-height: 320px; padding: 28px 30px 38px; }
  .zaxms-auth-story-copy { margin: auto 0 0; padding: 70px 0 10px; }
  .zaxms-auth-story-copy h1 { max-width: 650px; font-size: clamp(42px, 9vw, 70px); }
  .zaxms-auth-story-copy > p:not(.zaxms-auth-kicker), .zaxms-auth-points, .zaxms-auth-legal { display: none; }
  .zaxms-auth-orbit { width: 320px; height: 320px; right: -110px; bottom: -130px; }
  .zaxms-auth-panel { min-height: auto; padding: 58px 28px 70px; place-items: start center; }
}

@media (max-width: 600px) {
  .zaxms-auth-story { display: none; }
  .zaxms-auth-panel { min-height: 100svh; padding: max(24px, env(safe-area-inset-top)) 20px max(34px, env(safe-area-inset-bottom)); place-items: center; background: radial-gradient(circle at 90% 4%, rgba(124,108,255,.15), transparent 25%), var(--zaxms-paper); }
  .zaxms-auth-card { width: 100%; }
  .zaxms-auth-mobile-brand { display: flex; margin-bottom: clamp(40px, 10vh, 80px); }
  .zaxms-auth-card h2 { font-size: clamp(38px, 11vw, 50px); }
  .zaxms-auth-subtitle { margin-bottom: 29px; }
  .zaxms-auth-grid { grid-template-columns: 1fr; gap: 19px; }
  .zaxms-auth input:not([type="checkbox"]) { height: 55px; }
  .zaxms-auth-submit { min-height: 57px; }
}

@media (prefers-reduced-motion: reduce) { .zaxms-auth-orbit, .zaxms-auth-card { animation: none; } }
