/* === GIAO DIỆN FORM ĐỒNG NHẤT (PHIÊN BẢN SỬA LỖI BỐ CỤC) === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

:root {
  --accent-color: #d4af37; /* Màu vàng Gold sang trọng */
  --text-color: #f0f0f0;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
  color: var(--text-color);
}

/* --- HIỆU ỨNG NỀN ĐỘNG --- */
body::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?q=80&w=2124&auto=format&fit=crop') no-repeat center center/cover;
  z-index: -1;
  filter: brightness(0.4);
  animation: kenburns 30s ease-in-out infinite;
}

@keyframes kenburns {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.15) translate(-5%, 5%); }
}

/* --- KHUNG FORM KÍNH MỜ --- */
.form-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem 3rem;
  border-radius: 20px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  animation: fadeInFromBottom 0.8s ease-out;
}

@keyframes fadeInFromBottom {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

h2 {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
  font-weight: 700;
}

/* --- Ô NHẬP LIỆU --- */
.input-group {
    margin-bottom: 1.2rem;
}

input {
  width: 100%;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--text-color);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* --- NÚT BẤM CHÍNH --- */
button {
  width: 100%;
  padding: 15px;
  background: var(--accent-color);
  border: none;
  border-radius: 10px;
  color: #121212;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1rem;
}
button:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* === [BẮT ĐẦU] PHẦN SỬA LỖI MỚI === */

/* --- KHUNG HIỂN THỊ CAPTCHA (CĂN GIỮA) --- */
.captcha-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 1.2rem;
  display: flex; /* Bật Flexbox */
  justify-content: center; /* Căn giữa theo chiều ngang */
  align-items: center; /* Căn giữa theo chiều dọc */
}
.captcha-box span {
  letter-spacing: 5px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--accent-color);
  text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}


/* --- KHU VỰC LIÊN KẾT PHỤ (SẮP XẾP LẠI) --- */
.form-links {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column; /* Xếp chồng lên nhau */
  align-items: center; /* Căn giữa */
  gap: 1.2rem; /* Khoảng cách giữa các link */
}
.form-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9em;
  transition: all 0.3s ease;
}
.form-links a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Biến link đăng ký thành một nút bấm */
.form-links a.button-style-link {
  display: inline-block;
  width: 100%;
  padding: 15px;
  background: transparent;
  border: 2px solid var(--accent-color);
  border-radius: 10px;
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}
.form-links a.button-style-link:hover {
    background: var(--accent-color);
    color: #121212;
}

/* === [KẾT THÚC] PHẦN SỬA LỖI MỚI === */