/* 基础样式 */
:root {
  --bytedance-red: #fe2c55;
  --bytedance-blue: #25f4ee;
  --bytedance-purple: #722ed1;
  --bytedance-yellow: #ffcc00;
  --bytedance-green: #00e49f;
}

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

body {
  font-family: 'Inter', 'system-ui', 'sans-serif';
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
   background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  overflow: hidden;
}

/* 装饰元素 */
.decor-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  animation: float 6s ease-in-out infinite;
}

.circle-1 {
  width: 16rem;
  height: 16rem;
  background-color: rgba(114, 46, 209, 0.3);
  top: -5rem;
  left: -5rem;
}

.circle-2 {
  width: 20rem;
  height: 20rem;
  background-color: rgba(37, 244, 238, 0.3);
  top: 33%;
  right: -5rem;
  animation-delay: 2s;
}

/* 登录卡片 */
.login-card {
  position: relative;
  width: 100%;
  max-width: 28rem;
  padding: 2rem;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

/* Logo样式 */
/* 新版Logo样式 */
.logo-header {
  margin-bottom: 2rem;
  width: 100%;
}

.logo-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.logo-img-container {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px -1px rgba(114, 46, 209, 0.2);
  flex-shrink: 0;
}

.logo-title-container {
  display: flex;
  align-items: center;
}

.logo-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  margin: 0;
  white-space: nowrap;
}

.logo-image {
  height: 2rem;
  width: auto;
}


/* 更新后的Logo样式 */
.logo-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  margin-bottom: 2rem;
  gap: 1rem;
}

.logo-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 6px -1px rgba(114, 46, 209, 0.2);
  margin-bottom: 0 !important; /* 确保移除底部边距 */
}

.logo-text {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  margin: 0 !important; /* 强制移除h1默认边距 */
  white-space: nowrap; /* 防止文字换行 */
}

.logo-image {
  height: 2rem;
  width: auto;
}



/* 表单样式 */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  padding-left: 0.75rem;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.7);
}

.form-input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 2.5rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
  border-color: var(--bytedance-blue);
  box-shadow: 0 0 0 2px rgba(37, 244, 238, 0.3);
  outline: none;
}

/* 密码显示/隐藏按钮 */
.password-toggle {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding-right: 0.75rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.3s;
}

.password-toggle:hover {
  color: white;
}

/* 登录按钮 */
.login-button {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bytedance-red);
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.login-button:hover {
  box-shadow: 0 10px 15px -3px rgba(254, 44, 85, 0.3);
  transform: translateY(-0.125rem);
}

/* 动画 */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
.icon-svg {
  width: 1em;
  height: 1em;
  fill: currentColor; /* 使用当前文字颜色 */
}

.input-icon .icon-svg {
  color: rgba(255, 255, 255, 0.7);
}

.password-toggle .icon-svg {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.password-toggle:hover .icon-svg {
  color: white;
}
