/**
 * 登录页 · 阿里系风格
 */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body.yg-login-body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #0b1a33;
  color: #1f1f1f;
  overflow-x: hidden;
}

.yg-login {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.yg-login-brand {
  position: relative;
  flex: 1.15;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 72px;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(22, 119, 255, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 75%, rgba(255, 106, 0, 0.22), transparent 50%),
    linear-gradient(155deg, #001529 0%, #003a8c 48%, #0b1a33 100%);
  overflow: hidden;
}

.yg-login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.yg-login-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
  animation: ygFadeUp 0.7s ease both;
}

.yg-login-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.yg-login-mark-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1677ff, #69b1ff);
  box-shadow: 0 8px 24px rgba(22, 119, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.yg-login-mark-text {
  font-size: 15px;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

.yg-login-brand h1 {
  margin: 0 0 16px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 1px;
}

.yg-login-brand h1 span {
  color: #69b1ff;
}

.yg-login-brand .yg-lead {
  margin: 0 0 36px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  max-width: 380px;
}

.yg-login-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yg-login-tags span {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.yg-login-panel {
  flex: 0 0 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 40px;
  background: #f5f7fa;
  position: relative;
  animation: ygFadeIn 0.55s ease 0.1s both;
}

.yg-login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 12px;
  padding: 40px 36px 32px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 8px 24px rgba(0, 21, 41, 0.06);
  border: 1px solid #f0f0f0;
}

.yg-login-card-head {
  margin-bottom: 28px;
}

.yg-login-card-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  color: #1f1f1f;
}

.yg-login-card-head p {
  margin: 0;
  font-size: 14px;
  color: #8c8c8c;
}

.yg-login-card .layui-form-item {
  margin-bottom: 20px;
  position: relative;
}

.yg-login-card .layui-input {
  height: 44px;
  line-height: 44px;
  border-radius: 8px !important;
  border: 1px solid #d9d9d9 !important;
  padding-left: 42px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.yg-login-card .layui-input:focus {
  border-color: #1677ff !important;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
}

.yg-login-card .layadmin-user-login-icon {
  position: absolute;
  left: 1px;
  top: 1px;
  width: 42px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  color: #bfbfbf;
  z-index: 1;
}

.yg-login-card .yg-captcha-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.yg-login-card .yg-captcha-row .yg-captcha-input {
  flex: 1;
  position: relative;
}

.yg-login-card .yg-captcha-img {
  flex: 0 0 120px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  background: #fafafa;
}

.yg-login-card .yg-captcha-img captcha,
.yg-login-card .yg-captcha-img img,
.yg-login-card .layadmin-user-login-codeimg {
  display: block;
  width: 100%;
  height: 44px !important;
  max-height: 44px;
  cursor: pointer;
  object-fit: cover;
}

.yg-login-submit {
  height: 44px !important;
  line-height: 44px !important;
  border-radius: 8px !important;
  background: #1677ff !important;
  border: none !important;
  font-size: 15px !important;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.28);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.yg-login-submit:hover {
  background: #4096ff !important;
  box-shadow: 0 6px 16px rgba(22, 119, 255, 0.35);
  transform: translateY(-1px);
}

.yg-login-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  color: #8c8c8c;
}

.yg-login-footer a {
  color: #8c8c8c;
  text-decoration: none;
}

.yg-login-footer a:hover {
  color: #1677ff;
}

@keyframes ygFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ygFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media screen and (max-width: 960px) {
  .yg-login {
    flex-direction: column;
  }
  .yg-login-brand {
    flex: none;
    min-height: 220px;
    padding: 40px 28px;
  }
  .yg-login-brand h1 {
    font-size: 32px;
  }
  .yg-login-panel {
    flex: 1;
    width: 100%;
    padding: 32px 20px 48px;
  }
}
