/*
 * 登录页共享样式，2026-08-18 第119批由 auth/login.blade.php 内嵌 <style> 块（L13-281）外置。
 * 规则文本、注释与顺序逐字一致，含全部动画 keyframes 与响应式断点；被 admin/agent/merchant 三端登录页 include 复用。
 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
html, body {
  width: 100%;
  min-height: 100%;
}
body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #202124;
  background:
    radial-gradient(circle at 14% 18%, rgba(31, 107, 87, 0.13), transparent 28%),
    radial-gradient(circle at 86% 72%, rgba(52, 168, 83, 0.10), transparent 30%),
    linear-gradient(135deg, #f8fbff 0%, #eef4fb 50%, #f7f9fc 100%);
  overflow: hidden;
}
.login-page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px;
}
.grid-motion {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.grid-motion::before {
  content: "";
  position: absolute;
  inset: -80px;
  background-image:
    linear-gradient(rgba(31, 107, 87, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 107, 87, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: rotate(-8deg);
  animation: gridFloat 18s linear infinite;
}
.flow-line {
  position: absolute;
  left: -12%;
  width: 124%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 107, 87, 0.20), transparent);
  transform: rotate(-12deg);
  animation: lineFlow 8s ease-in-out infinite;
}
.flow-line.line-a { top: 26%; }
.flow-line.line-b { top: 66%; animation-delay: -3s; opacity: 0.75; }
@keyframes gridFloat {
  from { transform: rotate(-8deg) translate3d(0, 0, 0); }
  to { transform: rotate(-8deg) translate3d(56px, 56px, 0); }
}
@keyframes lineFlow {
  0%, 100% { opacity: 0.22; transform: rotate(-12deg) translateX(-24px); }
  50% { opacity: 0.8; transform: rotate(-12deg) translateX(24px); }
}
.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 440px) 420px;
  width: min(920px, 100%);
  min-height: 520px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(218, 220, 224, 0.9);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(60, 64, 67, 0.16);
  overflow: hidden;
  animation: shellIn 0.6s ease-out both;
}
@keyframes shellIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.brand-panel {
  position: relative;
  padding: 54px 52px;
  background: linear-gradient(160deg, var(--theme-primary, #1F6B57), var(--theme-primary-hover, #185645));
  color: #fff;
  overflow: hidden;
}
.brand-panel::before, .brand-panel::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  animation: pulseRing 5s ease-in-out infinite;
}
.brand-panel::before {
  width: 220px; height: 220px;
  right: -88px; top: -72px;
}
.brand-panel::after {
  width: 280px; height: 280px;
  left: -140px; bottom: -150px;
  animation-delay: -2s;
}
@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.08); opacity: 0.24; }
}
.brand-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
}
.brand-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: auto;
}
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #fff;
  color: var(--theme-primary, #1F6B57);
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(8, 46, 110, 0.24);
}
.brand-name { font-size: 20px; font-weight: 600; line-height: 1.35; }
.brand-slogan { max-width: 320px; margin-top: 82px; }
.brand-slogan h1 { font-size: 32px; line-height: 1.28; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.login-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 48px 44px;
  background: #fff;
}
.login-header {
  width: 100%;
  max-width: 320px;
  margin-bottom: 34px;
  text-align: center;
}
.login-header h2 { color: #202124; font-size: 24px; line-height: 1.35; font-weight: 600; letter-spacing: 0; }
.login-header p { margin-top: 10px; color: #5f6368; font-size: 14px; line-height: 1.7; }
#loginForm { width: 100%; max-width: 320px; }
.input-group {
  position: relative;
  margin-bottom: 18px;
}
.input-group .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 19px;
  height: 19px;
  color: #5f6368;
  pointer-events: none;
  transform: translateY(-50%);
  transition: color 0.2s ease;
}
.input-group input {
  width: 100%;
  height: 48px;
  padding: 0 15px 0 46px;
  color: #202124;
  font-size: 15px;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.input-group input:hover { border-color: #c4c7c5; background: #fbfdff; }
.input-group input:focus {
  border-color: var(--theme-primary, #1F6B57);
  box-shadow: 0 0 0 3px rgba(31, 107, 87, 0.14);
  background: #fff;
}
.input-group:focus-within .icon { color: var(--theme-primary, #1F6B57); }
.input-group input::placeholder { color: #9aa0a6; }
.checkbox-group {
  display: flex;
  align-items: center;
  min-height: 22px;
  margin: 6px 0 28px;
  color: #5f6368;
  font-size: 14px;
}
.checkbox-group input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-right: 8px;
  cursor: pointer;
  accent-color: var(--theme-primary, #1F6B57);
}
.checkbox-group label { cursor: pointer; user-select: none; }
.btn-login {
  position: relative;
  width: 100%;
  height: 48px;
  color: #fff;
  background: var(--theme-primary, #1F6B57);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(31, 107, 87, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-login:hover {
  background: var(--theme-primary-hover, #185645);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(31, 107, 87, 0.28);
}
.btn-login:active { transform: translateY(0); }
.btn-login:disabled {
  background: #1F6B57;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
#error-msg {
  min-height: 22px;
  margin-top: 16px;
  color: #d93025;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}
.login-card.shake { animation: shake 0.18s ease-in-out 2; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
}
@media (max-width: 860px) {
  body { overflow: auto; }
  .login-page { padding: 20px; }
  .login-shell { grid-template-columns: 1fr; min-height: auto; }
  .brand-panel { padding: 30px 28px; }
  .brand-slogan { margin-top: 34px; }
  .brand-slogan h1 { font-size: 26px; }
  .login-card { padding: 34px 28px 30px; }
}
@media (max-width: 480px) {
  .login-page { padding: 14px; }
  .brand-panel { padding: 26px 22px; }
  .brand-logo { width: 42px; height: 42px; font-size: 24px; }
  .brand-name { font-size: 17px; }
  .brand-slogan h1 { font-size: 23px; }
  .login-card { padding: 30px 22px 26px; }
}
