/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background-color: #000;
  color: #fff;
  font-family: "Rubik", sans-serif;
  margin: 0;
  padding: 20px 40px;
}

/* ===== MENU/HEADER (kept minimal) ===== */
.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}
.icon_menu {
  display: block;
  margin-bottom: 20px;
  cursor: pointer;
}

h2 {
  font-family: "Rubik Mono One", monospace;
  font-weight: 400;
  font-size: 22px;
  color: #0063ff;
  margin: 0;
}

/* ===== Header area ===== */
.header {
  padding: 18px 12px;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#row1 {
  font-weight: 600;
  color: #1a73e8;
  font-size: 14px;
  margin-bottom: 8px;
}
.header h1 {
  font-size: 36px;
  color: #ccc;
  margin-bottom: 8px;
}
#row3 {
  font-size: 15px;
  line-height: 1.4;
  color: #aaa;
}

/* ===== Container chính ===== */
.register-container {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  overflow: hidden;
  margin: 28px auto;
  width: 100%;
  max-width: 980px;
  background: linear-gradient(
    180deg,
    rgba(11, 11, 11, 1) 0%,
    rgba(8, 8, 8, 1) 100%
  );
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(26, 115, 232, 0.02);
}

/* ===== Left side (image) ===== */
.left-side {
  flex: 1;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px;
  min-width: 320px;
}
.left-side img {
  width: 100%;
  max-width: 420px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

/* ===== Right side (form) ===== */
.right-side {
  flex: 1;
  background: linear-gradient(
    180deg,
    rgba(11, 11, 11, 1) 0%,
    rgba(10, 10, 10, 1) 100%
  );
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===== Form layout ===== */
.form-row {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  align-items: flex-start;
}
.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.form-group.full {
  width: 100%;
  margin-bottom: 18px;
}
.form-group label {
  font-size: 13px;
  color: #cfcfcf;
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  color: #fff;
  padding: 12px 12px;
  font-size: 15px;
  border-radius: 6px;
  transition: border 0.18s, box-shadow 0.18s;
}
.form-group input::placeholder {
  color: #9b9b9b;
}
.form-group textarea {
  min-height: 88px;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border: 1px solid rgba(26, 115, 232, 0.9);
  outline: none;
  box-shadow: 0 6px 24px rgba(26, 115, 232, 0.06),
    inset 0 0 0 1px rgba(26, 115, 232, 0.04);
}

/* compact helper for single-column forms on small screens */
.form-single {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== Captcha thật (canvas) ===== */
.captcha-real {
  margin-bottom: 20px;
}
.captcha-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}
/* canvas styling */
#captchaCanvas {
  border-radius: 8px;
  background: linear-gradient(180deg, #0b0b0b, #070707);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7),
    inset 0 0 32px rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  width: 200px;
  height: 70px;
}
/* controls (refresh / audio) */
.captcha-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn.small {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(26, 115, 232, 0.95);
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  min-width: 44px;
  height: 36px;
}
.captcha-label {
  display: block;
  color: #bdbdbd;
  margin: 8px 0 6px;
  font-size: 13px;
}
#captchaInput {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.03);
  color: #fff;
  border-radius: 6px;
}

/* ===== Buttons ===== */
.btn {
  background-color: #1a73e8;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 26px;
  width: 140px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s, transform 0.12s, box-shadow 0.18s;
}
.btn:hover {
  background-color: #105fc9;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(26, 115, 232, 0.12);
}
.btn:active {
  transform: translateY(0);
}

/* login hint / link */
.login-hint {
  margin-top: 16px;
  font-size: 14px;
  color: #aaa;
  text-align: center;
}
.login-hint a {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 600;
}
.login-hint a:hover {
  text-decoration: underline;
}

/* ===== small text, helpers ===== */
.small-note {
  font-size: 12px;
  color: #9b9b9b;
  margin-top: 6px;
}

/* ===== Responsive: Tablet & Mobile ===== */
@media (max-width: 1024px) {
  body {
    padding: 18px;
  }
  .register-container {
    flex-direction: column;
    max-width: 860px;
  }
  .left-side {
    min-width: auto;
    padding: 18px 18px 8px;
  }
  .left-side img {
    max-width: 360px;
  }
  .right-side {
    padding: 24px;
  }
  .form-row {
    flex-direction: column;
    gap: 12px;
  }
  #captchaCanvas {
    width: 180px;
    height: 64px;
  }
  .btn {
    width: 130px;
  }
}

@media (max-width: 600px) {
  body {
    padding: 12px;
  }
  .register-container {
    max-width: 100%;
    border-radius: 8px;
  }
  .left-side img {
    max-width: 300px;
  }
  .right-side {
    padding: 18px;
  }
  #captchaCanvas {
    width: 160px;
    height: 56px;
  }
  .btn {
    width: 100%;
  }
}

/* ===== Accessibility tweaks (contrast / focus) ===== */
:focus {
  outline: none;
}
input:focus,
textarea:focus,
button:focus {
  box-shadow: 0 8px 30px rgba(26, 115, 232, 0.08);
  border-color: rgba(26, 115, 232, 0.95);
}
