/* ===================== 宁佳CRM - 认证页面样式 ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.auth-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a3a6e 0%, #2563a8 60%, #3b82d0 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  position: relative;
  overflow: hidden;
}

/* 背景装饰动画 */
body.auth-body::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: bgFloat 15s ease-in-out infinite;
}
@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, 1%) rotate(1deg); }
  66% { transform: translate(-1%, 2%) rotate(-1deg); }
}

.auth-wrap {
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,.4);
  width: 900px;
  min-height: 540px;
  position: relative;
  z-index: 1;
  animation: slideUp 0.5s ease-out;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-banner {
  width: 360px;
  background: linear-gradient(160deg,#1e4fd8,#0e2a72);
  color: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 50px 35px; text-align: center;
  position: relative;
  overflow: hidden;
}
.auth-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 50%);
  animation: bannerFloat 8s ease-in-out infinite;
}
@keyframes bannerFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5%, 5%); }
}
.auth-banner img { max-width: 200px; max-height: 80px; object-fit: contain; margin-bottom: 24px; position: relative; z-index: 1; }
.auth-banner h1  { font-size: 24px; margin-bottom: 10px; font-weight: 700; letter-spacing: 1px; position: relative; z-index: 1; }
.auth-banner p   { font-size: 15px; opacity: .85; position: relative; z-index: 1; }

/* 装饰元素 */
.auth-banner::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border: 3px solid rgba(255,255,255,0.1);
  border-radius: 50%;
}

.auth-card {
  flex: 1;
  background: #fff;
  padding: 50px 45px;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-card h2 { font-size: 26px; color: #1a2a4e; margin-bottom: 30px; font-weight: 700; }

.form-group  { margin-bottom: 20px; }
.form-row    { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

label { display: block; font-size: 13px; color: #555; margin-bottom: 8px; font-weight: 500; }
.req  { color: #e74c3c; }

.form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid #d0d7e8;
  border-radius: 8px; font-size: 14px; color: #333;
  outline: none; transition: all .25s;
  background: #f8faff;
}
.form-control:focus {
  border-color: #2563a8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,168,0.1);
}

.captcha-row  { display: flex; gap: 12px; align-items: center; }
.captcha-input { flex: 1; }
.captcha-img  { height: 42px; cursor: pointer; border-radius: 6px; border: 1.5px solid #d0d7e8; transition: transform .2s; }
.captcha-img:hover { transform: scale(1.02); }

.remember-row label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; color: #666; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px;
  border: none; border-radius: 8px; cursor: pointer;
  font-size: 15px; font-weight: 600; transition: all .25s;
}
.btn-primary {
  background: linear-gradient(135deg, #2563a8 0%, #1a4a8e 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(37,99,168,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1a4a8e 0%, #153a75 100%);
  box-shadow: 0 6px 20px rgba(37,99,168,0.4);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-block { width: 100%; margin-top: 10px; }

.alert { padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 18px; }
.alert-danger  { background: #fef0f0; border-left: 4px solid #e74c3c; color: #c0392b; }
.alert-info    { background: #eef6ff; border-left: 4px solid #3498db; color: #2471a3; }
.alert-success { background: #edfbf0; border-left: 4px solid #27ae60; color: #1e8449; }

.auth-links { margin-top: 24px; display: flex; justify-content: space-between; }
.auth-links a { font-size: 13px; color: #2563a8; text-decoration: none; transition: color .2s; }
.auth-links a:hover { color: #1a4a8e; text-decoration: underline; }

.method-tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 2px solid #e2e8f0; }
.method-tabs a {
  padding: 10px 24px; font-size: 14px; color: #666;
  text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all .2s;
}
.method-tabs a.active { color: #2563a8; border-bottom-color: #2563a8; font-weight: 600; }
.method-tabs a:hover:not(.active) { color: #333; }

@media (max-width: 700px) {
  body.auth-body { padding: 0; }
  .auth-wrap { flex-direction: column; width: 100%; min-height: 100vh; border-radius: 0; animation: none; }
  .auth-banner { width: 100%; padding: 30px 24px; }
  .auth-banner::after { display: none; }
  .auth-card { padding: 32px 24px; }
  .form-row { flex-direction: column; gap: 0; }
}
