:root {
  --auth-ink: #172033;
  --auth-text: #314156;
  --auth-muted: #63748a;
  --auth-line: #d7e1ee;
  --auth-panel: rgba(255, 255, 255, .92);
  --auth-soft: #f5f8fc;
  --auth-blue: #1268c3;
  --auth-blue-deep: #164a91;
  --auth-teal: #11a6a2;
  --auth-green: #2da66f;
  --auth-amber: #c78622;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: #f7f9fc;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--auth-ink);
  font: 16px/1.5 Arial, Helvetica, sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .82) 0%, rgba(244, 248, 252, .95) 46%, #eef4fa 100%);
}

a { color: inherit; }

.auth-shell {
  width: min(1160px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 438px) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  padding: clamp(22px, 4vw, 46px) 0;
}

.auth-panel {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(213, 225, 239, .92);
  border-radius: 8px;
  background: var(--auth-panel);
  box-shadow: 0 24px 56px rgba(35, 63, 96, .12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--auth-blue-deep);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0;
}

.brand-mark {
  width: 39px;
  height: 39px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--auth-teal), var(--auth-blue));
  box-shadow: 0 12px 26px rgba(18, 104, 195, .2);
}

.eyebrow {
  display: block;
  width: max-content;
  margin: 32px 0 12px;
  color: var(--auth-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  margin: 16px 0 26px;
  color: var(--auth-text);
  font-size: 16px;
}

.actions {
  display: grid;
  gap: 11px;
  margin-bottom: 22px;
}

.button {
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px 12px 17px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(25, 71, 118, .15);
}

.button:focus-visible,
.quick-links a:focus-visible {
  outline: 3px solid rgba(18, 104, 195, .24);
  outline-offset: 3px;
}

.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--auth-blue), var(--auth-blue-deep));
}

.secondary {
  color: var(--auth-blue-deep);
  background: #fff;
  border-color: var(--auth-line);
}

.secondary:hover {
  border-color: rgba(18, 104, 195, .38);
  background: #fdfefe;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--auth-line);
}

.quick-links a {
  min-height: 82px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
  color: var(--auth-blue-deep);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: border-color .15s ease, background .15s ease;
}

.quick-links a:hover {
  border-color: rgba(17, 166, 162, .42);
  background: #ffffff;
}

.quick-links span {
  display: block;
  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 600;
  margin-top: 3px;
}

.auth-visual {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.visual-frame {
  border: 1px solid rgba(213, 225, 239, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 26px 60px rgba(45, 83, 124, .12);
  overflow: hidden;
}

.visual-frame img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.signal {
  min-height: 78px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  padding: 12px;
}

.signal strong {
  display: block;
  color: var(--auth-ink);
  font-size: 13px;
  line-height: 1.2;
}

.signal span {
  display: block;
  margin-top: 4px;
  color: var(--auth-muted);
  font-size: 12px;
}

.signal:nth-child(1) { border-top-color: var(--auth-teal); }
.signal:nth-child(2) { border-top-color: var(--auth-green); }
.signal:nth-child(3) { border-top-color: var(--auth-amber); }

.compat-shell {
  width: min(460px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.compat-panel {
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 56px rgba(35, 63, 96, .12);
  padding: 28px;
}

.compat-panel h1 {
  max-width: none;
  margin: 24px 0 10px;
  font-size: 30px;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .visual-frame img {
    max-height: 330px;
  }
}

@media (max-width: 560px) {
  .auth-shell {
    width: min(100vw - 24px, 440px);
  }

  .auth-panel {
    padding: 24px;
  }

  h1 {
    max-width: 9ch;
    font-size: 38px;
  }

  .quick-links,
  .signal-grid {
    grid-template-columns: 1fr;
  }

  .button {
    justify-content: center;
  }

  .button::after {
    display: none;
  }
}
