:root {
  --ink: #0f172a;
  --ink-soft: #344054;
  --muted: #6f7b8f;
  --blue: #0d6efd;
  --blue-dark: #0755c7;
  --blue-soft: #eaf3ff;
  --paper: #f7f9fc;
  --line: rgba(15, 23, 42, .11);
  --white: #fff;
  --font: "Manrope", sans-serif;
  --serif: "Instrument Serif", serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #061329; }
body { min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.auth-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(460px, .88fr); min-width: 0; min-height: 100vh; }

.auth-showcase {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  overflow: hidden;
  padding: clamp(34px, 4.5vw, 72px);
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(29,124,255,.28), transparent 31%),
    radial-gradient(circle at 16% 78%, rgba(117,89,255,.18), transparent 34%),
    linear-gradient(145deg, #071b3b, #041329 68%, #020711);
}

.auth-showcase::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: .58;
  background-image:
    linear-gradient(rgba(111,169,255,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,169,255,.13) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 88%, transparent);
}

.auth-showcase::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 600px;
  height: 600px;
  right: -240px;
  top: 20%;
  border: 1px solid rgba(110,173,255,.2);
  border-radius: 50%;
  box-shadow: 0 0 0 110px rgba(89,147,231,.045), 0 0 0 230px rgba(89,147,231,.025);
}

.auth-back {
  position: absolute;
  top: 28px;
  left: clamp(28px, 4vw, 64px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(235,243,255,.65);
  font-size: 11px;
  font-weight: 700;
  transition: color .2s ease, translate .2s ease;
}

.auth-back:hover { color: #fff; translate: -3px 0; }
.showcase-logo { width: 148px; margin-top: 44px; }
.showcase-copy { width: min(640px, 92%); margin: auto 0; padding: 54px 0; }

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  color: #afd0ff;
  border: 1px solid rgba(112,170,250,.25);
  border-radius: 999px;
  background: rgba(13,110,253,.12);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.auth-eyebrow > i { width: 6px; height: 6px; border-radius: 50%; background: #63a7ff; box-shadow: 0 0 0 5px rgba(99,167,255,.11), 0 0 18px rgba(99,167,255,.75); }
.showcase-copy h1 { margin: 25px 0 20px; font-size: clamp(47px, 4.3vw, 72px); line-height: .98; letter-spacing: -.06em; }
.showcase-copy h1 em { color: #72b0ff; font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
.showcase-copy > p { max-width: 570px; margin: 0; color: rgba(225,235,250,.62); font-size: 14px; line-height: 1.75; }

.workflow-card {
  width: min(570px, 100%);
  margin-top: 34px;
  padding: 18px;
  border: 1px solid rgba(115,177,255,.2);
  border-radius: 18px;
  background: rgba(18,49,91,.6);
  box-shadow: 0 28px 70px rgba(0,7,20,.25), inset 0 1px rgba(255,255,255,.06);
  backdrop-filter: blur(18px);
}

.workflow-card header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; color: rgba(235,243,255,.72); border-bottom: 1px solid rgba(255,255,255,.08); font-size: 9px; }
.workflow-card header span { display: flex; align-items: center; gap: 6px; color: #84bcff; font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.workflow-card header span i { width: 5px; height: 5px; border-radius: 50%; background: #4fdbad; box-shadow: 0 0 10px rgba(79,219,173,.8); }
.workflow-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; padding-top: 16px; }
.workflow-steps span { display: grid; place-items: center; gap: 7px; min-height: 76px; color: rgba(235,243,255,.72); border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(255,255,255,.045); font-size: 8px; }
.workflow-steps span i { color: #70afff; font-size: 17px; }
.workflow-steps small { width: 26px; height: 1px; background: linear-gradient(90deg, rgba(111,175,255,.25), #70afff); }

.activation-list { display: grid; width: min(570px, 100%); margin-top: 32px; border: 1px solid rgba(115,177,255,.18); border-radius: 18px; background: rgba(18,49,91,.52); backdrop-filter: blur(18px); }
.activation-list span { display: flex; align-items: center; gap: 13px; min-height: 58px; padding: 0 18px; color: rgba(235,243,255,.76); border-bottom: 1px solid rgba(255,255,255,.07); font-size: 10px; }
.activation-list span:last-child { border-bottom: 0; }
.activation-list i { color: #74b1ff; font-size: 16px; }

.security-card { display: flex; align-items: center; gap: 15px; width: min(520px, 100%); margin-top: 32px; padding: 20px; border: 1px solid rgba(115,177,255,.18); border-radius: 18px; background: rgba(18,49,91,.52); backdrop-filter: blur(18px); }
.security-card > i { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; color: #82baff; border-radius: 14px; background: rgba(90,157,248,.15); font-size: 20px; }
.security-card div { display: grid; gap: 5px; }
.security-card strong { font-size: 11px; }
.security-card span { color: rgba(225,235,250,.55); font-size: 9px; line-height: 1.55; }

.showcase-note { display: flex; align-items: center; gap: 11px; color: rgba(225,235,250,.52); font-size: 9px; }
.showcase-note > i { display: grid; place-items: center; width: 36px; height: 36px; color: #7db7ff; border: 1px solid rgba(115,177,255,.18); border-radius: 11px; background: rgba(42,98,175,.12); font-size: 14px; }
.showcase-note span { display: grid; gap: 2px; }
.showcase-note strong { color: rgba(243,247,255,.88); font-size: 10px; }

.auth-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: 100vh;
  min-width: 0;
  overflow: hidden;
  padding: 60px clamp(32px, 5vw, 82px);
  background: #f7f9fc;
}

.auth-panel::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: .78;
  background-image:
    linear-gradient(rgba(13,110,253,.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,110,253,.065) 1px, transparent 1px);
  background-size: 64px 64px;
}

.auth-panel::after { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; right: -250px; top: -240px; border-radius: 50%; background: rgba(52,137,255,.13); filter: blur(85px); }

.auth-card {
  justify-self: center;
  width: 100%;
  max-width: 470px;
  min-width: 0;
  padding: clamp(30px, 3.2vw, 46px);
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 35px 95px rgba(15,23,42,.12), inset 0 1px #fff;
  backdrop-filter: blur(22px) saturate(135%);
  animation: authEnter .7s var(--ease) both;
}

@keyframes authEnter { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.login-logo { width: 138px; margin-bottom: 37px; }
.auth-heading > span { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.auth-heading h2 { margin: 10px 0 10px; font-size: clamp(30px, 2.6vw, 41px); line-height: 1.05; letter-spacing: -.045em; }
.auth-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

form { display: grid; gap: 10px; margin-top: 30px; }
form > label { margin-top: 4px; color: #435069; font-size: 9px; font-weight: 800; }
.input-wrap { position: relative; display: flex; align-items: center; min-width: 0; }
.input-wrap > i { position: absolute; left: 16px; color: #8b98aa; font-size: 14px; pointer-events: none; }
.input-wrap input { width: 100%; height: 54px; padding: 0 16px 0 44px; color: var(--ink); border: 1px solid rgba(15,23,42,.11); border-radius: 13px; background: rgba(248,250,253,.94); outline: 0; font-size: 11px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.input-wrap input::placeholder { color: #a1aab8; }
.input-wrap input:hover { border-color: rgba(13,110,253,.25); }
.input-wrap input:focus { border-color: rgba(13,110,253,.65); background: #fff; box-shadow: 0 0 0 4px rgba(13,110,253,.09); }
.input-wrap:focus-within > i { color: var(--blue); }
.input-wrap input.input-error { border-color: #d24c64; background: #fff8f9; box-shadow: 0 0 0 4px rgba(210,76,100,.08); }
.password-container input { padding-right: 50px; }

.password-toggle { position: absolute; right: 8px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; color: #7f8b9d; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.password-toggle:hover { color: var(--blue); background: var(--blue-soft); }

.auth-submit, .auth-secondary { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 52px; margin-top: 8px; border-radius: 13px; font-size: 10px; font-weight: 800; cursor: pointer; transition: translate .2s ease, box-shadow .2s ease, background .2s ease; }
.auth-submit { color: #fff; border: 0; background: linear-gradient(135deg, #075bd8, #1682ff); box-shadow: 0 14px 32px rgba(13,110,253,.24); }
.auth-submit:hover { translate: 0 -2px; box-shadow: 0 18px 38px rgba(13,110,253,.31); }
.auth-submit i { font-size: 11px; }
.auth-secondary { color: var(--blue-dark); border: 1px solid rgba(13,110,253,.18); background: var(--blue-soft); }
.auth-secondary:hover { translate: 0 -2px; background: #dcecff; }
.auth-submit:disabled, .auth-secondary:disabled { color: #8b96a7; background: #e3e8ef; box-shadow: none; cursor: not-allowed; translate: 0; }

.auth-links { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 10px; }
.auth-links.single { justify-content: center; }
.auth-links a { display: inline-flex; align-items: center; gap: 6px; color: #526079; font-size: 9px; font-weight: 700; transition: color .2s ease; }
.auth-links a:hover { color: var(--blue); }

.error-msg, .success-msg { display: none; padding: 11px 12px; border: 1px solid; border-radius: 11px; font-size: 9px; line-height: 1.5; }
.error-msg { color: #a52a44; border-color: rgba(210,76,100,.18); background: #fff2f4; }
.success-msg { color: #08705b; border-color: rgba(32,185,128,.18); background: #effbf7; }

.auth-help { position: absolute; bottom: 25px; margin: 0; color: #8994a6; font-size: 8px; }
.auth-help a { color: var(--blue); font-weight: 800; }
.shake { animation: shake .34s ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  50% { transform: translateX(7px); }
  75% { transform: translateX(-4px); }
}

@media (max-width: 1050px) {
  .auth-layout { grid-template-columns: minmax(0, 1fr) minmax(430px, .9fr); }
  .auth-showcase { padding-inline: 42px; }
  .showcase-copy h1 { font-size: 52px; }
}

@media (max-width: 820px) {
  .auth-layout { grid-template-columns: minmax(0, 1fr); width: 100%; }
  .auth-showcase { min-height: 430px; padding: 30px 28px; }
  .auth-back { top: 24px; left: 28px; }
  .showcase-logo { width: 126px; margin-top: 40px; }
  .showcase-copy { width: 100%; margin: auto 0 0; padding: 50px 0 22px; }
  .showcase-copy h1 { margin-block: 18px 13px; font-size: clamp(39px, 8vw, 52px); }
  .showcase-copy > p { max-width: 620px; font-size: 12px; }
  .workflow-card, .activation-list, .security-card, .showcase-note { display: none; }
  .auth-panel { min-height: auto; padding: 56px 22px 76px; overflow: visible; }
  .auth-card { width: min(100%, 520px); }
  .auth-help { bottom: 24px; }
}

@media (max-width: 520px) {
  .auth-showcase { min-height: 370px; }
  .showcase-copy h1 { font-size: 38px; }
  .auth-eyebrow { font-size: 7px; }
  .auth-card { padding: 27px 20px; border-radius: 22px; }
  .login-logo { width: 120px; margin-bottom: 30px; }
  .auth-heading h2 { font-size: 31px; }
  .auth-links { align-items: flex-start; flex-direction: column; gap: 13px; }
  .auth-links.single { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
