:root {
  --blue: #5f8cff;
  --blue-deep: #2f78d7;
  --text: #242b3a;
  --muted: #a0a8b8;
  --line: #e2e7f1;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #f3f5fb;
}

button,
input,
a {
  font: inherit;
}

.login-page {
  display: grid;
  grid-template-columns: 62% 38%;
  min-height: 100vh;
}

.welcome-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 64px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(42, 122, 204, 0) 0%, rgba(243, 245, 251, 0.88) 100%),
    linear-gradient(135deg, #44b2ee 0%, #2f89d9 52%, #d7efff 100%);
  overflow: hidden;
}

.welcome-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.welcome-panel::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 72%, #f3f5fb 100%);
}

.logo-image {
  position: relative;
  z-index: 1;
  width: min(45vw, 520px);
  max-width: 72%;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(17, 54, 107, 0.22));
}

.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 64px;
  background: transparent;
}

.login-form {
  width: min(100%, 400px);
  background: transparent;
}

.login-form h2 {
  margin: 0 0 44px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  color: var(--text);
}

.alert {
  margin: -22px 0 28px;
  color: #d33a3a;
  font-size: 14px;
  text-align: center;
}

.user-status {
  margin: -18px 0 34px;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}

.field {
  display: block;
  margin-bottom: 26px;
}

.field span {
  display: block;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  outline: none;
  color: var(--text);
  background: #eef2fa;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field input::placeholder {
  color: var(--muted);
}

.field input:focus {
  background: var(--white);
  box-shadow: 0 0 0 2px rgba(95, 140, 255, 0.32);
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 44px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  color: var(--white);
  background: var(--blue);
}

.button-primary:hover {
  background: var(--blue-deep);
}

@media (max-width: 900px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .welcome-panel {
    min-height: 42vh;
    padding: 42px 28px;
  }

  .logo-image {
    width: min(72vw, 420px);
    max-width: 86%;
  }

  .form-panel {
    min-height: 58vh;
    padding: 36px 28px 48px;
  }
}

@media (max-width: 520px) {
  .login-form h2 {
    font-size: 28px;
  }

  .actions {
    grid-template-columns: 1fr;
  }
}
