@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

body.fe-login-body,
body.fe-login-body * {
  box-sizing: border-box;
}

body.fe-login-body {
  margin: 0;
  color: #152033;
  background: #f4f7fa;
  font-family: "DM Sans", sans-serif;
  --navy-950: #07101d;
  --navy-900: #0a1525;
  --navy-850: #0e1b2e;
  --ink: #162237;
  --muted: #728096;
  --line: #dce4ed;
  --cyan: #13b7cf;
  --cyan-dark: #0795ae;
}

body.fe-login-body .navbar,
body.fe-login-body .web-footer,
body.fe-login-body footer,
body.fe-login-body .page-breadcrumbs,
body.fe-login-body .page-header-wrapper,
body.fe-login-body .page-footer {
  display: none !important;
}

body.fe-login-body .page-content-wrapper,
body.fe-login-body .page_content,
body.fe-login-body main,
body.fe-login-body #page-login {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent;
}

body.fe-login-body button,
body.fe-login-body input {
  font-family: inherit;
}

body.fe-login-body button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.input-shell input:focus,
.input-shell input:focus-visible,
.input-shell select:focus,
.input-shell select:focus-visible {
  outline: none;
  box-shadow: none;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(470px, 1.08fr) minmax(560px, 0.92fr);
  background: #f4f7fa;
}

.login-story {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: white;
  background:
    radial-gradient(circle at 78% 44%, rgba(27, 175, 203, 0.13), transparent 28%),
    linear-gradient(145deg, var(--navy-850), var(--navy-950));
}

.story-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(105, 141, 175, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 141, 175, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom right, black, transparent 82%);
}

.story-glow { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.story-glow--top { width: 520px; height: 520px; top: -340px; left: -210px; background: radial-gradient(circle, rgba(30, 190, 209, 0.18), transparent 68%); }
.story-glow--bottom { width: 520px; height: 520px; right: -280px; bottom: -300px; background: radial-gradient(circle, rgba(94, 93, 221, 0.18), transparent 68%); }

.story-topbar, .access-topbar { min-height: 84px; display: flex; align-items: center; justify-content: space-between; }
.story-topbar { padding: 0 52px; }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand__mark {
  width: 39px; height: 39px; display: grid; place-items: center; color: white;
  background: linear-gradient(145deg, #1bc5dc, #4775e8); border-radius: 11px;
  box-shadow: 0 9px 28px rgba(18, 184, 209, 0.2); transform: skew(-5deg);
}
.login-brand__mark span { font: 800 21px Manrope, sans-serif; transform: skew(5deg); }
.login-brand__copy { display: flex; flex-direction: column; }
.login-brand__copy strong { color: #f7fbff; font: 700 16px Manrope, sans-serif; letter-spacing: -0.02em; }
.login-brand__copy span { margin-top: 2px; color: #71829b; font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.story-environment {
  height: 30px; padding: 0 11px; display: flex; align-items: center; gap: 8px; color: #8ca0b8;
  font-size: 10px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); border-radius: 16px;
}
.story-environment span {
  width: 6px; height: 6px; background: #35d39a; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(53, 211, 154, 0.1), 0 0 12px rgba(53, 211, 154, 0.5);
}

.story-content { width: min(560px, calc(100% - 104px)); position: relative; z-index: 2; margin: auto 52px; }
.story-eyebrow { margin-bottom: 19px; display: flex; align-items: center; gap: 7px; color: #5ad1df; font-size: 10px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.story-content h1 { margin: 0; color: #f7fbff; font: 700 clamp(38px, 4vw, 60px) / 1.1 Manrope, sans-serif; letter-spacing: -0.055em; }
.story-content h1 span { color: transparent; background: linear-gradient(90deg, #5fd7e4, #7aa7f4); -webkit-background-clip: text; background-clip: text; }
.story-content > p { max-width: 515px; margin: 24px 0 0; color: #8ea0b8; font-size: 14px; line-height: 1.75; }
.story-features { margin-top: 34px; display: flex; gap: 34px; }
.story-features > div { display: flex; align-items: flex-start; gap: 10px; }
.feature-check {
  width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; color: #5ed4e1;
  background: rgba(24, 187, 209, 0.1); border: 1px solid rgba(72, 207, 224, 0.16); border-radius: 8px;
}
.story-features p { margin: 0; display: flex; flex-direction: column; }
.story-features strong { color: #c5d2e1; font-size: 11px; font-weight: 600; }
.story-features small { max-width: 180px; margin-top: 4px; color: #64768f; font-size: 9px; line-height: 1.45; }

.orbital-visual { width: 410px; height: 410px; position: absolute; right: -118px; bottom: 50px; opacity: 0.9; pointer-events: none; }
.orbital-ring { position: absolute; border: 1px solid rgba(86, 181, 204, 0.13); border-radius: 50%; }
.orbital-ring--outer { inset: 0; animation: fe-login-spin 28s linear infinite; }
.orbital-ring--outer::before, .orbital-ring--outer::after { content: ""; position: absolute; border-radius: 50%; }
.orbital-ring--outer::before { width: 7px; height: 7px; top: 48px; left: 55px; background: #39c8db; box-shadow: 0 0 18px #39c8db; }
.orbital-ring--outer::after { width: 4px; height: 4px; right: 20px; bottom: 135px; background: #7889e8; box-shadow: 0 0 14px #7889e8; }
.orbital-ring--inner { inset: 58px; border-style: dashed; animation: fe-login-spin 20s linear infinite reverse; }
.orbital-ring--inner span { width: 8px; height: 8px; position: absolute; right: 32px; top: 36px; background: #516ed7; border-radius: 50%; box-shadow: 0 0 20px #516ed7; }
.orbital-core {
  width: 138px; height: 138px; position: absolute; top: 136px; left: 136px; display: grid; place-items: center; align-content: center;
  color: white; background: radial-gradient(circle at 30% 25%, #1f3b58, #101e31); border: 1px solid rgba(93, 207, 222, 0.2);
  border-radius: 50%; box-shadow: 0 0 60px rgba(20, 172, 198, 0.14), inset 0 0 35px rgba(38, 146, 181, 0.08);
}
.orbital-core__mark { font: 800 41px Manrope, sans-serif; letter-spacing: -0.08em; }
.orbital-core small { margin-top: 2px; color: #5fb9c8; font-size: 7px; font-weight: 700; letter-spacing: 0.17em; }
.data-chip {
  position: absolute; z-index: 2; padding: 9px 11px; display: flex; align-items: center; gap: 9px; color: #b9c8d8;
  background: rgba(12, 27, 45, 0.78); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 11px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2); backdrop-filter: blur(12px);
}
.data-chip--users { left: -5px; top: 100px; }
.data-chip--sync { left: 36px; bottom: 66px; }
.data-chip__icon { width: 30px; height: 30px; display: grid; place-items: center; color: #51c8d7; background: rgba(18, 184, 209, 0.1); border-radius: 8px; }
.data-chip p { margin: 0; display: flex; flex-direction: column; }
.data-chip small { color: #60728a; font-size: 6px; letter-spacing: 0.13em; }
.data-chip strong { margin-top: 2px; font-size: 9px; }
.data-pulse { width: 8px; height: 8px; margin: 0 6px; background: #39d298; border-radius: 50%; box-shadow: 0 0 0 5px rgba(57, 210, 152, 0.08), 0 0 14px rgba(57, 210, 152, 0.55); }
.story-footer { min-height: 70px; padding: 0 52px; display: flex; align-items: center; gap: 10px; color: #53657c; font-size: 9px; }
.story-footer__divider { width: 3px; height: 3px; background: #3e5067; border-radius: 50%; }

.login-access {
  min-width: 0;
  min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(circle at 100% 0, rgba(18, 184, 209, 0.06), transparent 25%), #f5f8fb;
}
.access-topbar { padding: 0 42px; }
.access-topbar .login-brand { display: none; }
.access-links { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.access-links a, .access-links button {
  height: 36px; padding: 0 11px; border: 1px solid transparent; display: flex; align-items: center; gap: 7px;
  color: #7d899b; background: transparent; border-radius: 9px; cursor: pointer; font-size: 10px; text-decoration: none;
}
.access-links button { width: 36px; padding: 0; justify-content: center; color: #8591a2; border-color: #e1e7ee; background: rgba(255, 255, 255, 0.7); }
.access-links a:hover, .access-links button:hover { color: #087f93; background: white; }
.access-links .login-lang {
  height: 36px;
  padding: 3px;
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid #e1e7ee;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.7);
}
.access-links .login-lang a {
  width: auto;
  height: 28px;
  min-width: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  justify-content: center;
  color: #7d899b;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.access-links .login-lang a.is-active {
  color: #142033;
  background: white;
  box-shadow: 0 1px 4px rgba(32, 49, 72, 0.08);
}

.access-content { flex: 1; min-width: 0; width: 100%; display: grid; place-items: center; padding: 28px 42px 38px; }
.access-content > section { width: min(420px, 100%); max-width: 100%; min-width: 0; }
.for-forgot,
.for-signup,
.for-email-login,
.for-login-with-email-link,
.for-register { display: none; }
.login-card {
  width: 100%; padding: 36px 38px 30px; position: relative; background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(215, 224, 235, 0.96); border-radius: 20px;
  box-shadow: 0 28px 70px rgba(30, 50, 76, 0.1), 0 2px 8px rgba(30, 50, 76, 0.03); backdrop-filter: blur(16px);
}
.login-card::before {
  content: ""; position: absolute; top: -1px; left: 21%; width: 58%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(19, 183, 207, 0.7), transparent);
}
.login-card__heading { margin-bottom: 28px; }
.mobile-security { margin-bottom: 13px; display: flex; align-items: center; gap: 6px; color: #0c93a9; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.login-card h2 { margin: 0; color: var(--ink); font: 700 27px Manrope, sans-serif; letter-spacing: -0.035em; }
.login-card__heading > p { margin: 8px 0 0; color: #7d899b; font-size: 12px; }
.login-card form, .login-card .page-card-body { display: flex; flex-direction: column; gap: 17px; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.form-field > span, .form-signup .form-label { color: #48566c; font-size: 10px; font-weight: 700; }
.input-shell {
  height: 47px; padding: 0 13px; display: flex; align-items: center; gap: 10px; color: #8c99ab;
  background: #f6f8fa; border: 1px solid #e1e7ee; border-radius: 11px; transition: 180ms ease;
}
.input-shell:focus-within { color: #0aa0b7; background: white; border-color: #80d5df; box-shadow: 0 0 0 3px rgba(18, 184, 209, 0.08); }
.input-shell input, .login-card .form-control {
  min-width: 0; height: 45px; flex: 1; color: #263248; border: 0; outline: 0; background: transparent;
  box-shadow: none; font-size: 12px; padding: 0;
}
.form-signup .form-control, .login-card .form-group .form-control {
  height: 47px; padding: 0 13px; background: #f6f8fa; border: 1px solid #e1e7ee; border-radius: 11px;
}
.password-toggle {
  width: 30px; height: 30px; margin-right: -6px; border: 0; display: grid; place-items: center;
  color: transparent; font-size: 0; background: transparent center / 18px no-repeat; border-radius: 7px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2394a0b1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M2.5 12s3.5-6 9.5-6 9.5 6 9.5 6-3.5 6-9.5 6-9.5-6-9.5-6Z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E");
}
.password-toggle.is-visible {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%230b93a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m3 3 18 18M10.6 6.2A10.6 10.6 0 0 1 12 6c6 0 9.5 6 9.5 6a15.4 15.4 0 0 1-2.1 2.8M6.2 6.2A16.8 16.8 0 0 0 2.5 12s3.5 6 9.5 6c1.6 0 3-.4 4.2-1'/%3E%3C/svg%3E");
}
.form-options { display: flex; align-items: center; justify-content: flex-end; }
.forgot-link, .signup-note a { color: #0d91a6; font-size: 10px; font-weight: 600; text-decoration: none; }
.forgot-link:hover, .signup-note a:hover { color: #087489; }
.login-submit,
.login-card .btn-primary {
  height: 48px !important; margin-top: 3px; padding: 0 17px; border: 0; display: flex !important; align-items: center;
  justify-content: center; gap: 10px; color: white !important; background: linear-gradient(135deg, #0eb1c8, #1689c5) !important;
  border-radius: 11px; box-shadow: 0 10px 23px rgba(13, 158, 190, 0.22); font-size: 11px !important; font-weight: 700;
}
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 13px 28px rgba(13, 158, 190, 0.3); }
.page-card-body.invalid .input-shell { border-color: #e36a76; }
.divider { margin: 25px 0 17px; display: flex; align-items: center; gap: 11px; color: #9ba6b5; font-size: 9px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: #e7ecf2; }
.alternate-logins { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.alternate-button {
  height: 43px; padding: 0 11px; border: 1px solid #dfe6ee; display: flex; align-items: center; gap: 8px;
  color: #4c5a70; background: #f9fafc; border-radius: 10px; text-decoration: none; font-size: 10px; font-weight: 600;
}
.alternate-button svg:last-child { margin-left: auto; color: #a1acba; opacity: 0; }
.alternate-button:hover { color: #087e92; background: white; border-color: #b8dfe5; text-decoration: none; }
.alternate-button:hover svg:last-child { opacity: 1; }
.register-button { width: 100%; justify-content: center; }
.access-content > section.for-register { width: min(720px, 100%); margin-inline: auto; }
.form-register { gap: 8px; width: 100%; min-width: 0; }
.register-viewport { overflow: hidden; width: 100%; min-width: 0; }
.register-track {
  display: flex;
  width: 100%;
  transition: transform 280ms ease;
}
.register-step {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.register-track.is-shipping { transform: translateX(-100%); }
.register-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
.register-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.register-back {
  padding: 0; border: 0; background: transparent; color: #0d91a6; cursor: pointer;
  font-size: 11px; font-weight: 600;
}
.register-actions .login-submit { flex: 1; margin-top: 0; }
.for-register .login-card { padding: 18px 22px 14px; }
.for-register .login-card__heading { margin-bottom: 12px; }
.for-register .mobile-security { margin-bottom: 4px; }
.for-register .login-card h2 { font-size: 22px; }
.for-register .login-card__heading > p { margin-top: 4px; }
.for-register .form-field { gap: 3px; }
.for-register .input-shell { height: 34px; }
.for-register .input-shell input,
.for-register .input-shell select { height: 32px; }
.for-register .login-submit,
.for-register .login-submit:hover,
.for-register .login-submit:focus,
.for-register .login-submit:focus-visible {
  height: 38px !important;
  margin-top: 2px;
  box-shadow: none;
  transform: none;
  outline: none;
}
.for-register .signup-note { margin-top: 8px; }
.input-shell select {
  min-width: 0; height: 100%; flex: 1; border: 0; outline: 0; background: transparent;
  color: #263248; font-size: 12px; appearance: none;
}
.register-hint { margin: 2px 0 0; color: #8b97a8; font-size: 10px; line-height: 1.4; }
.register-status { margin: 12px 0 0; color: #0d7382; font-size: 12px; font-weight: 600; }
.register-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.login-security-note {
  margin-top: 21px; padding: 11px; display: flex; align-items: center; gap: 10px; background: #f4fafb;
  border: 1px solid #e3f0f2; border-radius: 10px;
}
.login-security-note > span { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; color: #109aae; background: #e4f6f8; border-radius: 8px; }
.login-security-note p { margin: 0; display: flex; flex-direction: column; }
.login-security-note strong { color: #536176; font-size: 9px; }
.login-security-note small { margin-top: 2px; color: #96a1b0; font-size: 8px; }
.signup-note { margin: 16px 0 0; color: #7d899b; font-size: 11px; text-align: center; }
.access-footer { min-height: 61px; padding: 0 42px; display: flex; align-items: center; justify-content: flex-end; color: #9ba6b5; font-size: 9px; }

@keyframes fe-login-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .orbital-ring { animation: none; }
  .register-track { transition: none; }
}

@media (max-width: 1120px) {
  .login-page { grid-template-columns: minmax(390px, 0.82fr) minmax(500px, 1fr); }
  .story-topbar, .story-footer { padding-right: 38px; padding-left: 38px; }
  .story-content { width: calc(100% - 76px); margin: auto 38px; }
  .story-content h1 { font-size: 42px; }
  .story-features { flex-direction: column; gap: 15px; }
  .orbital-visual { right: -190px; opacity: 0.62; }
}

@media (max-width: 860px) {
  .login-page { display: block; }
  .login-story { display: none; }
  .access-topbar { padding: 0 28px; }
  .access-topbar .login-brand { display: flex; }
  .access-topbar .login-brand__copy strong { color: #203048; }
  .access-topbar .login-brand__copy span { color: #8996a7; }
  .access-footer { justify-content: center; }
}

@media (max-width: 540px) {
  .access-topbar { min-height: 72px; padding: 0 18px; }
  .access-links a { width: 36px; padding: 0; justify-content: center; font-size: 0; border: 1px solid #e1e7ee; background: rgba(255, 255, 255, 0.7); }
  .access-content { padding: 24px 14px; }
  .login-card { padding: 30px 22px 25px; }
  .alternate-logins { grid-template-columns: 1fr; }
  .register-grid { grid-template-columns: 1fr 1fr; }
}

body.fe-register-open,
body.fe-register-open .login-page,
body.fe-register-open .login-access,
body.fe-register-open .login-story {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}
body.fe-register-open .access-topbar { min-height: 48px; }
body.fe-register-open .access-footer { min-height: 32px; }
body.fe-register-open .access-content {
  padding: 8px 42px;
  overflow: hidden;
  justify-items: center;
}

@media (max-width: 980px) {
  .register-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-height: 640px) {
  body.fe-register-open,
  body.fe-register-open .login-page { overflow: auto; }
}

html[data-theme="dark"] body.fe-login-body,
html[data-theme="dark"] body.fe-login-body .login-access {
  background: #0c1627;
  color: #e7eef8;
}
html[data-theme="dark"] body.fe-login-body .login-card {
  background: rgba(17, 30, 50, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] body.fe-login-body .login-card h2,
html[data-theme="dark"] body.fe-login-body .form-field > span,
html[data-theme="dark"] body.fe-login-body .input-shell input,
html[data-theme="dark"] body.fe-login-body .input-shell select {
  color: #eef3f8;
}
html[data-theme="dark"] body.fe-login-body .input-shell,
html[data-theme="dark"] body.fe-login-body .alternate-button,
html[data-theme="dark"] body.fe-login-body .access-links button,
html[data-theme="dark"] body.fe-login-body .access-links .login-lang {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #d5deea;
}
html[data-theme="dark"] body.fe-login-body .access-links .login-lang a.is-active {
  color: #eef3f8;
  background: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] body.fe-login-body .access-topbar .login-brand__copy strong { color: #f7fbff; }
