:root {
  color-scheme: light;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #17221e;
  background: #e9eeeb;
  --auth-accent: #176a52;
  --auth-accent-strong: #10533f;
  --auth-blue: #245f96;
  --auth-orange: #d95a31;
  --auth-border: #ced8d3;
  --auth-muted: #68766f;
}

* { box-sizing: border-box; }

html,
body { min-width: 320px; min-height: 100%; margin: 0; }

body { background: #e9eeeb; }

button,
input { font: inherit; }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(380px, 460px) minmax(0, 1fr);
  min-height: 100vh;
  overflow: hidden;
}

.auth-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px clamp(28px, 4.5vw, 64px) 26px;
  background: #ffffff;
  border-right: 1px solid var(--auth-border);
  animation: panel-enter .48s cubic-bezier(.2,.8,.2,1) both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand div { display: grid; gap: 2px; }
.brand strong { font-size: 15px; font-weight: 700; }
.brand span { color: var(--auth-muted); font-size: 11px; }

.auth-content {
  width: 100%;
  max-width: 340px;
  margin: auto 0;
  padding: 46px 0;
}

.auth-content-register { padding-top: 24px; padding-bottom: 24px; }

.environment {
  margin: 0 0 10px;
  color: var(--auth-orange);
  font-size: 11px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: 0;
}

.auth-lead {
  margin: 8px 0 28px;
  color: var(--auth-muted);
  font-size: 13px;
}

form { display: grid; gap: 14px; }
.field-group { display: grid; gap: 7px; }

label {
  color: #44534c;
  font-size: 13px;
  font-weight: 600;
}

input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  color: #17221e;
  background: #f8faf9;
  border: 1px solid #b9c6c0;
  border-radius: 6px;
  outline: none;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

input:hover { border-color: #9eaea6; }

input:focus {
  background: #ffffff;
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(23, 106, 82, .14);
}

.form-message {
  min-height: 20px;
  margin: -1px 0 0;
  color: #b42318;
  font-size: 12px;
}

.field-hint {
  margin: -2px 0 0;
  color: #79857f;
  font-size: 11px;
}

button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-top: 1px;
  color: #ffffff;
  background: var(--auth-accent);
  border: 1px solid var(--auth-accent);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(14, 75, 56, .17);
  transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

button:hover { background: var(--auth-accent-strong); box-shadow: 0 4px 9px rgba(14, 75, 56, .20); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 3px solid rgba(23, 106, 82, .18); outline-offset: 2px; }
button:disabled { cursor: wait; opacity: .78; }

button:disabled::after {
  width: 13px;
  height: 13px;
  margin-left: 8px;
  content: "";
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: auth-spin .7s linear infinite;
}

.auth-switch {
  margin: 0;
  color: var(--auth-muted);
  font-size: 13px;
  text-align: center;
}

.auth-switch a {
  color: var(--auth-accent);
  font-weight: 700;
  text-decoration: none;
}

.auth-switch a:hover { text-decoration: underline; }
.auth-switch a:focus-visible { outline: 3px solid rgba(23, 106, 82, .16); outline-offset: 3px; }

.auth-footer {
  color: #7c8882;
  font-size: 10px;
}

.visual-panel {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  background-color: #e4ebe7;
  background-image:
    linear-gradient(rgba(47,77,64,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,77,64,.055) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: visual-enter .7s .08s cubic-bezier(.2,.8,.2,1) both;
}

.visual-heading {
  position: absolute;
  top: clamp(32px, 6vh, 68px);
  left: clamp(34px, 6vw, 86px);
  z-index: 2;
  display: grid;
  gap: 9px;
}

.visual-heading span { color: var(--auth-blue); font-size: 11px; font-weight: 700; }
.visual-heading strong { max-width: 480px; font-size: clamp(25px, 3vw, 42px); font-weight: 700; }

.cargo-illustration {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(62vw, 620px);
  aspect-ratio: 1;
  margin-top: 40px;
}

.cargo-illustration > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.cargo-stack {
  position: absolute;
  right: 22%;
  bottom: 21%;
  left: 20%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, minmax(42px, 6vw));
  gap: 5px;
}

.cargo-stack i {
  display: block;
  background: var(--auth-accent);
  border: 1px solid #0f5943;
  animation: box-enter .38s cubic-bezier(.2,.8,.2,1) both;
}

.cargo-stack i:nth-child(3n+1) { background: #df673f; border-color: #b94324; }
.cargo-stack i:nth-child(4n+2) { background: #3277a8; border-color: #235b83; }
.cargo-stack i:nth-child(1) { animation-delay: .18s; }
.cargo-stack i:nth-child(2) { animation-delay: .21s; }
.cargo-stack i:nth-child(3) { animation-delay: .24s; }
.cargo-stack i:nth-child(4) { animation-delay: .27s; }
.cargo-stack i:nth-child(5) { animation-delay: .30s; }
.cargo-stack i:nth-child(6) { animation-delay: .33s; }
.cargo-stack i:nth-child(n+7) { animation-delay: .36s; }

.visual-index {
  position: absolute;
  right: clamp(24px, 4vw, 58px);
  bottom: clamp(24px, 5vh, 50px);
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #52635b;
}

.visual-index span:first-child { color: var(--auth-orange); font-size: 26px; font-weight: 700; }
.visual-index span:last-child { font-size: 10px; font-weight: 700; }

@keyframes panel-enter { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes visual-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes box-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes auth-spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-panel { min-height: 100vh; padding: 24px clamp(22px, 8vw, 54px); border-right: 0; }
  .auth-content { max-width: 390px; margin-right: auto; margin-left: auto; padding-top: 36px; padding-bottom: 36px; }
  .visual-panel { display: none; }
}

@media (max-width: 420px) {
  .auth-panel { padding: 18px; }
  .brand img { width: 46px; height: 46px; }
  .auth-content { padding-top: 30px; padding-bottom: 30px; }
  h1 { font-size: 26px; }
}

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

/* Auth redesign: calm aviation operations entry point. */
:root {
  --auth-accent: #176b56;
  --auth-accent-strong: #0f5947;
  --auth-blue: #2f6f9d;
  --auth-orange: #d45a37;
  --auth-border: #d5dfda;
  --auth-muted: #6b7c74;
  color: #20312c;
  background: #eef2ef;
}

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

body {
  overflow: hidden;
  background: #eef2ef;
}

.auth-shell {
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  background: #eef2ef;
}

.auth-panel {
  padding: 30px 42px 25px;
  background: #ffffff;
  border-right: 1px solid #d5dfda;
  box-shadow: 10px 0 28px rgba(31, 57, 45, .06);
}

.brand { min-height: 58px; gap: 13px; }
.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 9px;
}

.brand strong { color: #183f34; font-size: 16px; }
.brand span { color: #718179; font-size: 11px; }

.auth-content {
  max-width: 350px;
  padding: 30px 0;
}

.environment {
  margin-bottom: 12px;
  color: var(--auth-orange);
  font-size: 10px;
  letter-spacing: .1em;
}

h1 {
  color: #1d302c;
  font-size: 32px;
  letter-spacing: -.025em;
}

.auth-lead { margin: 9px 0 30px; color: var(--auth-muted); }
form { gap: 16px; }
.field-group { gap: 8px; }
label { color: #43564d; font-size: 13px; }

input {
  height: 48px;
  padding: 0 13px;
  color: #1d302c;
  background: #f7faf8;
  border-color: #c7d5cd;
  border-radius: 8px;
}

input:hover { border-color: #99b2a5; }
input:focus {
  background: #ffffff;
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(23, 107, 86, .14);
}

button {
  height: 48px;
  margin-top: 2px;
  border-radius: 8px;
  box-shadow: 0 7px 16px rgba(23, 107, 86, .17);
}

button:hover { box-shadow: 0 9px 20px rgba(23, 107, 86, .22); }
button:focus-visible { outline-color: rgba(23, 107, 86, .22); }
.auth-switch { margin-top: 2px; }

.auth-footer {
  color: #87958e;
  letter-spacing: .02em;
}

.visual-panel {
  display: block;
  padding: clamp(54px, 8vh, 92px) clamp(42px, 7vw, 112px);
  color: #18353e;
  background-color: #e5eeeb;
  background-image:
    linear-gradient(rgba(47, 90, 77, .065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 90, 77, .065) 1px, transparent 1px);
  background-size: 32px 32px;
}

.visual-heading {
  position: static;
  display: grid;
  gap: 11px;
  max-width: 610px;
}

.visual-heading span {
  color: var(--auth-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.visual-heading strong {
  max-width: 520px;
  color: #142d35;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.visual-heading p {
  max-width: 420px;
  margin: 2px 0 0;
  color: #698078;
  font-size: 14px;
  line-height: 1.7;
}

.cargo-illustration { display: none; }

.proof-sheet {
  width: min(680px, 100%);
  margin-top: clamp(52px, 8vh, 92px);
  padding: 21px 23px 18px;
  background: rgba(250, 252, 250, .64);
  border: 1px solid rgba(35, 85, 70, .24);
  border-radius: 13px;
  box-shadow: 0 18px 40px rgba(40, 70, 58, .1);
  backdrop-filter: blur(5px);
}

.proof-top,
.proof-route {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proof-top {
  justify-content: space-between;
  padding-bottom: 16px;
  color: #48675b;
  border-bottom: 1px solid rgba(42, 85, 70, .16);
  font-size: 12px;
  font-weight: 700;
}

.proof-top b {
  padding: 5px 8px;
  color: #176b56;
  background: rgba(23, 107, 86, .1);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .08em;
}

.proof-route {
  padding: 19px 0 22px;
}

.proof-route strong { color: #183f34; font-size: 20px; }
.proof-route span { color: #718179; font-size: 12px; }
.proof-route i { flex: 1; height: 1px; background: #b6c9bf; }
.proof-route b { color: var(--auth-orange); font-size: 11px; letter-spacing: .08em; }

.proof-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(42, 85, 70, .14);
  border-bottom: 1px solid rgba(42, 85, 70, .14);
}

.proof-metrics > div {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 16px 14px;
  border-right: 1px solid rgba(42, 85, 70, .14);
}

.proof-metrics > div:first-child { padding-left: 0; }
.proof-metrics > div:last-child { padding-right: 0; border-right: 0; }
.proof-metrics span { color: #718179; font-size: 11px; }
.proof-metrics strong { color: #1b5043; font-size: 23px; letter-spacing: -.02em; }
.proof-metrics > div:nth-child(2) strong { color: var(--auth-blue); }
.proof-metrics > div:nth-child(3) strong { color: var(--auth-orange); }

.proof-note {
  margin: 14px 0 0;
  color: #708079;
  font-size: 11px;
}

.visual-index {
  right: clamp(24px, 4vw, 58px);
  bottom: clamp(24px, 5vh, 50px);
}

.visual-index span:first-child { color: var(--auth-orange); }
.visual-index span:last-child { color: #567067; letter-spacing: .08em; }

@media (max-width: 820px) {
  body { overflow: auto; }
  .auth-shell { height: auto; min-height: 100vh; }
  .auth-panel { min-height: 100vh; padding: 28px clamp(22px, 8vw, 54px); }
  .auth-content { padding-top: 46px; padding-bottom: 46px; }
  .visual-panel { display: none; }
}

@media (max-width: 420px) {
  .auth-panel { padding: 20px 18px; }
  .brand img { width: 48px; height: 48px; }
  .auth-content { padding-top: 36px; padding-bottom: 36px; }
  h1 { font-size: 28px; }
  .proof-metrics strong { font-size: 20px; }
}

/* Final auth layer: Soft Cargo Workbench. */
:root {
  --auth-bg: #e0e5ec;
  --auth-surface: #e4e9f0;
  --auth-accent: #6d5dfc;
  --auth-accent-strong: #5847f0;
  --auth-text: #2f3b47;
  --auth-muted: #5c6873;
  --auth-border: rgba(184, 188, 194, .45);
  --auth-raise: 8px 8px 18px #b8bcc2, -8px -8px 18px #ffffff;
  --auth-raise-sm: 5px 5px 10px #b8bcc2, -5px -5px 10px #ffffff;
  --auth-inset: inset 4px 4px 8px #b8bcc2, inset -4px -4px 8px #ffffff;
  color-scheme: light;
  color: var(--auth-text);
  background: var(--auth-bg);
}

body { background: var(--auth-bg); }

.auth-shell {
  grid-template-columns: minmax(370px, 440px) minmax(0, 1fr);
  background: var(--auth-bg);
}

.auth-panel {
  overflow: auto;
  padding: 28px 40px 24px;
  background: var(--auth-bg);
  border-right: 0;
  box-shadow: 14px 0 32px rgba(184, 188, 194, .35);
}

.brand { gap: 12px; }
.brand img {
  border-radius: 13px;
  box-shadow: var(--auth-raise-sm);
}
.brand strong { color: var(--auth-text); font-size: 16px; }
.brand span { color: var(--auth-muted); }

.auth-content { max-width: 374px; padding: 28px 0; }
.environment { color: var(--auth-accent); font-size: 11px; letter-spacing: .08em; }

h1 {
  color: var(--auth-text);
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 750;
  letter-spacing: -.03em;
}

.auth-lead { color: var(--auth-muted); font-size: 13px; line-height: 1.6; }

label { color: var(--auth-muted); font-size: 12px; }

input {
  height: 44px;
  color: var(--auth-text);
  background: var(--auth-bg);
  border: 0;
  border-radius: 11px;
  box-shadow: var(--auth-inset);
}

input:focus {
  background: var(--auth-bg);
  outline: 2px solid rgba(109, 93, 252, .38);
  outline-offset: 1px;
  box-shadow: var(--auth-inset);
}

.form-message { min-height: 18px; }
.field-hint { color: var(--auth-muted); }

button {
  height: 46px;
  color: #ffffff;
  background: linear-gradient(145deg, #7667ff, #5847f0);
  border: 0;
  border-radius: 12px;
  font-weight: 720;
  box-shadow: 6px 6px 14px rgba(88, 71, 240, .22), -5px -5px 12px #ffffff;
}

button:hover {
  background: linear-gradient(145deg, #6758fa, #4d3ce8);
  box-shadow: 7px 7px 16px rgba(77, 60, 232, .24), -5px -5px 12px #ffffff;
}

button:active {
  background: #5847f0;
  box-shadow: inset 4px 4px 8px rgba(47, 36, 151, .42), inset -3px -3px 6px rgba(255, 255, 255, .22);
}

button:focus-visible {
  outline: 2px solid var(--auth-accent);
  outline-offset: 3px;
}

.auth-switch a { color: var(--auth-accent); }
.auth-switch a:focus-visible { outline: 2px solid var(--auth-accent); outline-offset: 3px; }
.auth-footer { color: var(--auth-muted); font-size: 11px; }

.visual-panel {
  padding: clamp(42px, 6vh, 76px) clamp(38px, 6vw, 100px);
  color: var(--auth-text);
  background-color: #e4e9f0;
  background-image:
    linear-gradient(rgba(184, 188, 194, .25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 188, 194, .25) 1px, transparent 1px),
    radial-gradient(circle at 78% 18%, rgba(109, 93, 252, .08), transparent 32%);
  background-size: 34px 34px, 34px 34px, auto;
}

.visual-heading span { color: var(--auth-accent); }
.visual-heading strong {
  max-width: 490px;
  color: var(--auth-text);
  font-size: clamp(30px, 3.6vw, 48px);
}
.visual-heading p { max-width: 430px; color: var(--auth-muted); }

.proof-sheet {
  width: min(620px, 100%);
  margin-top: clamp(36px, 6vh, 64px);
  padding: 18px 20px 15px;
  color: var(--auth-text);
  background: var(--auth-bg);
  border: 0;
  border-radius: 20px;
  box-shadow: var(--auth-raise);
  backdrop-filter: none;
}

.proof-top { color: var(--auth-muted); border-bottom-color: rgba(184, 188, 194, .42); }
.proof-top b { color: var(--auth-accent); background: rgba(109, 93, 252, .11); }
.proof-route strong { color: var(--auth-text); }
.proof-route span { color: var(--auth-muted); }
.proof-route i { background: rgba(184, 188, 194, .48); }
.proof-route b { color: var(--auth-accent); }
.proof-metrics { border-top-color: rgba(184, 188, 194, .35); border-bottom-color: rgba(184, 188, 194, .35); }
.proof-metrics > div { border-right-color: rgba(184, 188, 194, .35); }
.proof-metrics span { color: var(--auth-muted); }
.proof-metrics strong { color: var(--auth-text); font-variant-numeric: tabular-nums; }
.proof-metrics > div:nth-child(2) strong,
.proof-metrics > div:nth-child(3) strong { color: var(--auth-accent); }
.proof-note { color: var(--auth-muted); }
.visual-index span:first-child { color: var(--auth-accent); }
.visual-index span:last-child { color: var(--auth-muted); }

@media (max-width: 820px) {
  body { overflow: auto; background: var(--auth-bg); }
  .auth-shell { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 100vh; }
  .auth-panel { min-height: 100vh; box-shadow: none; }
}

@media (max-width: 420px) {
  .auth-panel { width: 100%; min-width: 0; padding: 20px 16px; }
  .auth-content { max-width: min(374px, 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-panel,
  .visual-panel { animation: none; }
}
