/* --- General Body Styling --- */
body {
  margin: 0;
  padding: 0;
  background: url('../assets/images/bg_main.png') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.registration-card {
  background: rgba(255, 255, 255, 0.9); /* semi-transparent white */
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  width: 400px;
  max-width: 90%;
}

/* --- Container --- */
.container {
  width: 400px;
}

/* --- Form Card --- */
.form-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- Headings --- */
h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

/* --- Labels --- */
label {
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
  display: block;
}

/* --- Inputs and Selects --- */
input[type="text"],
input[type="password"],
input[type="email"],
select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box; /* IMPORTANT for aligning with icons */
}

/* --- Captcha Container --- */
.captcha-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Checkbox --- */
.checkbox {
  margin-bottom: 15px;
  font-size: 14px;
}

.checkbox input {
  margin-right: 5px;
}

/* --- Submit Button --- */
.btn-submit {
  width: 100%;
  padding: 12px;
  background: #00c6ff;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}

.btn-submit:hover {
  background: #00a0cc;
}

/* --- Strength & Status Texts --- */
.strength-text {
  font-size: 13px;
  margin-bottom: 10px;
  color: #555;
}

#strength-status {
  font-weight: bold;
}

#username-status,
#email-status,
#password-match {
  font-size: 13px;
  margin-top: -10px;
  margin-bottom: 10px;
}

/* --- Refresh Captcha Button --- */
.btn-refresh {
  margin-left: 10px;
  padding: 6px 10px;
  font-size: 14px;
  background-color: #00c6ff;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}

.btn-refresh:hover {
  background-color: #00a0cc;
}

/* --- Modal (Game Rules) --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

/* --- Input with Eye Toggle --- */
.input-with-icon {
  position: relative;
}

.input-with-icon input {
  width: 100%;
  padding-right: 40px;
  box-sizing: border-box; /* FIX for eye icon spacing */
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  font-size: 18px;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: #00c6ff;
  border: none;
  color: white;
  font-weight: bold;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 10px;
}

.btn-submit:hover {
  background: #0072ff;
}

.btn-download {
  display: block;
  margin-top: 15px;
  text-align: center;
  background: #28a745;
  color: white;
  padding: 14px;
  font-weight: bold;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-download:hover {
  background: #218838;
}

.btn-apk {
  background: #ff6f00;
}

.btn-apk:hover {
  background: #e65100;
}