/* ===== Modal Layout ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

/* ===== Modal Content ===== */
.modal-content {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(160%);
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
  padding: 2rem;
  width: 90%;
  max-width: 420px;
  color: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  animation: fadeIn 0.25s ease;
}

/* ===== Close Button ===== */
.close-btn {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
}
.close-btn:hover {
  color: var(--secondary);
}

/* ===== Input Fields ===== */
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
  width: 100%;
  padding: 0.7rem;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1rem;
  outline: none;
}
.auth-card form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.auth-card input::placeholder {
  color: rgba(255,255,255,0.7);
}

/* ===== Buttons ===== */
.auth-card button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.8rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 60%;
  align-self: center;
  margin-top: 10px;
}
.auth-card button:hover {
  background: var(--secondary);
  transform: translateY(-1px);
}

/* ===== Agreement Section ===== */
.agree {
  font-size: 0.85rem;
  color: #ccc;
  text-align: left;
}
.agree a {
  color: var(--secondary);
  text-decoration: none;
}
.agree a:hover {
  text-decoration: underline;
}

/* ===== Animation ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 首页隐藏导航里的 Home 链接 */
.page-index #homeLink {
  display: none;
}