/* ═══════════════ Login Modal Styles ═══════════════ */
#loginModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.login-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: #1a1814;
  border: 1px solid rgba(200,164,92,0.2);
  border-radius: 16px;
  padding: 36px 28px 28px;
  max-width: 380px;
  width: 100%;
  position: relative;
  text-align: center;
  animation: loginFadeIn 0.3s ease-out;
}

@keyframes loginFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #6a6058;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.login-close:hover { color: #c8a45c; }

.login-card h3 {
  font-family: "Noto Serif SC","PingFang SC",serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #f5f0e8;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.login-sub {
  font-size: 0.82rem;
  color: #8a8075;
  margin-bottom: 24px;
}

.login-avatar-pick {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.avatar-option {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  background: rgba(255,255,255,0.03);
}
.avatar-option:hover {
  background: rgba(200,164,92,0.1);
  border-color: rgba(200,164,92,0.3);
}
.avatar-option.selected {
  background: rgba(200,164,92,0.15);
  border-color: #c8a45c;
}

.login-field {
  margin-bottom: 16px;
  text-align: left;
}
.login-field label {
  display: block;
  font-size: 0.75rem;
  color: #9a9085;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.login-optional {
  color: #6a6058;
  font-weight: 400;
}
.login-field input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,164,92,0.15);
  border-radius: 8px;
  color: #e8e0d5;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.login-field input:focus {
  border-color: rgba(200,164,92,0.5);
}
.login-field input::placeholder {
  color: #5a5450;
}

.login-confirm {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(200,164,92,0.15), rgba(200,164,92,0.08));
  border: 1px solid rgba(200,164,92,0.3);
  border-radius: 10px;
  color: #c8a45c;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: all 0.25s;
}
.login-confirm:hover {
  background: linear-gradient(135deg, rgba(200,164,92,0.22), rgba(200,164,92,0.12));
  border-color: rgba(200,164,92,0.5);
}

.login-logout {
  margin-top: 14px;
  font-size: 0.78rem;
  color: #6a6058;
  cursor: pointer;
  transition: color 0.2s;
}
.login-logout:hover { color: #d49183; }

.login-disclaimer {
  margin-top: 16px;
  font-size: 0.68rem;
  color: #4a4440;
}

@media (max-width: 400px) {
  .login-card { padding: 28px 20px 22px; }
  .login-card h3 { font-size: 1.1rem; }
  .avatar-option { width: 32px; height: 32px; font-size: 1.1rem; }
}
