:root {
  --brand-primary: #062c4a;
  --brand-primary-mid: #14507a;
  --brand-primary-light: #2980b9;
  --brand-accent: #f87e05;
  --brand-accent-hover: #ff9a2e;
  --brand-gradient: linear-gradient(135deg, #062c4a 0%, #0e3a5c 35%, #14507a 70%, #1a6090 100%);
  --brand-radial-1: radial-gradient(circle at 20% 20%, rgba(41, 128, 185, 0.25) 0%, transparent 50%);
  --brand-radial-2: radial-gradient(circle at 80% 80%, rgba(248, 126, 5, 0.1) 0%, transparent 50%);
  --text-primary: #1a2b3c;
  --text-secondary: #6b7a8a;
  --text-on-brand: rgba(255, 255, 255, 0.95);
  --text-on-brand-muted: rgba(255, 255, 255, 0.7);
  --bg-page: #f5f7fa;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-focus: #2980b9;
  --radius-card: 12px;
  --radius-input: 8px;
  --radius-button: 8px;
  --shadow-card: 0 24px 48px -12px rgba(6, 44, 74, 0.18), 0 4px 12px rgba(6, 44, 74, 0.08);
  --shadow-card-glow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset, 0 24px 48px -12px rgba(6, 44, 74, 0.18);
  --shadow-input-focus: 0 0 0 4px rgba(41, 128, 185, 0.15);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 240ms cubic-bezier(0.4, 0, 0.2, 1);
  --font-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
.login-page-body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}
.hide {
  display: none !important;
}
.login-page {
  display: flex;
  min-height: 100vh;
  width: 100%;
}
.brand-pane {
  flex: 0 0 56%;
  position: relative;
  background: var(--brand-gradient);
  color: var(--text-on-brand);
  padding: 40px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  animation: brandFadeIn 0.7s var(--transition-base) both;
}
.brand-pane::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-radial-1);
  pointer-events: none;
}
.brand-pane::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-radial-2);
  pointer-events: none;
}
.brand-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  align-self: center;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.brand-header {
  margin-bottom: 28px;
}
.brand-logo {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 3px;
  margin: 0 0 8px;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: baseline;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.brand-logo .brand-logo-j {
  color: var(--brand-accent);
  font-size: 38px;
  margin-right: 1px;
  filter: drop-shadow(0 0 12px rgba(248, 126, 5, 0.4));
}
.brand-logo .brand-logo-rest {
  color: #fff;
  font-size:60px;
  font-family: "Calibri", sans-serif;
}
.brand-tagline {
  font-size: 13px;
  color: var(--text-on-brand-muted);
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.brand-feature {
  margin-bottom: 24px;
}
.brand-feature-title {
  font-family: "Arial", sans-serif;
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  text-align: center;
}
.brand-feature-title-h2 {
  font-family: "Arial", sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  text-align: center;
}
.brand-feature-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-on-brand-muted);
  margin: 0;
  max-width: 420px;
  font-weight: 400;
}
.brand-illustration {
  margin: 0 auto 28px;
  max-width: 420px;
  width: 100%;
}
.brand-illustration svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.25));
}
.brand-stats {
  list-style: none;
  padding: 16px 0 0;
  margin: 0;
  display: flex;
  gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.brand-stats li {
  display: flex;
  flex-direction: column;
}
.brand-stat-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.brand-stat-label {
  font-size: 11px;
  color: var(--text-on-brand-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
}
.form-pane {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--bg-page);
  animation: formFadeIn 0.7s var(--transition-base) 0.1s both;
}
.form-inner {
  width: 100%;
  max-width: 400px;
}
.login-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-glow);
  padding: 36px 32px;
  position: relative;
}
.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41, 128, 185, 0.3), transparent);
}
.login-card-header {
  margin-bottom: 28px;
  text-align: left;
}
.login-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}
.login-card-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 400;
}
.form-field {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-input);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.form-input-wrap:hover {
  border-color: #c5d2e0;
}
.form-input-wrap:focus-within {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-input-focus);
  background: #fafbfc;
}
.form-input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px 0 14px;
  color: #8a9aab;
  pointer-events: none;
  transition: color var(--transition-fast);
}
.form-input-wrap:focus-within .form-input-icon {
  color: var(--brand-primary-light);
}
.form-control {
  flex: 1;
  border: none;
  outline: none;
  padding: 11px 14px 11px 0;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: transparent;
  width: 100%;
  min-width: 0;
  font-weight: 500;
}
.form-control::placeholder {
  color: #a8b5c4;
  font-weight: 400;
}
.form-control:focus {
  outline: none;
  box-shadow: none;
}
.form-input-action {
  background: none;
  border: none;
  padding: 8px 12px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}
.form-input-action:hover {
  color: var(--brand-primary);
}
.form-input-action:focus {
  outline: 2px solid var(--border-focus);
  outline-offset: 1px;
}
.form-input-wrap-with-captcha .form-control {
  padding-right: 8px;
}
.captcha-image {
  padding: 4px 8px 4px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: opacity var(--transition-fast);
}
.captcha-image:hover {
  opacity: 0.85;
}
.captcha-image:focus {
  outline: 2px solid var(--border-focus);
  outline-offset: 1px;
}
.captcha-image img {
  display: block;
  border-radius: 4px;
  height: 34px;
  width: 100px;
  object-fit: cover;
}
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 20px;
  flex-wrap: wrap;
  gap: 8px;
}
.form-check {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.form-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.form-check .form-check-box {
  width: 16px;
  height: 16px;
  border: 1.5px solid #c5d2e0;
  border-radius: 4px;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  background: #fff;
  flex-shrink: 0;
}
.form-check input[type="checkbox"]:checked + .form-check-box {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}
.form-check input[type="checkbox"]:checked + .form-check-box::after {
  content: "";
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}
.form-check input[type="checkbox"]:focus-visible + .form-check-box {
  box-shadow: var(--shadow-input-focus);
}
.form-link {
  color: var(--brand-primary-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color var(--transition-fast);
}
.form-link:hover {
  color: var(--brand-accent);
  text-decoration: underline;
}
#errtips {
  background: #fff5f5;
  border: 1px solid #ffd4d4;
  border-left: 3px solid #e74c3c;
  color: #c0392b;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
  font-weight: 500;
  animation: shakeX 0.4s ease;
}
#login-form.error-shake {
  animation: shakeX 0.4s ease;
}
.btn-login {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(180deg, #14507a 0%, #062c4a 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-button);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  box-shadow: 0 2px 8px rgba(6, 44, 74, 0.2), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}
.btn-login::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}
.btn-login:hover:not(:disabled) {
  background: linear-gradient(180deg, #1a6090 0%, #0e3a5c 100%);
  box-shadow: 0 6px 16px rgba(6, 44, 74, 0.3), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
  transform: translateY(-1px);
}
.btn-login:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(6, 44, 74, 0.2) inset;
}
.btn-login:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
.btn-login:disabled {
  background: #95a5b8;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-login .btn-login-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn-login.is-loading .btn-login-text {
  opacity: 0.7;
}
.btn-login.is-loading .btn-login-spinner {
  display: inline-block;
}
.login-card-copyright {
  text-align: center;
  font-size: 11px;
  color: var(--text-secondary);
  margin: 20px 0 0;
  letter-spacing: 0.3px;
}
@keyframes brandFadeIn {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes formFadeIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes shakeX {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1024px) {
  .brand-pane {
    flex: 0 0 48%;
    padding: 36px 32px 24px;
  }
  .brand-logo {
    font-size: 28px;
  }
  .brand-logo .brand-logo-j {
    font-size: 34px;
  }
  .brand-feature-title {
    font-size: 24px;
  }
  .brand-stats {
    gap: 24px;
  }
  .brand-stat-num {
    font-size: 20px;
  }
}
@media (max-width: 768px) {
  .login-page {
    flex-direction: column;
    min-height: 100vh;
  }
  .brand-pane {
    flex: 0 0 auto;
    padding: 24px 20px 20px;
  }
  .brand-pane .brand-illustration,
  .brand-pane .brand-stats {
    display: none;
  }
  .brand-pane .brand-header {
    margin-bottom: 8px;
  }
  .brand-pane .brand-feature {
    margin-bottom: 0;
  }
  .brand-pane .brand-logo {
    font-size: 24px;
  }
  .brand-pane .brand-logo .brand-logo-j {
    font-size: 28px;
  }
  .brand-pane .brand-feature-title {
    font-size: 15px;
    margin-bottom: 4px;
    line-height: 1.4;
  }
  .brand-pane .brand-feature-desc {
    font-size: 12px;
    line-height: 1.5;
  }
  .brand-pane .brand-tagline {
    font-size: 11px;
  }
  .form-pane {
    padding: 20px 16px 28px;
  }
  .login-card {
    padding: 24px 20px;
    box-shadow: 0 4px 16px rgba(6, 44, 74, 0.1);
  }
  .login-card-title {
    font-size: 18px;
  }
  .login-card-subtitle {
    font-size: 12px;
  }
  .form-control {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand-pane,
  .form-pane {
    animation: none;
  }
  .btn-login-spinner {
    animation: none;
  }
  .btn-login:hover:not(:disabled) {
    transform: none;
  }
  #login-form.error-shake,
  #errtips {
    animation: none;
  }
}
