@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Outfit:wght@500;600;700&display=swap');

:root {
  --lg-bg: #F4F6F8;
  --lg-surface: rgba(255, 255, 255, 0.86);
  --lg-text: #0F172A;
  --lg-muted: #64748B;
  --lg-border: rgba(15, 23, 42, 0.1);
  --lg-primary: #4F46E5;
  --lg-primary-hover: #4338CA;
  --lg-primary-soft: #EEF2FF;
  --lg-ink: #0F172A;
  --lg-radius: 14px;
  --lg-focus: 0 0 0 3px rgba(6, 182, 212, 0.28);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body.signin.login-home {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--lg-text);
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(79, 70, 229, 0.22), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(6, 182, 212, 0.18), transparent 48%),
    radial-gradient(700px 360px at 50% 100%, rgba(124, 58, 237, 0.12), transparent 50%),
    linear-gradient(165deg, #F5F3FF 0%, #EEF2FF 45%, #ECFEFF 100%);
  -webkit-font-smoothing: antialiased;
}

body.signin.login-home::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(79, 70, 229, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

.login-home .lg-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.login-home .lg-brand {
  padding: clamp(12px, 2vw, 24px);
  animation: lg-fade-up 0.45s ease both;
}

.login-home .lg-logo {
  font-family: Outfit, "Noto Sans SC", sans-serif;
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--lg-ink);
  margin: 0 0 20px;
}

.login-home .lg-logo span { color: var(--lg-primary); }

.login-home .lg-headline {
  font-family: Outfit, "Noto Sans SC", sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0 0 12px;
}

.login-home .lg-sub {
  margin: 0 0 28px;
  max-width: 28em;
  font-size: 15px;
  line-height: 1.65;
  color: var(--lg-muted);
}

.login-home .lg-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.login-home .lg-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #334155;
}

.login-home .lg-points i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lg-primary-soft);
  color: var(--lg-primary);
  font-size: 13px;
  flex-shrink: 0;
}

.login-home .lg-card {
  background: var(--lg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--lg-border);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 36px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  animation: lg-fade-up 0.5s ease 0.06s both;
}

.login-home .lg-card-title {
  margin: 0 0 6px;
  font-family: Outfit, "Noto Sans SC", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.login-home .lg-card-desc {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--lg-muted);
  line-height: 1.5;
}

.login-home .lg-field {
  margin-bottom: 16px;
}

.login-home .lg-field label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
}

.login-home .form-control,
.login-home input.form-control {
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--lg-border);
  background: #fff;
  color: var(--lg-text);
  box-shadow: none;
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-home .form-control:focus {
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: var(--lg-focus);
  outline: none;
}

.login-home .uname,
.login-home .pword,
.login-home .code {
  background-image: none !important;
  margin-top: 0;
}

.login-home .lg-captcha {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.login-home .lg-captcha .imgcode {
  height: 44px;
  width: auto;
  min-width: 110px;
  border-radius: 10px;
  border: 1px solid var(--lg-border);
  cursor: pointer;
  object-fit: cover;
  background: #fff;
}

.login-home .checkbox-custom {
  position: relative;
  padding: 0 0 0 28px;
  margin: 4px 0 18px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #475569;
  font-size: 13px;
}

.login-home .checkbox-custom input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.login-home .checkbox-custom label {
  margin: 0;
  cursor: pointer;
  font-weight: 400;
}

.login-home .checkbox-custom label:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid #CBD5E1;
  background: #fff;
}

.login-home .checkbox-custom input[type="checkbox"]:checked + label:before {
  background: var(--lg-primary);
  border-color: var(--lg-primary);
}

.login-home .checkbox-custom input[type="checkbox"]:checked + label:after {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  width: 5px;
  height: 9px;
  margin-top: -6px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.login-home .checkbox-custom input[type="checkbox"]:focus-visible + label:before {
  box-shadow: var(--lg-focus);
}

.login-home #btnSubmit,
.login-home .btn.btn-success.btn-block {
  height: 46px;
  margin-top: 4px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #4F46E5, #06B6D4);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.24);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.login-home #btnSubmit:hover,
.login-home #btnSubmit:focus,
.login-home .btn.btn-success.btn-block:hover,
.login-home .btn.btn-success.btn-block:focus {
  background: var(--lg-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.login-home #btnSubmit:focus-visible {
  box-shadow: var(--lg-focus), 0 10px 22px rgba(79, 70, 229, 0.24);
}

.login-home .lg-extra {
  margin-top: 18px;
  font-size: 13px;
  color: var(--lg-muted);
}

.login-home .lg-extra a {
  color: var(--lg-primary);
  font-weight: 600;
  text-decoration: none;
}

.login-home .lg-extra a:hover {
  text-decoration: underline;
}

.login-home .lg-foot {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-size: 12px;
  color: #94A3B8;
  text-align: center;
  animation: lg-fade-up 0.5s ease 0.12s both;
}

.login-home label.error {
  display: block;
  margin-top: 6px;
  color: #DC2626;
  font-size: 12px;
  font-weight: 400;
}

@keyframes lg-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .login-home .lg-shell {
    grid-template-columns: 1fr;
    padding: 28px 18px 32px;
  }
  .login-home .lg-brand { padding: 0; }
  .login-home .lg-points { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .login-home .lg-brand,
  .login-home .lg-card,
  .login-home .lg-foot,
  .login-home #btnSubmit {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
