/* ========== 基础样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #3B82F6 0%, #EF4444 33%, #FFFFFF 66%, #3B82F6 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  position: relative;
  overflow-x: hidden;
}

/* ========== K 线背景 ========== */
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

/* ========== 主布局 ========== */
.main-container {
  display: flex;
  min-height: 100vh;
  padding: 40px;
  gap: 60px;
  align-items: center;
  justify-content: center;
}

/* ========== 左侧内容区 ========== */
.left-section {
  flex: 1;
  max-width: 550px;
  color: white;
}

.left-section h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 2px 15px rgba(0,0,0,0.25);
}

.left-section .subtitle {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 20px;
}

.left-section .description {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.7;
}

.left-section .showcase {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 25px;
  backdrop-filter: blur(8px);
}

.left-section .showcase img {
  width: 100%;
  border-radius: 8px;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.left-section .features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.left-section .feature {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.left-section .feature:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.left-section .actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.left-section .btn {
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.left-section .btn-primary {
  background: linear-gradient(135deg, #E63946, #F4A261, #F59E0B);
  color: white;
}

.left-section .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(230,57,70,0.4);
}

.left-section .btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.8);
}

.left-section .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}

/* ========== 右侧登录框 ========== */
.right-section {
  flex: 0 0 auto;
}

.login-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 16px;
  padding: 45px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 10px 40px rgba(230,57,70,0.25);
}

.login-card .brand {
  text-align: center;
  margin-bottom: 30px;
}

.login-card .brand h2 {
  font-size: 2.2rem;
  font-family: 'Pacifico', cursive;
  color: #1f2937;
  margin-bottom: 8px;
}

.login-card .brand p {
  color: #6b7280;
  font-size: 0.9rem;
}

.login-card .fortune {
  text-align: center;
  margin-bottom: 35px;
  padding: 20px;
  background: rgba(230,57,70,0.05);
  border-radius: 12px;
}

.login-card .fortune-label {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-card .fortune-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ef4444;
  text-shadow: 0 0 20px rgba(230,57,70,0.7);
  animation: glow 2s ease-in-out infinite alternate;
  margin-bottom: 15px;
}

@keyframes glow {
  from { text-shadow: 0 0 10px rgba(230,57,70,0.5); }
  to { text-shadow: 0 0 25px rgba(230,57,70,0.9), 0 0 35px rgba(230,57,70,0.7); }
}

.login-card .fortune-action {
  font-size: 1.3rem;
  color: #374151;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-card .fortune-arrow {
  color: #ef4444;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  display: inline-block;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ========== 表单样式 ========== */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  color: #374151;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.input-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-box input {
  flex: 1;
  padding: 14px 45px 14px 45px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.2s;
  background: white;
  min-width: 0;
}

.input-box input:focus {
  outline: none;
  border-color: #E63946;
  box-shadow: 0 0 0 3px rgba(230,57,70,0.15);
}

.input-box .input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1.1rem;
  pointer-events: none;
}

/* ========== 验证码样式 ========== */
.input-box .captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.input-box .captcha-input {
  flex: 1;
  padding: 14px 45px 14px 45px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.2s;
  background: white;
  min-width: 0;
}

.input-box .captcha-input:focus {
  outline: none;
  border-color: #E63946;
  box-shadow: 0 0 0 3px rgba(230,57,70,0.15);
}

.input-box .captcha-img {
  height: 46px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid #d1d5db;
  transition: all 0.2s;
  object-fit: cover;
}

.input-box .captcha-img:hover {
  border-color: #E63946;
  opacity: 0.85;
}

.input-box .toggle-eye {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 5px;
}

.input-box .toggle-eye:hover {
  color: #6b7280;
}

.form-footer {
  text-align: right;
  margin-bottom: 25px;
}

.form-footer a {
  color: #6b7280;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.form-footer a:hover {
  color: #E63946;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #E63946, #F4A261, #F59E0B);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(230,57,70,0.35);
}

.submit-btn:active {
  transform: scale(0.98);
}

/* ========== 装饰元素 ========== */
.decor-corner {
  position: fixed;
  opacity: 0.2;
  pointer-events: none;
}

.decor-corner.top-right {
  top: 30px;
  right: 30px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #F4A261, #E63946);
  border-radius: 50%;
}

.decor-corner.bottom-left {
  bottom: 30px;
  left: 30px;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #3B82F6, #EF4444);
  border-radius: 12px;
}

/* ========== 响应式 ========== */
@media (max-width: 1000px) {
  .main-container {
    flex-direction: column;
    padding: 30px 20px;
    gap: 40px;
  }
  
  .left-section {
    max-width: 100%;
    text-align: center;
  }
  
  .left-section .features {
    justify-content: center;
  }
  
  .left-section .actions {
    justify-content: center;
  }
  
  .left-section .showcase {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 550px) {
  .login-card {
    padding: 35px 25px;
  }
  
  .left-section h1 {
    font-size: 2rem;
  }
  
  .left-section .btn {
    width: 100%;
    justify-content: center;
  }
  
  .decor-corner {
    display: none;
  }
}

label.error { 
	position:inherit;  
	color: red;
}