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

body {
  font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #dde3e9 0%, #07e6d3 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/static/admin/images/background.svg") no-repeat center center;
  background-size: cover;
  opacity: 0.1;
  z-index: -1;
}

.login-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 600px;
  max-width: 90%;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideIn 0.6s ease-out;
}

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

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.layui-form-item {
  margin-bottom: 20px;
  position: relative;
}

.layui-input {
  height: 45px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding-left: 45px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.layui-input:focus {
  border-color: #33c8bc;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: #fff;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 18px;
  z-index: 2;
}

.code-container {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.code-input-wrapper {
  flex: 1;
  position: relative;
}

.code-image-wrapper {
  flex: 1;
  height: 45px;
}

.code {
  width: 100%;
  padding-left: 45px;
}

.codeImage {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  object-fit: cover;
}

.codeImage:hover {
  border-color: #33c8bc;
  transform: scale(1.02);
}

.remember-me {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.remember-me label {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #666;
  font-size: 14px;
}

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

.forgot-password:hover {
  color: #764ba2;
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  height: 45px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #33c8bc 0%, #23d3ca 100%);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

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

.login-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login-footer {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  color: #999;
  font-size: 12px;
}
@media (max-width: 480px) {
  .login-container {
    padding: 30px 20px;
    margin: 20px;
  }

  .title {
    font-size: 24px;
  }

  .codeImage {
    width: 100%;
    height: 45px;
  }

  .code-container {
    flex-direction: column;
    gap: 15px;
  }

  .code-input-wrapper,
  .code-image-wrapper {
    width: 100%;
  }
}

/* 加载动画 */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 1000;
}

.loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #33c8bc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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