html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: #e8edf2;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937;
}

.login-split {
  width: 720px;
  max-width: 100%;
  min-height: 0;
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.login-brand {
  flex: 0 0 280px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255,255,255,0.18), transparent 55%),
    linear-gradient(155deg, #0f766e 0%, #156965 42%, #0b4f4b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  box-sizing: border-box;
}

.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.32;
  pointer-events: none;
}

.login-brand::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: -80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}

.login-brand__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 220px;
}

.login-brand__logo {
  width: 108px;
  height: 108px;
  margin: 0 auto 18px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.login-brand__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.login-brand__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.login-brand__desc {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
}

.login-panel {
  flex: 1 1 auto;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 36px 32px;
  box-sizing: border-box;
}

.login-panel__box {
  width: 100%;
  max-width: 300px;
}

.login-panel__head {
  margin-bottom: 20px;
}

.login-panel__head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.login-panel__head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.login-field {
  margin-bottom: 12px;
}

.login-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #4b5563;
}

.login-field input {
  width: 100%;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.login-field input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15,118,110,0.15);
}

.login-error {
  display: none;
  margin: 4px 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 13px;
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 16px;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4b5563;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.login-remember input {
  width: 15px;
  height: 15px;
}

.login-btn {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 20px;
  background: #0f766e;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(15,118,110,0.24);
  transition: background .15s, transform .15s;
}

.login-btn:hover {
  background: #0d9488;
}

.login-btn:active {
  background: #0b5f59;
  transform: translateY(1px);
}

.login-loading {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  color: #4b5563;
  font-size: 14px;
}

@media (max-width: 760px) {
  body {
    padding: 16px;
    align-items: flex-start;
  }

  .login-split {
    width: 100%;
    max-width: 400px;
    flex-direction: column;
    margin: 24px auto;
  }

  .login-brand {
    flex: none;
    padding: 24px 20px 20px;
  }

  .login-brand__logo {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
  }

  .login-brand__title {
    font-size: 18px;
  }

  .login-brand__desc {
    display: none;
  }

  .login-panel {
    padding: 24px 20px 28px;
  }
}
