/* ========================================
   织网 (WebWeave) - 认证页面专属样式
   登录/注册页面的神圣风格
   ======================================== */

/* === 认证页面容器 === */
.auth-page-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* === 圣堂穹顶装饰 === */
.sanctum-dome {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 100%;
  background: radial-gradient(ellipse at center, 
    rgba(255, 215, 0, 0.05) 0%, 
    rgba(184, 134, 11, 0.03) 30%, 
    transparent 60%);
  pointer-events: none;
  animation: domePulse 10s ease-in-out infinite;
}

@keyframes domePulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.8; transform: translateX(-50%) scale(1.05); }
}

/* === 圣殿柱廊 === */
.sanctum-column {
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(184, 134, 11, 0.1) 20%,
    rgba(184, 134, 11, 0.15) 50%,
    rgba(184, 134, 11, 0.1) 80%,
    transparent 100%);
  pointer-events: none;
  opacity: 0.6;
}

.sanctum-column.left {
  left: 5%;
  transform: perspective(500px) rotateY(5deg);
  box-shadow: inset -2px 0 10px rgba(255, 215, 0, 0.2);
}

.sanctum-column.right {
  right: 5%;
  transform: perspective(500px) rotateY(-5deg);
  box-shadow: inset 2px 0 10px rgba(255, 215, 0, 0.2);
}

.sanctum-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom,
    transparent,
    var(--sacred-gold) 20%,
    var(--divine-gold) 50%,
    var(--sacred-gold) 80%,
    transparent);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  animation: columnGlow 5s ease-in-out infinite;
}

@keyframes columnGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* === 认证内容区 === */
.auth-content {
  position: relative;
  z-index: var(--z-content);
  width: 100%;
  max-width: 500px;
  padding: 20px;
}

/* === 圣徽标志 === */
.holy-emblem {
  text-align: center;
  margin-bottom: 30px;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
}

.holy-emblem svg {
  animation: float 4s ease-in-out infinite;
}

/* === 认证标题 === */
.auth-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 10px;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
}

.auth-subtitle {
  text-align: center;
  font-size: 1rem;
  opacity: 0.8;
  letter-spacing: 0.2em;
}

/* === 登录/注册容器（神圣圣所） === */
.auth-sanctuary {
  background: linear-gradient(145deg, rgba(10, 10, 10, 0.9), rgba(26, 26, 46, 0.85));
  backdrop-filter: blur(10px);
  border: 3px solid var(--sacred-gold);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 
    var(--holy-glow-medium),
    var(--shadow-elevated),
    inset 0 0 40px rgba(184, 134, 11, 0.1);
  position: relative;
  overflow: hidden;
}

/* 圣所顶部装饰 */
.auth-sanctuary::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--divine-gold), transparent);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

/* 圣所背景纹理 */
.auth-sanctuary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23B8860B' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.auth-sanctuary:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 0 35px rgba(255, 215, 0, 0.4),
    inset 0 0 50px rgba(184, 134, 11, 0.2),
    var(--shadow-elevated);
  transition: all 0.4s var(--ease-out);
}

/* === 认证表单 === */
.auth-form {
  position: relative;
  z-index: 1;
}

/* === 神圣输入框（增强版） === */
.sacred-input {
  background: rgba(10, 10, 10, 0.7);
  border-color: var(--sacred-gold);
  transition: all var(--duration-normal);
  position: relative;
}

.sacred-input:focus {
  border-color: var(--divine-gold);
  box-shadow: 
    0 0 20px rgba(255, 215, 0, 0.5),
    inset 0 0 10px rgba(255, 215, 0, 0.1);
  background: rgba(10, 10, 10, 0.9);
  transform: scale(1.01);
}

/* 聚焦时的输入框容器效果 */
.input-with-icon.input-focused {
  animation: inputFocusPulse 0.5s ease-out;
}

@keyframes inputFocusPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.input-with-icon.input-focused .icon {
  color: var(--divine-gold);
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
  animation: iconGlow 1s ease-in-out;
}

@keyframes iconGlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* === 圣盾登录按钮（增强版） === */
.holy-shield-btn {
  position: relative;
  overflow: visible;
}

.holy-shield-btn .shield-icon {
  display: inline-block;
  margin-right: 10px;
  font-size: 1.3rem;
  transition: transform var(--duration-normal);
}

.holy-shield-btn:hover .shield-icon {
  transform: scale(1.2) rotate(-10deg);
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 1));
}

.holy-shield-btn:active {
  animation: shieldShake 0.4s ease-in-out;
}

/* === 认证页面底部 === */
.auth-footer {
  margin-top: 30px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.forgot-password {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--sacred-gold);
  border-bottom: 1px dotted var(--sacred-gold);
  margin-bottom: 15px;
  transition: all var(--duration-normal);
}

.forgot-password:hover {
  color: var(--divine-gold);
  border-bottom-style: solid;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.divider {
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sacred-gold), transparent);
  margin: 20px auto;
}

.register-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  color: var(--sacred-gold);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
  border-bottom: 2px solid transparent;
  transition: all var(--duration-normal);
}

.register-link .sword-icon {
  font-size: 1.2rem;
  transition: transform var(--duration-normal);
}

.register-link:hover {
  color: var(--divine-gold);
  border-bottom-color: var(--divine-gold);
}

.register-link:hover .sword-icon {
  transform: rotate(20deg);
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}

/* === 神圣格言 === */
.holy-motto {
  position: relative;
  padding: 15px 30px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(184, 134, 11, 0.1), 
    transparent);
  border-top: 1px solid rgba(184, 134, 11, 0.3);
  border-bottom: 1px solid rgba(184, 134, 11, 0.3);
}

.holy-motto::before,
.holy-motto::after {
  content: '✦';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sacred-gold);
  font-size: 1.5rem;
  opacity: 0.5;
}

.holy-motto::before {
  left: 10px;
}

.holy-motto::after {
  right: 10px;
}

/* === 响应式设计 === */
@media (max-width: 640px) {
  .auth-content {
    padding: 10px;
  }
  
  .auth-sanctuary {
    padding: 30px 20px;
  }
  
  .auth-title {
    font-size: 2rem;
  }
  
  .sanctum-column {
    width: 50px;
  }
  
  .sanctum-column.left {
    left: 0;
  }
  
  .sanctum-column.right {
    right: 0;
  }
}

@media (max-width: 1024px) {
  .sanctum-dome {
    width: 200%;
  }
}

/* === 输入验证状态样式 === */
.holy-input.is-valid {
  border-color: var(--success-green);
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

.holy-input.is-invalid {
  border-color: var(--error-red);
  box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
  animation: shieldCrack 0.6s ease-in-out;
}

/* === 加载状态的按钮 === */
.holy-button.loading {
  pointer-events: none;
  opacity: 0.8;
}

.holy-button.loading::before {
  animation: shimmer 1.5s linear infinite;
}
