/* Login页面特定样式 */

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.input-field {
  width: 100%;
  padding: 14px 16px;
}

.input-field:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.logo-container {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.logo-container svg {
  width: 40px;
  height: 40px;
  color: white;
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 12px;
  color: #fca5a5;
  font-size: 14px;
  margin-bottom: 16px;
}

/* 登录按钮特殊样式 */
#loginBtn {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  position: relative;
  overflow: hidden;
}

#loginBtn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

#loginBtn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

#loginBtn:disabled {
  background: rgba(71, 85, 105, 0.5);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 按钮加载动画 */
#loginBtn.loading {
  pointer-events: none;
}

#loginBtn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 增强输入框样式 */
.input-field {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid rgba(71, 85, 105, 0.4);
  color: #e2e8f0;
  border-radius: 10px;
  transition: all 0.3s;
}

.input-field:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(15, 23, 42, 0.8);
}

.input-field:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input-field::placeholder {
  color: #64748b;
}

/* 增强卡片动画 */
.login-card {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo动画 */
.logo-container {
  animation: float 3s ease-in-out infinite;
}

/* 响应式 */
@media (max-width: 640px) {
  .login-card {
    margin: 20px;
  }
  
  .login-card .p-10 {
    padding: 32px !important;
  }
}