@import url('./common.css');

body {
  background: linear-gradient(180deg, 
    #fef7ff 0%, 
    #fff1f3 25%, 
    #fdf2f8 50%, 
    #fef3f2 75%, 
    #fffbfa 100%);
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-xl);
  background: transparent;
  max-width: 480px;
  margin: 0 auto;
}

.login-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  /* background-image: url('../assets/images/morning.png'); */
  background-image: url('../assets/images/lllogo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl) var(--spacing-lg);
  position: relative;
  overflow: hidden;
  height: 200px;
}

.login-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)); */
  border-radius: var(--border-radius-lg);
}

.login-title {
  font-size: 28px;
  font-weight: bold;
  color: white;
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.login-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.login-form {
  margin-top: var(--spacing-xl);
  width: 100%;
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.login-button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #FF4990 0%, #ff7ba3 50%, #FF4990 100%) !important;
  color: white !important;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  box-shadow: 
    0 4px 12px rgba(255, 73, 144, 0.3),
    0 2px 6px rgba(255, 123, 163, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.login-button:hover {
  box-shadow: 
    0 6px 16px rgba(255, 73, 144, 0.4),
    0 3px 8px rgba(255, 123, 163, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.login-button:disabled {
  background: #ccc !important;
  cursor: not-allowed;
  box-shadow: none !important;
  text-shadow: none !important;
}

.agreement {
  margin-top: var(--spacing-lg);
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-hint);
  text-align: center;
}

.social-login {
  display: flex;
  justify-content: space-around;
  margin-top: var(--spacing-xl);
  padding: 0 var(--spacing-xl);
}

.social-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.social-icon img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: var(--spacing-xs);
}

.social-icon span {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 手机验证码登录表单 */
.phone-form {
  display: none; /* 默认隐藏，通过JS控制显示 */
}

.phone-form.active {
  display: block;
}

.verification-code-group {
  display: flex;
  align-items: center;
}

.verification-code-input {
  flex: 1;
}

.get-code-btn {
  background: rgba(255, 73, 144, 0.08) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 73, 144, 0.2) !important;
  color: #FF4990 !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 2px 8px rgba(255, 73, 144, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.get-code-btn:hover {
  background: rgba(255, 73, 144, 0.12) !important;
  box-shadow: 
    0 4px 12px rgba(255, 73, 144, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  border-color: rgba(255, 73, 144, 0.3) !important;
}

.get-code-btn:disabled {
  background: #f5f5f5 !important;
  color: #999 !important;
  cursor: not-allowed;
  border-color: #e0e0e0 !important;
  box-shadow: none !important;
}

/* 登录方式切换 */
.login-methods {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.login-method {
  padding: var(--spacing-md) var(--spacing-lg);
  margin: 0 var(--spacing-md);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  font-size: 16px;
}

.login-method.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 500;
}

/* 微信授权表单 */
.wechat-form {
  display: none;
  text-align: center;
  margin-top: var(--spacing-xl);
}

.wechat-form.active {
  display: block;
}

.wechat-icon-large {
  width: 80px;
  height: 80px;
  margin-bottom: var(--spacing-lg);
}

.wechat-tip {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  font-size: 16px;
} 