* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  color: #082242;
  font-family: Inter, Roboto, "SF Pro Display", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(31, 130, 233, 0.2), transparent 26%),
    radial-gradient(circle at 82% 14%, rgba(69, 182, 229, 0.22), transparent 28%),
    linear-gradient(180deg, #eef8ff 0%, #f7fbff 56%, #eaf4ff 100%);
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

.login-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 460px);
  gap: 36px;
  width: 100%;
  min-height: 100vh;
  padding: 52px clamp(24px, 5vw, 72px);
  overflow: hidden;
}

.login-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(31, 130, 233, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 130, 233, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.74), transparent 92%);
  pointer-events: none;
}

.login-page:before,
.login-page:after {
  content: "";
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(31, 130, 233, 0.12);
  pointer-events: none;
}

.login-page:before {
  width: 520px;
  height: 520px;
  left: -160px;
  bottom: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 62%);
}

.login-page:after {
  width: 260px;
  height: 260px;
  right: 9%;
  top: 8%;
  transform: rotate(18deg);
  border-radius: 42px;
}

.login-orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(31, 130, 233, 0.16);
  border-radius: 999px;
  pointer-events: none;
}

.orbit-a {
  width: 430px;
  height: 120px;
  left: 24%;
  top: 18%;
  transform: rotate(-14deg);
}

.orbit-b {
  width: 360px;
  height: 96px;
  left: 10%;
  bottom: 20%;
  transform: rotate(22deg);
}

.login-hero,
.login-panel {
  position: relative;
  z-index: 1;
}

.login-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 620px;
  padding: 34px;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 184px;
  height: 62px;
  margin-bottom: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow {
  margin-bottom: 12px;
  color: #147be8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.login-hero h1 {
  max-width: 680px;
  margin-bottom: 18px;
  color: #082242;
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -2px;
}

.hero-desc {
  max-width: 620px;
  color: #526d8d;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
}

.route-card {
  width: min(620px, 100%);
  margin-top: 38px;
  padding: 20px 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.route-line {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 14px;
  color: #082242;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
}

.route-line i {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(31, 130, 233, 0), rgba(31, 130, 233, 0.72), rgba(31, 130, 233, 0));
}

.route-line strong {
  color: #1b7fe9;
  font-size: 26px;
  font-weight: 900;
}

.route-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.route-meta div {
  padding: 12px;
  border: 1px solid rgba(31, 130, 233, 0.1);
  border-radius: 16px;
  background: rgba(234, 244, 255, 0.62);
}

.route-meta b,
.route-meta em {
  display: block;
  font-style: normal;
}

.route-meta b {
  color: #082242;
  font-size: 14px;
  font-weight: 900;
}

.route-meta em {
  margin-top: 4px;
  color: #6a84a1;
  font-size: 12px;
  font-weight: 800;
}

.logistics-elements {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.cargo {
  position: absolute;
  width: 110px;
  height: 58px;
  border: 1px solid rgba(31, 130, 233, 0.14);
  border-radius: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(31, 130, 233, 0.14) 0 2px, transparent 2px 18px),
    rgba(255, 255, 255, 0.5);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.cargo-a {
  right: 18%;
  bottom: 22%;
  transform: rotate(-8deg);
}

.cargo-b {
  left: 4%;
  top: 22%;
  transform: rotate(10deg);
}

.truck-shape {
  position: absolute;
  right: 7%;
  bottom: 9%;
  width: 190px;
  height: 62px;
  border: 2px solid rgba(31, 130, 233, 0.16);
  border-radius: 18px 26px 18px 18px;
}

.truck-shape:before,
.truck-shape:after {
  content: "";
  position: absolute;
  bottom: -13px;
  width: 24px;
  height: 24px;
  border: 4px solid rgba(31, 130, 233, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

.truck-shape:before {
  left: 30px;
}

.truck-shape:after {
  right: 28px;
}

.plane-trail {
  position: absolute;
  right: 22%;
  top: 18%;
  width: 210px;
  height: 2px;
  transform: rotate(-22deg);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(31, 130, 233, 0), rgba(31, 130, 233, 0.32));
}

.plane-trail:after {
  content: "✈";
  position: absolute;
  right: -28px;
  top: -17px;
  color: rgba(31, 130, 233, 0.38);
  font-size: 32px;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 620px;
}

.panel-glow {
  position: absolute;
  inset: 10% -12% 10% 18%;
  z-index: -1;
  border-radius: 40px;
  background: rgba(31, 130, 233, 0.12);
  filter: blur(42px);
}

.login {
  position: relative;
  width: 100%;
  padding: 36px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.login:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.56), transparent 42%),
    radial-gradient(circle at 85% 8%, rgba(69, 182, 229, 0.18), transparent 30%);
  pointer-events: none;
}

.login-title,
.login form {
  position: relative;
  z-index: 1;
}

.login-title {
  margin-bottom: 28px;
}

.login-title span {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(31, 130, 233, 0.14);
  border-radius: 999px;
  background: rgba(234, 244, 255, 0.72);
  color: #147be8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}

.login h2 {
  margin-bottom: 8px;
  color: #082242;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
}

.login-title p {
  color: #6a84a1;
  font-size: 13px;
  font-weight: 800;
}

.input-prepend {
  width: 100%;
}

.login .login_box {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.login .login_box input {
  width: 100%;
  height: 48px;
  padding: 18px 14px 6px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  color: #16324f;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  transition: all 0.18s ease;
}

.login .login_box label {
  position: absolute;
  top: 15px;
  left: 14px;
  color: #6a84a1;
  font-size: 14px;
  font-weight: 800;
  pointer-events: none;
  transition: all 0.18s ease;
}

.login .login_box input:focus {
  border-color: #1f82e9;
  box-shadow: 0 0 0 4px rgba(31, 130, 233, 0.14);
}

.login .login_box input:focus + label,
.login .login_box input:valid + label {
  top: 6px;
  color: #147be8;
  font-size: 11px;
  letter-spacing: 0.4px;
}

.login-submit {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 18px;
  border: 1px solid rgba(31, 130, 233, 0.2);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #1b7fe9, #45b6e5);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 1px;
  box-shadow: 0 14px 28px rgba(31, 130, 233, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.login-submit:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(31, 130, 233, 0.3), 0 0 28px rgba(69, 182, 229, 0.24);
}

.login-submit .btn-text {
  position: relative;
  z-index: 2;
}

.login-submit span:not(.btn-text) {
  position: absolute;
  display: block;
}

.login-submit span:nth-child(2) {
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.88));
  animation: move1 1.8s linear infinite;
}

.login-submit span:nth-child(3) {
  right: 0;
  top: -100%;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.88));
  animation: move2 1.8s linear 0.45s infinite;
}

.login-submit span:nth-child(4) {
  right: -100%;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg, transparent, rgba(255, 255, 255, 0.88));
  animation: move3 1.8s linear 0.9s infinite;
}

.login-submit span:nth-child(5) {
  left: 0;
  bottom: -100%;
  width: 2px;
  height: 100%;
  background: linear-gradient(0deg, transparent, rgba(255, 255, 255, 0.88));
  animation: move4 1.8s linear 1.35s infinite;
}

#message {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(239, 68, 68, 0.16);
  border-radius: 12px;
  background: rgba(254, 242, 242, 0.88);
}

#message .text-error {
  margin: 0;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

#footer {
  margin-top: 18px;
  text-align: center;
}

#footer a {
  color: #6a84a1;
  font-size: 12px;
  font-weight: 800;
}

#footer a:hover {
  color: #147be8;
}

@keyframes move1 {
  0% {
    left: -100%;
  }
  50%,
  100% {
    left: 100%;
  }
}

@keyframes move2 {
  0% {
    top: -100%;
  }
  50%,
  100% {
    top: 100%;
  }
}

@keyframes move3 {
  0% {
    right: -100%;
  }
  50%,
  100% {
    right: 100%;
  }
}

@keyframes move4 {
  0% {
    bottom: -100%;
  }
  50%,
  100% {
    bottom: 100%;
  }
}

@media (max-width: 980px) {
  .login-page {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 18px;
  }

  .login-hero {
    min-height: auto;
    padding: 12px 4px 0;
  }

  .login-hero h1 {
    font-size: 38px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .route-card {
    margin-top: 24px;
  }

  .login-panel {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .login-page {
    padding: 18px 12px 24px;
  }

  .login {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .login:before {
    border-radius: 22px;
  }

  .brand-mark {
    width: 150px;
    height: 50px;
    margin-bottom: 16px;
  }

  .login-hero h1 {
    font-size: 31px;
    letter-spacing: -1px;
  }

  .route-line {
    grid-template-columns: auto 1fr auto;
  }

  .route-line i:last-of-type,
  .route-line span:last-child {
    display: none;
  }

  .route-meta {
    grid-template-columns: 1fr;
  }

  .cargo,
  .truck-shape,
  .plane-trail,
  .login-orbit {
    display: none;
  }
}
