@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
  --l-font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --l-accent: #2d6b5c;
}

* { box-sizing: border-box; }

body.ag-login-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--l-font);
  background: linear-gradient(165deg, #e8ebe8 0%, #d8e2dc 45%, #cfd9d4 100%);
}

.ag-login-split {
  display: flex;
  min-height: 100vh;
}

.ag-login-brand {
  flex: 1.05;
  min-width: 300px;
  background: linear-gradient(155deg, #1e2b27 0%, #2a3d36 55%, #2d6b5c 180%);
  color: #fff;
  padding: 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ag-login-brand::before {
  content: "";
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle at 25% 30%, rgba(93, 190, 168, 0.15) 0%, transparent 42%);
  pointer-events: none;
}

.ag-login-brand-inner { position: relative; z-index: 1; max-width: 400px; }
.ag-login-brand h1 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.ag-login-brand p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  opacity: 0.7;
}
.ag-login-brand .ag-tag {
  margin-top: 26px;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.ag-login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 22px;
}

.ag-login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(28, 34, 31, 0.08);
  box-shadow: 0 22px 48px rgba(28, 34, 31, 0.1);
}
.ag-login-card-h { padding: 26px 28px 6px; }
.ag-login-card-h h2 { margin: 0; font-size: 21px; font-weight: 600; color: #1c221f; }
.ag-login-card-h span { display: block; margin-top: 8px; font-size: 13px; color: #65726d; }
.ag-login-card-b { padding: 6px 28px 28px; }
.ag-login-card-b .layui-input {
  height: 44px;
  border-radius: 10px;
  border-color: rgba(28, 34, 31, 0.12);
}
.ag-login-card-b .layui-btn-fluid {
  height: 46px;
  line-height: 46px;
  border-radius: 10px;
  font-weight: 500;
  background: var(--l-accent) !important;
  border: none !important;
}
.ag-captcha-row { display: flex; gap: 10px; align-items: center; }
.ag-captcha-row .layui-input { flex: 1; }
.ag-captcha-pill {
  min-width: 92px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  background: #edf2ef;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border: 1px solid rgba(28, 34, 31, 0.08);
  cursor: pointer;
  user-select: none;
}
.ag-captcha-pill:hover { background: #e4ebe6; }
.ag-login-err {
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #fdf2f2;
  border-radius: 10px;
  border: 1px solid #f0cccc;
  font-size: 13px;
  color: #922;
}
.ag-login-foot {
  margin-top: 18px;
  font-size: 13px;
}
.ag-login-foot a { color: var(--l-accent); text-decoration: none; font-weight: 500; }
.ag-login-foot a:hover { text-decoration: underline; }

@media (max-width: 880px) {
  .ag-login-split { flex-direction: column; }
  .ag-login-brand { padding: 32px 24px; min-height: auto; }
}
