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

body.page-login {
    min-height: 100vh;
    background: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    position: relative;
}

body.page-login::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(79, 172, 254, 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: 540px;
  margin: 0 auto;
}

.login-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e8e8e8;
    padding: 50px 50px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.04);
    /* 保证登录页与注册页卡片大小一致：宽度 540px，最小高度 540px */
    width: 540px;
    max-width: 100%;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

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

.login-title {
  font-size: 32px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.login-subtitle {
  font-size: 15px;
  color: #999999;
  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: 14px;
  color: #666666;
  font-weight: 500;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  height: 50px;
  background: #f5f7fa;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 0 20px;
  font-size: 15px;
  color: #333333;
  outline: none;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: #999999;
}

.form-input:focus {
  border-color: #4facfe;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.12);
}

.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 #e8e8e8;
}

/* ============ 找回密码页：带内置按钮的输入框 ============ */
.input-wrapper--with-btn {
  position: relative;
}

.input-wrapper--with-btn .form-input {
  padding-right: 130px;
}

.form-inner-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 38px;
  padding: 0 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #4facfe 0%, #00c6ff 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.25s ease;
  user-select: none;
}

.form-inner-btn:hover {
  opacity: 0.9;
  box-shadow: 0 4px 10px rgba(79, 172, 254, 0.35);
}

.form-inner-btn.disabled,
.form-inner-btn[disabled] {
  background: #cccccc !important;
  color: #ffffff !important;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 1;
}

.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: #4facfe;
  cursor: pointer;
}

.remember-text {
  font-size: 14px;
  color: #666666;
}

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

.forgot-link:hover {
  color: #00c6ff;
}

.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: #4facfe;
  cursor: pointer;
}

.agree-text {
  font-size: 13px;
  color: #999999;
}

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

.agree-link:hover {
  color: #00c6ff;
}

.submit-button {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #4facfe 0%, #00c6ff 100%);
  border: none;
  border-radius: 14px;
  color: #ffffff;
  font-size: 16px;
  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 8px 20px rgba(79, 172, 254, 0.35);
}

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

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

.register-link span {
  color: #999999;
}

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

.register-button:hover {
  color: #00c6ff;
}

.hide {
  display: none;
}

@media (max-width: 600px) {
  .login-card {
    padding: 35px 25px;
  }

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

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

  .form-input {
    height: 48px;
  }

  .submit-button {
    height: 50px;
  }
}

/* 弹窗提示样式 - 确保文字可见 */
.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;
}
