/**
 * LoginStatusAlert 组件样式
 * 专用于登录状态提示框的样式定义
 */

/* 登录状态提示框容器 */
.login-status-alert-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(2px);
}

/* 登录状态提示框 */
.login-status-alert {
  max-width: 420px;
  width: 100%;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #f59e0b;
  border-radius: 16px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 10px 20px -5px rgba(245, 158, 11, 0.1),
    0 0 0 1px rgba(251, 191, 36, 0.05);
  overflow: hidden;
  pointer-events: auto;
  transform: scale(0.95);
  animation: popIn 0.3s ease-out forwards;
  backdrop-filter: blur(10px);
}

/* 顶部装饰条 */
.login-status-alert::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
}

/* 内容区域 */
.login-status-alert-content {
  padding: 28px;
}

/* 头部区域 */
.login-status-alert-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* 图标和标题区域 */
.login-status-alert-icon-title {
  display: flex;
  align-items: center;
  flex: 1;
}

/* 图标容器 */
.login-status-alert-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  border: 2px solid #fbbf24;
}

/* 图标 SVG */
.login-status-alert-icon svg {
  width: 20px;
  height: 20px;
  color: #d97706;
}

/* 标题 */
.login-status-alert-title {
  font-size: 18px;
  font-weight: 600;
  color: #92400e;
  margin: 0;
  line-height: 1.4;
}

/* 关闭按钮 */
.login-status-alert-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: #f59e0b;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.login-status-alert-close:hover {
  background: #fef3c7;
  color: #d97706;
  transform: scale(1.05);
}

.login-status-alert-close svg {
  width: 18px;
  height: 18px;
}

/* 消息内容区域 */
.login-status-alert-message {
  margin-bottom: 20px;
}

.login-status-alert-message p {
  margin: 0 0 8px 0;
  color: #b45309;
  font-size: 15px;
  line-height: 1.5;
}

.login-status-alert-message .details {
  font-size: 14px;
  color: #d97706;
  opacity: 0.9;
}

/* 操作按钮区域 */
.login-status-alert-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

/* 次要按钮（稍后再说） */
.login-status-alert-button-secondary {
  padding: 10px 16px;
  background: none;
  border: 1px solid #f59e0b;
  color: #d97706;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-status-alert-button-secondary:hover {
  background: #fef3c7;
  border-color: #d97706;
  color: #b45309;
  transform: translateY(-1px);
}

/* 主要按钮（立即登录） */
.login-status-alert-button-primary {
  padding: 12px 24px;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  border: none;
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.login-status-alert-button-primary:hover {
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.login-status-alert-button-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* 动画定义 */
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 640px) {
  .login-status-alert-container {
    padding: 16px;
  }
  
  .login-status-alert {
    max-width: none;
    border-radius: 12px;
  }
  
  .login-status-alert-content {
    padding: 20px;
  }
  
  .login-status-alert-title {
    font-size: 16px;
  }
  
  .login-status-alert-icon {
    width: 36px;
    height: 36px;
  }
  
  .login-status-alert-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .login-status-alert-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .login-status-alert-button-secondary,
  .login-status-alert-button-primary {
    width: 100%;
    text-align: center;
  }
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
  .login-status-alert {
    background: linear-gradient(135deg, #451a03 0%, #7c2d12 100%);
    border-color: #ea580c;
    color: #fed7aa;
  }
  
  .login-status-alert-title {
    color: #fed7aa;
  }
  
  .login-status-alert-message p {
    color: #fdba74;
  }
  
  .login-status-alert-message .details {
    color: #fb923c;
  }
  
  .login-status-alert-icon {
    background: linear-gradient(135deg, #7c2d12 0%, #9a3412 100%);
    border-color: #ea580c;
  }
  
  .login-status-alert-close {
    color: #fb923c;
  }
  
  .login-status-alert-close:hover {
    background: #7c2d12;
    color: #fed7aa;
  }
  
  .login-status-alert-button-secondary {
    border-color: #ea580c;
    color: #fb923c;
  }
  
  .login-status-alert-button-secondary:hover {
    background: #7c2d12;
    border-color: #fb923c;
    color: #fed7aa;
  }
}