:root {
  --navy: #061124;
  --navy2: #0b1d3a;
  --blue: #2563eb;
  --blue2: #1d4ed8;
  --purple: #7c3aed;
  --cyan: #22d3ee;
  --text: #0f172a;
  --muted: #64748b;
  --border: #dce7f4;
  --success: #15803d;
  --danger: #b91c1c;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.auth-body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--text);
  background: #f8fbff;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(700px, 52.5%) minmax(560px, 47.5%);
}

.brand-panel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 14%, rgba(124, 58, 237, .26), transparent 28%),
    radial-gradient(circle at 88% 4%, rgba(34, 211, 238, .13), transparent 24%),
    linear-gradient(145deg, #050d1b 0%, #071426 52%, #0a2344 100%);
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(96, 165, 250, .12) 1.1px, transparent 1.1px);
  background-size: 15px 15px;
  opacity: .72;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 48%, #000 70%, #000 100%);
}

.brand-panel::after {
  content: "";
  position: absolute;
  left: -7%;
  right: -16%;
  bottom: -92px;
  height: 300px;
  background:
    radial-gradient(ellipse at 70% 95%, rgba(37, 99, 235, .28), transparent 45%),
    repeating-radial-gradient(ellipse at 70% 118%, transparent 0 13px, rgba(37, 99, 235, .21) 14px 15px);
  opacity: .70;
  transform: rotate(-4deg);
}

.brand-inner {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: clamp(28px, 3.4vw, 46px) clamp(34px, 4.1vw, 62px) 24px;
  display: flex;
  flex-direction: column;
}

.brand-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 16px 32px rgba(37, 99, 235, .32);
}

.brand-name {
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -.03em;
}

.brand-subtitle {
  margin-top: 2px;
  color: rgba(255,255,255,.74);
  font-size: 14px;
}

.hero-badge {
  width: fit-content;
  margin-top: clamp(24px, 3.1vw, 36px);
  padding: 8px 14px;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(37,99,235,.48), rgba(124,58,237,.42));
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 950;
}

.hero-zone {
  position: relative;
  margin-top: clamp(24px, 2.6vw, 34px);
  flex: 0 0 auto;
  min-height: clamp(225px, 28vh, 300px);
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 690px;
}

.hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 3.05vw, 50px);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.hero-copy h1 span {
  background: linear-gradient(90deg, #60a5fa, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accent-line {
  width: 58px;
  height: 3px;
  border-radius: 999px;
  margin: clamp(16px, 1.7vw, 22px) 0;
  background: linear-gradient(90deg, #60a5fa, #7c3aed);
}

.hero-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(13px, 1vw, 15.5px);
  line-height: 1.55;
}

.orbit-visual {
  position: absolute;
  z-index: 2;
  right: clamp(-30px, 1.1vw, 18px);
  top: clamp(74px, 7.4vw, 104px);
  width: clamp(210px, 19vw, 295px);
  height: clamp(210px, 19vw, 295px);
  pointer-events: none;
}

.ring {
  position: absolute;
  border-radius: 999px;
  border: 1px dashed rgba(96, 165, 250, .34);
}

.ring.one {
  inset: 8%;
}

.ring.two {
  inset: 19%;
  border-style: solid;
  opacity: .50;
}

.ring.three {
  inset: 30%;
  border-style: solid;
  opacity: .28;
}

.shield-core {
  position: absolute;
  left: 30%;
  top: 30%;
  width: 40%;
  height: 40%;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(96,165,250,.34), rgba(37,99,235,.12));
  box-shadow: 0 0 58px rgba(37,99,235,.38);
}

.shield-core svg {
  width: 84%;
  height: 84%;
  stroke: #93c5fd;
  fill: rgba(37,99,235,.76);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orbit-node {
  position: absolute;
  width: clamp(42px, 3.5vw, 54px);
  height: clamp(42px, 3.5vw, 54px);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(37,99,235,.24);
  border: 1px solid rgba(96,165,250,.38);
  box-shadow: 0 14px 26px rgba(0,0,0,.16);
}

.orbit-node svg {
  width: 50%;
  height: 50%;
  stroke: #60a5fa;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.node-top {
  left: 41%;
  top: 3%;
}

.node-left {
  left: 7%;
  top: 56%;
}

.node-right {
  right: 7%;
  top: 56%;
}

.feature-list {
  width: min(100%, 500px);
  margin-top: 16px;
  flex: 0 0 auto;
  position: relative;
  z-index: 4;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
}

.feature-icon.blue {
  background: rgba(37,99,235,.42);
}

.feature-icon.purple {
  background: rgba(124,58,237,.43);
}

.feature-icon.cyan {
  background: rgba(6,182,212,.40);
}

.feature-icon svg,
.security-note svg,
.footer-brand svg {
  width: 22px;
  height: 22px;
  stroke: #bfdbfe;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-row strong {
  display: block;
  font-weight: 900;
  font-size: 14.5px;
}

.feature-row span {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
}

.security-note {
  width: min(100%, 500px);
  margin-top: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.86);
  border-radius: 14px;
  line-height: 1.42;
  font-size: 13px;
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
}

.security-note svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.brand-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(255,255,255,.70);
  font-size: 12px;
  flex: 0 0 auto;
  position: relative;
  z-index: 4;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
}

.footer-brand svg {
  width: 18px;
  height: 18px;
}

.brand-footer i {
  display: block;
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,.22);
}

.form-panel {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 74px clamp(30px, 4.4vw, 66px) 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 5%, rgba(96,165,250,.17), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
}

.form-panel::after {
  content: "";
  position: absolute;
  right: -225px;
  top: 190px;
  width: 640px;
  height: 400px;
  background: repeating-radial-gradient(ellipse at center, transparent 0 22px, rgba(37,99,235,.15) 23px 24px);
  opacity: .24;
  transform: rotate(-8deg);
}

.language-chip {
  position: absolute;
  top: 28px;
  right: clamp(30px, 3.6vw, 56px);
  z-index: 5;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  border: 1px solid #edf2f7;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 850;
}

.language-chip svg {
  width: 17px;
  height: 17px;
  stroke: #0f172a;
  fill: none;
  stroke-width: 2;
}

.form-stack {
  position: relative;
  z-index: 2;
  width: min(100%, 540px);
  display: grid;
  gap: 16px;
  justify-items: center;
}

.mobile-brand {
  display: none;
  align-items: center;
  gap: 14px;
  justify-self: start;
  margin-bottom: 2px;
}

.mobile-brand .brand-name {
  color: var(--text);
}

.mobile-brand .brand-subtitle {
  color: var(--muted);
}

.auth-card {
  width: 100%;
  background: rgba(255,255,255,.96);
  border: 1px solid #e2eaf5;
  border-radius: 22px;
  box-shadow: 0 24px 65px rgba(15,23,42,.10);
  padding: clamp(30px, 2.9vw, 42px) clamp(34px, 3.4vw, 46px);
}

.card-label {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 950;
  margin-bottom: 8px;
  font-size: 12.5px;
}

.auth-card h2 {
  margin: 0;
  font-size: clamp(27px, 2.05vw, 32px);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.auth-card > p {
  margin: 10px 0 22px;
  color: var(--muted);
  line-height: 1.50;
  font-size: 15px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label > span {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
  font-size: 14px;
}

.input-box {
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 13px;
  transition: border .16s ease, box-shadow .16s ease;
}

.input-box:focus-within {
  border-color: rgba(37,99,235,.72);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.input-box svg {
  width: 20px;
  height: 20px;
  stroke: #526176;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-right: 11px;
  flex: 0 0 20px;
}

.input-box.no-icon {
  padding-left: 13px;
}

.input-box input {
  border: 0;
  outline: 0;
  width: 100%;
  min-height: 48px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  font-size: 14.5px;
}

.input-box input::placeholder {
  color: #728196;
}

.show-btn {
  border: 0;
  background: #eef4ff;
  color: var(--blue2);
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: -2px;
  font-size: 14px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.remember input {
  width: 17px;
  height: 17px;
}

.form-row a {
  color: var(--blue2);
  font-weight: 850;
  text-decoration: none;
}

.primary-btn {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  color: #fff;
  font: inherit;
  font-weight: 950;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(37,99,235,.23);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 21px 0 17px;
  color: #718096;
  font-size: 14px;
  font-weight: 750;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: #e3eaf4;
  flex: 1;
}

.request-link {
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d7e3f4;
  background: #f8fbff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  gap: 14px;
}

.request-link .request-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
}

.request-link svg {
  width: 25px;
  height: 25px;
  stroke: var(--blue2);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.request-link div:nth-child(2) {
  flex: 1;
}

.request-link strong {
  display: block;
  color: var(--blue2);
  font-size: 16px;
}

.request-link span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
}

.request-link em {
  color: var(--blue);
  font-style: normal;
  font-size: 22px;
}

.security-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #69788d;
  font-size: 14px;
  font-weight: 700;
  min-height: 20px;
}

.security-footer svg {
  width: 18px;
  height: 18px;
  stroke: #64748b;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flash-box {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.flash-box > div {
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.flash-box .success {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #166534;
}

.flash-box .error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.flash-box .warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.field-hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-weight: 750;
  font-size: 12.5px;
}

.field-hint.good {
  color: var(--success);
}

.field-hint.bad {
  color: var(--danger);
}

.status-card {
  text-align: center;
}

.status-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: #fff7ed;
  color: #c2410c;
  display: grid;
  place-items: center;
  font-weight: 950;
  font-size: 26px;
}

@media (max-width: 1400px) {
  .auth-shell {
    grid-template-columns: minmax(640px, 52.5%) minmax(520px, 47.5%);
  }

  .hero-copy h1 {
    font-size: clamp(33px, 2.75vw, 45px);
  }

  .orbit-visual {
    width: clamp(200px, 18vw, 265px);
    height: clamp(200px, 18vw, 265px);
    right: -30px;
    top: 78px;
  }

  .form-stack {
    width: min(100%, 510px);
  }
}

@media (max-height: 820px) {
  .brand-inner {
    padding-top: 26px;
    padding-bottom: 16px;
  }

  .hero-badge {
    margin-top: 22px;
  }

  .hero-zone {
    margin-top: 20px;
    min-height: 225px;
  }

  .hero-copy h1 {
    font-size: clamp(31px, 2.7vw, 42px);
  }

  .hero-copy p {
    font-size: 13.5px;
  }

  .orbit-visual {
    width: clamp(190px, 17vw, 245px);
    height: clamp(190px, 17vw, 245px);
    top: 70px;
  }

  .feature-list {
    margin-top: 8px;
  }

  .feature-row {
    min-height: 48px;
    padding: 6px 0;
  }

  .feature-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

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

  .security-note {
    margin-top: 8px;
    padding: 9px 13px;
  }

  .brand-footer {
    padding-top: 8px;
  }

  .form-panel {
    padding-top: 72px;
    padding-bottom: 22px;
  }

  .auth-card {
    padding: 28px 36px;
  }

  .form-stack {
    gap: 12px;
  }
}

@media (max-width: 1180px) {
  .auth-shell {
    grid-template-columns: 43% 57%;
  }

  .hero-zone {
    min-height: 250px;
  }

  .orbit-visual {
    opacity: .24;
    right: -125px;
  }

  .feature-list {
    width: min(100%, 460px);
  }
}

@media (max-width: 900px) {
  .auth-shell {
    display: block;
  }

  .brand-panel {
    display: none;
  }

  .form-panel {
    min-height: 100vh;
    padding: 28px 18px;
  }

  .language-chip {
    display: none;
  }

  .mobile-brand {
    display: flex;
  }
}

@media (max-width: 520px) {
  .auth-card {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .security-footer {
    font-size: 13px;
  }
}
