/**
 * 登录页共用：SaaS 左列布局 + 玻璃拟态卡片 + 品牌字体层级（admin / user）。
 * 与 Tabler、admin-theme 协同；船图层见 brand-login.css。
 */

/* ---------- 左列布局：桌面左对齐占约 28%–35% 区带，小屏恢复居中 ---------- */
.auth-shell {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: clamp(1.75rem, 4vw, 4rem);
  padding-right: 1.25rem;
  background: transparent;
}

body.brand-login-page .auth-shell .container.container-tight {
  width: 100%;
  max-width: min(420px, 33vw);
  margin: 0;
}

@media (max-width: 768px) {
  .auth-shell {
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.brand-login-page .auth-shell .container.container-tight {
    max-width: min(28rem, 100%);
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- 玻璃拟态卡片（覆盖 admin-theme 实色 card） ---------- */
body.brand-login-page .auth-card.card {
  width: 100%;
  background: rgba(7, 16, 32, 0.48) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35) !important;
  overflow: hidden;
}

body.brand-login-page .auth-card .card-body {
  padding: 1.35rem 1.5rem 1.25rem;
}

body.brand-login-page .auth-card .card-footer.auth-footer {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.25rem;
  background: rgba(6, 14, 28, 0.38) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

/* ---------- 登录页品牌区：放大为第一视觉焦点（与侧栏比例独立） ---------- */
body.brand-login-page h1.auth-brand {
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  gap: 0.875rem;
}

body.brand-login-page .auth-brand .navbar-brand-image {
  flex-shrink: 0;
  height: 44px;
  width: auto;
  display: block;
}

body.brand-login-page .auth-brand-wordmark {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  line-height: 1.05;
}

/* 身份副标题：比主标题小一级 */
body.brand-login-page .auth-header .auth-subtitle {
  color: #e2e8f0;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

/* ---------- 表单：Tabler 控件 + 高度与焦点强化 ---------- */
body.brand-login-page .auth-form .form-label {
  font-weight: 500;
  color: rgba(226, 232, 240, 0.9);
}

body.brand-login-page .auth-form .form-control {
  min-height: 44px;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

body.brand-login-page .auth-form .form-control:focus {
  border-color: rgba(16, 185, 129, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22) !important;
}

body.brand-login-page .auth-form .form-footer {
  margin-top: 0.25rem;
}

/* 主按钮：品牌绿 + 轻微 glow（与 btn-success 一致） */
body.brand-login-page .auth-card .btn-success {
  min-height: 46px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.22),
    0 4px 16px rgba(16, 185, 129, 0.32),
    0 0 28px rgba(16, 185, 129, 0.18) !important;
}

body.brand-login-page .auth-card .btn-success:hover {
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.22),
    0 6px 20px rgba(16, 185, 129, 0.38),
    0 0 32px rgba(16, 185, 129, 0.22) !important;
}

.auth-footer a {
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}
