/* 登录页样式 */
.login-page {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.login-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background-image: 
    radial-gradient(circle at 25% 25%, #fff 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, #fff 1px, transparent 1px);
  background-size: 60px 60px;
}

.login-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  z-index: 1;
}

.login-brand {
  text-align: center;
  color: #fff;
}

.login-logo {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 40px;
  backdrop-filter: blur(10px);
}

.login-brand h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.login-brand p {
  font-size: 16px;
  opacity: 0.8;
  line-height: 1.8;
}

.login-features {
  display: flex;
  gap: 40px;
  margin-top: 60px;
}

.login-feature {
  text-align: center;
  color: #fff;
}

.login-feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 28px;
  backdrop-filter: blur(10px);
}

.login-feature-text {
  font-size: 14px;
  opacity: 0.9;
}

.login-right {
  width: 480px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  position: relative;
  z-index: 1;
  box-shadow: -20px 0 60px rgba(0,0,0,0.1);
}

.login-form-wrapper {
  width: 360px;
  padding: 40px 0;
}

.login-form-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.login-form-subtitle {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 40px;
}

.login-form .form-group {
  margin-bottom: 24px;
}

.login-form .form-input {
  height: 48px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: 8px;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.login-form .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(43, 122, 251, 0.1);
}

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-light);
}

.input-with-icon .form-input {
  padding-left: 44px;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.login-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.login-options label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.login-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 2px;
}

.login-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
  color: var(--text-light);
  font-size: 12px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-copyright {
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  color: var(--text-light);
}

/* 加载动画 */
.login-btn .spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 响应式 */
@media (max-width: 960px) {
  .login-left {
    display: none;
  }
  .login-right {
    width: 100%;
    min-height: 100vh;
  }
}
