/* 登录页面专属样式 - 现代自适应设计（绿色系） */
/* 全屏渐变背景 - 与首页一致 */
body {
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 30%, #f0fdf4 60%, #d1fae5 100%) !important;
  min-height: 100vh;
}

/* 内容容器去掉白色背景和内边距 */
.container.main-content {
  background: transparent !important;
  padding: 0 !important;
  max-width: 100% !important;
}

.login-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float1 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.login-page::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float2 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 30px); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, -30px); }
}

.login-wrapper {
  width: 100%;
  max-width: 960px;
  display: flex;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(13, 148, 136, 0.12);
  overflow: hidden;
  margin: 20px;
  position: relative;
  z-index: 1;
}

/* 左侧品牌区 */
.login-brand {
  flex: 1;
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #10b981 100%);
  padding: 48px 40px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-brand::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: brandFloat 6s ease-in-out infinite;
}

@keyframes brandFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

.login-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.login-brand-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.login-brand-name {
  font-size: 20px;
  font-weight: 700;
}

.login-brand-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.login-brand-title .title-char {
  display: inline-block;
  opacity: 0;
  color: #ffffff;
  animation: charFadeIn 0.5s ease forwards;
}

@keyframes charFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-brand-title .title-highlight {
  color: #a7f3d0;
  font-weight: 800;
}

.login-brand-desc {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  animation: descFadeIn 0.8s ease 0.8s forwards;
}

@keyframes descFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 0.9;
    transform: translateY(0);
  }
}

.login-brand-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.login-brand-feature {
  opacity: 0;
  animation: featureFadeIn 0.5s ease forwards;
}

@keyframes featureFadeIn {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }
  to {
    opacity: 0.95;
    transform: translateX(0);
  }
}

.login-brand-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  opacity: 0.95;
}

.login-brand-feature-icon {
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* 右侧登录表单区 */
.login-form-area {
  flex: 1;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-card {
  width: 100%;
}

.login-logo {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #0d9488, #10b981);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.login-logo-title {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.login-logo-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Tab切换 */
.login-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 28px;
}

.login-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 13px;
  cursor: pointer;
  color: #64748b;
  border-radius: 8px;
  transition: all 0.25s ease;
  font-weight: 500;
}

.login-tab:hover {
  color: #0d9488;
}

.login-tab.active {
  background: #fff;
  color: #0d9488;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 表单 */
.login-form {
  display: none;
}

.login-form.active {
  display: block;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: #1e293b;
  transition: all 0.25s ease;
  background: #f8fafc;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #0d9488;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-input::placeholder {
  color: #94a3b8;
}

/* 验证码输入框+按钮 */
.code-input-group {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.code-input-group .form-input {
  flex: 1;
}

.code-input-group .code-btn {
  width: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.code-btn {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #0d9488;
  background: #fff;
  color: #0d9488;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.code-btn:hover:not(:disabled) {
  background: #f0fdfa;
}

.code-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 登录按钮 */
.login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #0d9488, #10b981);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 8px;
  letter-spacing: 2px;
}

.login-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* 底部链接 */
.login-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
}

.login-footer a {
  color: #0d9488;
  text-decoration: none;
  transition: color 0.2s;
}

.login-footer a:hover {
  color: #10b981;
}

.login-footer-text {
  color: #64748b;
}

/* 提示信息 */
.login-tip {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 13px;
}

.login-tip.success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.login-tip.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.login-tip.info {
  background: #f0fdfa;
  color: #0d9488;
  border: 1px solid #99f6e4;
}

/* 登录成功弹窗 */
.login-success-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.login-success-box {
  background: #fff;
  padding: 40px 60px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: scaleIn 0.3s ease;
}

/* 多账号选择弹窗（同手机号下多个账号） */
.login-success-box.acc-box {
  padding: 28px 32px;
  width: 380px;
  max-width: 92vw;
  text-align: left;
}
.acc-box .acc-title {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}
.acc-box .acc-desc {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 16px;
}
.acc-box .acc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.acc-box .acc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.acc-box .acc-item:hover {
  border-color: #2563eb;
  background: #f8fafc;
}
.acc-box .acc-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  flex-shrink: 0;
}
.acc-box .acc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.acc-box .acc-info {
  flex: 1;
  min-width: 0;
}
.acc-box .acc-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acc-box .acc-role {
  display: block;
  font-size: 12px;
  color: #94a3b8;
}
.acc-box .acc-arrow {
  color: #cbd5e1;
  font-size: 20px;
  flex-shrink: 0;
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.login-success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #10b981, #34d399);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #fff;
  font-size: 32px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.login-success-title {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.login-success-desc {
  font-size: 14px;
  color: #64748b;
}

/* ========== 手机端自适应 ========== */
@media (max-width: 768px) {
  .login-wrapper {
    flex-direction: column;
    margin: 16px;
    border-radius: 16px;
  }

  .login-brand {
    padding: 32px 24px;
    text-align: center;
  }

  .login-brand-logo {
    justify-content: center;
    margin-bottom: 20px;
  }

  .login-brand-title {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .login-brand-desc {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .login-brand-features {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
  }

  .login-brand-feature {
    font-size: 12px;
  }

  .login-form-area {
    padding: 28px 20px;
  }

  .login-logo-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
    border-radius: 14px;
  }

  .login-logo-title {
    font-size: 19px;
  }

  .login-tabs {
    margin-bottom: 20px;
  }

  .login-tab {
    padding: 8px 0;
    font-size: 12px;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .form-input {
    padding: 11px 14px;
    font-size: 14px;
    border-radius: 8px;
  }

  .code-input-group {
    flex-direction: column;
    gap: 10px;
  }

  .code-input-group .code-btn {
    width: 100%;
  }

  .code-btn {
    padding: 11px 14px;
    font-size: 13px;
    border-radius: 8px;
  }

  .login-btn {
    padding: 12px;
    font-size: 14px;
    border-radius: 8px;
  }

  .login-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: 12px;
  }

  .login-success-box {
    padding: 32px 40px;
    margin: 0 20px;
  }
}

/* 小屏手机适配 */
@media (max-width: 480px) {
  .login-brand {
    padding: 24px 20px;
  }

  .login-brand-title {
    font-size: 18px;
  }

  .login-brand-features {
    display: none;
  }

  .login-form-area {
    padding: 24px 16px;
  }
}
