/* ========================================
   Login Modal - 主流网站丝滑体验
   ======================================== */

/* Modal 遮罩层 */
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal 容器 */
.login-modal {
  background: #1a1a1a;
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-modal-overlay.active .login-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* 关闭按钮 */
.login-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.login-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.login-modal-close svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  stroke-width: 2;
}

/* Logo 和标题 */
.login-modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-modal-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.login-modal-title {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px 0;
}

.login-modal-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Google 登录按钮 */
.login-modal-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  background: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.login-modal-google:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.login-modal-google img {
  width: 20px;
  height: 20px;
}

/* 分隔线 */
.login-modal-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
}

.login-modal-divider::before,
.login-modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.login-modal-divider span {
  padding: 0 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* 表单输入框 */
.login-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-modal-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.login-modal-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.login-modal-input:focus {
  border-color: #ef2146;
  background: rgba(255, 255, 255, 0.1);
}

/* 登录按钮 */
.login-modal-submit {
  width: 100%;
  padding: 14px 20px;
  background-image: linear-gradient(to right, #ef2146 0%, #ff5c7a 50%, #ef2146 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  border: none;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background-position 0.5s ease;
  margin-top: 8px;
}

.login-modal-submit:hover {
  background-position: 100% 50%;
}

/* 底部链接 */
.login-modal-footer {
  margin-top: 24px;
  text-align: center;
}

.login-modal-footer-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.login-modal-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.login-modal-link:hover {
  color: #ef2146;
}

.login-modal-link strong {
  color: #ef2146;
  font-weight: 600;
}

/* 法律声明 */
.login-modal-legal {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  text-align: center;
}

.login-modal-legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}

/* 响应式 */
@media (max-width: 480px) {
  .login-modal {
    margin: 20px;
    padding: 32px 24px;
    max-width: calc(100% - 40px);
  }
  
  .login-modal-title {
    font-size: 20px;
  }
}

/* 防止背景滚动 */
body.modal-open {
  overflow: hidden;
}



