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

body.page-login {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    position: relative;
}

body.page-login::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    z-index: -1;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
  max-width: 480px;
  margin: 0 auto;
}

.login-card {
    background: rgba(37, 37, 66, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 70px 60px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 60px rgba(139, 92, 246, 0.1);
}

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

.login-title {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.login-subtitle {
  font-size: 16px;
  color: rgba(224, 224, 224, 0.7);
  font-weight: 400;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 15px;
  color: rgba(224, 224, 224, 0.85);
  font-weight: 500;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  height: 52px;
  background: rgba(15, 15, 35, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 14px;
  padding: 0 20px;
  font-size: 15px;
  color: #ffffff;
  outline: none;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: rgba(224, 224, 224, 0.4);
}

.form-input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.code-image {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 38px;
    width: auto;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

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

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.remember-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #8b5cf6;
  cursor: pointer;
}

.remember-text {
  font-size: 14px;
  color: rgba(224, 224, 224, 0.75);
}

.forgot-link {
  font-size: 14px;
  color: #a78bfa;
  text-decoration: none;
  transition: all 0.3s ease;
}

.forgot-link:hover {
  color: #8b5cf6;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.form-agree {
  margin-bottom: 5px;
}

.agree-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  cursor: pointer;
}

.agree-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #8b5cf6;
  cursor: pointer;
}

.agree-text {
  font-size: 13px;
  color: rgba(224, 224, 224, 0.65);
}

.agree-link {
  font-size: 13px;
  color: #a78bfa;
  text-decoration: none;
  transition: all 0.3s ease;
}

.agree-link:hover {
  color: #8b5cf6;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.submit-button {
  width: 100%;
  height: 54px;
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  border: none;
  border-radius: 27px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  letter-spacing: 1px;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.submit-button:active {
  transform: translateY(0);
}

.register-link {
  text-align: center;
  margin-top: 25px;
  font-size: 15px;
}

.register-link span {
  color: rgba(224, 224, 224, 0.65);
}

.register-button {
  color: #a78bfa;
  text-decoration: none;
  font-weight: 500;
  margin-left: 5px;
  transition: all 0.3s ease;
}

.register-button:hover {
  color: #8b5cf6;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.hide {
  display: none;
}

@media (max-width: 600px) {
  .login-card {
    padding: 40px 25px;
  }
  
  .login-title {
    font-size: 30px;
  }
  
  .login-subtitle {
    font-size: 14px;
  }
}

/* 弹窗提示样式 - 确保文字可见 */
.layui-layer {
  color: #1a1a2e !important;
}

.layui-layer-content {
  color: #1a1a2e !important;
}

.layui-layer-title {
  color: #1a1a2e !important;
}

.layui-layer-btn a {
  color: #1a1a2e !important;
}

/* Toast 提示样式 */
.layui-layer.dialog-toast {
  color: #ffffff !important;
}

.layui-layer.dialog-toast .layui-layer-content {
  color: #ffffff !important;
}

/* 加载层样式 */
.layui-layer-loading .layui-layer-content {
  color: #1a1a2e !important;
}

/* 提示框样式 */
.layui-layer-dialog {
  color: #1a1a2e !important;
}

.layui-layer-dialog .layui-layer-content {
  color: #1a1a2e !important;
}

/* 页面层样式 */
.layui-layer-page {
  color: #1a1a2e !important;
}

.layui-layer-page .layui-layer-content {
  color: #1a1a2e !important;
}

/* 确保弹窗内所有文字都是可见的深色 */
.layui-layer * {
  color: #1a1a2e !important;
}

/* Toast 保持白色文字 */
.layui-layer.dialog-toast * {
  color: #ffffff !important;
}
