/* Auth Pages CSS - for login, registration, and other authentication screens */

/* CSS Variable Definitions */
:root {
  --primary-color: #0A5F53;
  --primary-light: #15776A;
  --primary-dark: #084842;
  --secondary-color: #2C3E50;
  --accent-color: #FF7800;
  --accent-light: #FFB366;
  --light-color: #F8FAFB;
  --dark-color: #263238;
  --text-color: #333333;
  --text-light: #6c757d;
  --success-color: #3E9C6C;
  --danger-color: #D54B4B;
  --warning-color: #E4A147;
  --info-color: #4A89DC;
  --border-radius: 15px;
  --transition-speed: 0.3s;
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  
  /* RGB versions for opacity control */
  --primary-color-rgb: 10, 95, 83;
  --success-color-rgb: 62, 156, 108;
  --danger-color-rgb: 213, 75, 75;
  --warning-color-rgb: 228, 161, 71;
  --info-color-rgb: 74, 137, 220;
}

/* General Auth Layout */
.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f3 100%);
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 1200px;
  min-height: 600px;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  display: flex;
  position: relative;
}

/* Left Side - Login Form */
.login-left {
  flex: 1;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.login-logo {
  margin-bottom: 2rem;
  text-align: center;
}

.login-logo img {
  height: 60px;
  max-width: 100%;
}

.login-heading {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  text-align: center;
}

.login-subheading {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Form Styling */
.login-form {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-control {
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  padding: 12px 20px;
  height: auto;
  font-size: 15px;
  transition: all var(--transition-speed);
  box-shadow: none;
  padding-left: 48px;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

.input-icon {
  position: absolute;
  top: 14px;
  left: 20px;
  color: var(--text-light);
}

.input-container {
  position: relative;
}

.input-container.input-focused .input-icon {
  color: var(--primary-color);
}

/* Login Button */
.login-btn {
  width: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  border: none;
  border-radius: 30px;
  padding: 12px;
  font-weight: 600;
  font-size: 16px;
  color: white;
  cursor: pointer;
  transition: all var(--transition-speed);
  box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.3);
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

.login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.4);
}

/* Remember Me & Forgot Password */
.form-check-input {
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
}

.form-check-label {
  font-size: 14px;
  color: var(--text-light);
  margin-left: 6px;
}

.forgot-link {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-speed);
}

.forgot-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Social Login */
.social-login {
  margin: 2rem 0;
  text-align: center;
}

.social-login-text {
  color: var(--text-light);
  position: relative;
  display: inline-block;
  padding: 0 10px;
  background-color: #fff;
}

.social-login-divider {
  position: relative;
  display: block;
  height: 1px;
  background-color: #e0e0e0;
  margin: 1.5rem 0;
}

.social-login-divider::before {
  content: "或";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 0 15px;
  color: var(--text-light);
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 1.5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f8f9fc;
  border: 1px solid #e0e0e0;
  color: #6c757d;
  font-size: 20px;
  transition: all var(--transition-speed);
  cursor: pointer;
}

.social-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.social-btn.wechat {
  color: #07C160;
}

.social-btn.weibo {
  color: #E6162D;
}

.social-btn.qq {
  color: #12B7F5;
}

/* Right Side - Info Section */
.login-right-content {
  height: 100%;
  padding: 50px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
  position: relative;
}

.login-right {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.right-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}

.right-text {
  font-size: 16px;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Feature List on Right Side */
.feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 18px;
}

/* Get Started Button */
.get-started-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  transition: all var(--transition-speed);
}

.get-started-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  color: white;
}

.get-started-btn i {
  margin-right: 8px;
}

/* Decorative Elements */
.decoration {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.deco-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
}

.deco-2 {
  width: 200px;
  height: 200px;
  bottom: 50px;
  right: 50px;
}

.deco-3 {
  width: 150px;
  height: 150px;
  bottom: -50px;
  left: 30%;
}

/* Alerts */
.alert {
  border-radius: 15px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border: none;
  display: flex;
  align-items: center;
}

.alert-danger {
  background-color: rgba(var(--danger-color-rgb), 0.1);
  color: var(--danger-color);
}

.alert-success {
  background-color: rgba(var(--success-color-rgb), 0.1);
  color: var(--success-color);
}

.alert-icon {
  margin-right: 15px;
  font-size: 20px;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes shine {
  0% { background-position: -100px; }
  20% { background-position: 200px; }
  100% { background-position: 200px; }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* Ripple Effect */
.ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .login-card {
    flex-direction: column;
  }
  
  .login-right {
    display: none;
  }
  
  .login-left {
    padding: 30px;
  }
}

@media (max-width: 576px) {
  .auth-container {
    padding: 15px;
  }
  
  .login-left {
    padding: 20px;
  }
  
  .login-heading {
    font-size: 1.5rem;
  }
  
  .social-buttons {
  flex-wrap: wrap;
}

/* 简单页脚样式 */
.footer {
  background-color: transparent;
  padding: 20px 0;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-text {
  margin: 0;
  font-size: 14px;
  color: #6c757d;
}

.footer-text a {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-text a:hover {
  color: var(--primary-color);
}

.footer-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/* 响应式页脚 */
@media (max-width: 768px) {
  .footer {
    padding: 15px 0;
  }
  
  .footer-content {
    padding: 0 15px;
  }
  
  .footer-text {
    font-size: 13px;
  }
}