body {
  background: linear-gradient(135deg, #e0f7fa, #e8f5e9);
  font-family: "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.login-card {
  width: 380px;
  max-width: 100%;
  padding: 30px 24px;
  border-radius: 15px;
  background: white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.login-card h3 {
  color: #333;
  margin-bottom: 10px;
  font-weight: bold;
  text-align: center;
  font-size: 24px;
}
.login-card .subtitle {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}
.login-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.login-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  border: none;
  background: none;
  color: #666;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}
.login-tab.active {
  color: #00796b;
  border-bottom-color: #00796b;
  background: #f5f5f5;
}
.login-tab i {
  margin-right: 5px;
}
.form-group {
  position: relative;
  margin-bottom: 15px;
}
.form-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}
.form-control {
  border-radius: 10px;
  padding-left: 40px;
  border: 1px solid #ddd;
}
.form-control:focus {
  border-color: #00796b;
  box-shadow: 0 0 0 0.2rem rgba(0, 121, 107, 0.25);
}
.btn-primary {
  background: linear-gradient(135deg, #00796b, #00695c);
  border: none;
  border-radius: 10px;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #00695c, #005a4f);
}
.login-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 14px;
}
.register-link {
  color: #00796b;
  text-decoration: none;
  font-weight: 500;
}
.register-link:hover {
  text-decoration: underline;
}
.forgot-password {
  color: #999;
  text-decoration: none;
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
}
.forgot-password:hover {
  color: #666;
}
/* 顶部弹窗消息提示样式 */
.toast-container {
  margin-top: 20px;
  width: 100%;
  max-width: 500px;
}

.toast {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: none;
  margin-bottom: 10px;
  animation: slideDown 0.3s ease-out;
  backdrop-filter: blur(10px);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-100px);
  }
}

.toast.alert-success {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
}

.toast.alert-error,
.toast.alert-danger {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
}

.toast.alert-warning {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
}

.toast.alert-info {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
}

.toast-body {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
}

.toast-body .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

.toast-body .btn-close:hover {
  opacity: 1;
}

.toast-body i {
  font-size: 18px;
}


/* ========== 移动端适配 ========== */
@media (max-width: 576px) {
  body {
    align-items: flex-start;
    padding: 24px 16px;
  }

  .login-card {
    width: 100%;
    max-width: 420px;
    padding: 24px 18px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  }

  .login-card h3 {
    font-size: 20px;
  }

  .login-card .subtitle {
    font-size: 13px;
  }

  .login-tabs {
    gap: 6px;
  }

  .login-tab {
    padding: 8px 4px;
    font-size: 13px;
  }

  .form-group {
    margin-bottom: 12px;
  }

  .form-control {
    font-size: 16px;
    padding-left: 38px;
  }

  .btn-primary {
    padding: 10px;
    font-size: 15px;
  }

  .login-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
  }

  .toast-container {
    max-width: 100%;
  }
}
