* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: rgb(240,239,242);
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 1000px;
  display: flex;
  min-height: 600px;
  animation: fadeIn 0.6s ease-out;
}

.left-panel {
  /* background: linear-gradient(135deg, #10b98130 0%, #05966970 100%); */
  background:#fff;
  padding: 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.div-img {
  width: 200px;
  height: 200px;
  display: block;
}

.right-panel {
  background: white;
  padding: 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-container {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.logo-container::before {
  content: "🌿";
  font-size: 48px;
}

.brand-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 16px;
}

.brand-subtitle {
  font-size: 20px;
  color: #d1fae5;
  margin-bottom: 24px;
}

.brand-features {
  text-align: center;
}

.brand-features p {
  color: #d1fae5;
  margin-bottom: 8px;
  font-size: 16px;
}

.login-form-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.login-title {
  font-size: 24px;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 24px;
  text-align: center;
}

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

.form-input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  background-color: #f9fafb;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  background-color: white;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 18px;
}

.input-icon::before {
  content: "";
}

.username-icon::before {
  content: "👤";
}

.password-icon::before {
  content: "🔒";
}

.eye-icon::before {
  content: "👁️";
}

.eye-icon.closed::before {
  content: "🚫";
}

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

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input[type="checkbox"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
}

.remember-me label {
  font-size: 14px;
  color: #6b7280;
}

.forgot-password {
  font-size: 14px;
  color: #10b981;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #059669;
}

.login-button {
  width: 100%;
  padding: 12px 24px;
  background-color: rgb(23,165,85);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.login-button:hover {
  background-color: #059669;
  transform: translateY(-1px);
}

.login-button:active {
  background-color: #047857;
  transform: translateY(0);
}

.login-button:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.register-link {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #6b7280;
}

.register-link a {
  color: #10b981;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.register-link a:hover {
  color: #059669;
}

.divider {
  position: relative;
  margin: 32px 0;
  text-align: center;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #e5e7eb;
}

.divider span {
  position: relative;
  background-color: white;
  padding: 0 16px;
  font-size: 14px;
  color: #9ca3af;
}

.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #374151;
  font-size: 14px;
}

.social-button:hover {
  background-color: #f9fafb;
}

.social-icon {
  margin-right: 8px;
  font-size: 16px;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 0;
  font-size: 13px;
  color: #8e8e8e;
  text-align: center;
  background: rgb(240,239,242);
}

.toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  font-size: 16px;
  padding: 4px;
}

.toggle-password:hover {
  color: #374151;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateX(100%);
  transition: all 0.3s ease;
  max-width: 400px;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.notification.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.notification.info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }

  .left-panel {
    padding: 32px;
  }

  .right-panel {
    padding: 32px;
  }

  .brand-title {
    font-size: 28px;
  }

  .login-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .left-panel {
    padding: 24px;
  }

  .right-panel {
    padding: 24px;
  }

  .social-login {
    grid-template-columns: 1fr;
  }
}
