/* register.css - เสริมเฉพาะหน้าสมัคร */

.page {
  padding-top: 92px;
}

.authHead {
  text-align: center;
  margin-bottom: 18px;
}

.authTitle {
  font-family: Cinzel, serif;
  font-size: clamp(28px, 3.4vw, 48px);
  margin: 0 0 6px;
}

.authDesc {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  line-height: 1.7;
}

.authWrap {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 18px;
  align-items: start;
}

.authCard {
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 30px;
  position: relative;
}

.authCard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.3), transparent, rgba(124, 77, 255, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.authSide .sideCard {
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(10px);
  padding: 24px;
}

.sideCard h3 {
  margin: 0 0 10px;
  font-weight: 900;
}

.sideCard ul {
  margin: 0 0 12px;
  padding-left: 18px;
  color: rgba(255, 255, 255, .85);
  line-height: 1.8;
}

.sideCard li {
  margin-bottom: 6px;
}

.formGrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.col-12 {
  grid-column: span 12;
}

.col-6 {
  grid-column: span 6;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.warnInline {
  display: inline-block;
  margin-left: 6px;
  color: #ff6b6b;
  font-weight: 800;
  font-size: 12px;
}

.control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  padding: 12px 12px;
  box-shadow: var(--shadow2);
}

.control i {
  opacity: .9;
  width: 18px;
  text-align: center;
}

.input,
.select {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--txt);
  font-size: 14px;
}

/* ✅ แก้ปัญหา dropdown Day/Month/Year ตัวเลือกอ่านไม่ออก */
.select {
  color: var(--txt);
  /* สีที่โชว์ตอนยังไม่กด dropdown (บนพื้นมืดของคุณ) */
  color-scheme: dark;
  /* ช่วยให้ UI dropdown เป็นโทนมืดในหลาย browser */
}

/* ✅ สีของ “รายการ option” ตอน dropdown เปิด (กันขาวทับขาว) */
.select option {
  color: #0b1220;
  /* ตัวหนังสือเข้ม อ่านง่ายบนพื้นขาว */
  background: #ffffff;
  /* พื้น option */
}

/* placeholder "--" ให้ดูจาง */
.select option[value="--"] {
  color: #6b7280;
}

.help {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .72);
  line-height: 1.6;
  font-size: 12px;
}

.peek {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, .85);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 12px;
}

.peek:hover {
  background: rgba(255, 255, 255, .08);
}

.birthRow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.genderRow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.radioCard {
  cursor: pointer;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.radioCard:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
}

.radio {
  margin-right: 10px;
}

.radioUI {
  display: flex;
  align-items: center;
  gap: 10px;
}

.radioUI img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
}

.radioUI small {
  color: rgba(255, 255, 255, .72);
}

.captchaRow {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 10px;
  align-items: stretch;
}

.captchaBox {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.captchaBox img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
}

.terms {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  padding: 12px;
}

.checkLine {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: 800;
}

.check {
  margin-top: 3px;
}

.rules {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .12);
  overflow: hidden;
}

.rules summary {
  cursor: pointer;
  padding: 12px 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rulesBody {
  padding: 0 12px 12px;
  color: rgba(255, 255, 255, .86);
  line-height: 1.85;
}

.rulesBody ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.rulesBody li {
  margin-bottom: 6px;
}

.btnFull {
  width: 100%;
  justify-content: center;
}

.alert {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .18);
  padding: 12px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.alert--ok {
  border-color: rgba(34, 197, 94, .35);
}

.alert--err {
  border-color: rgba(255, 79, 79, .45);
}

@media (max-width: 980px) {
  .authWrap {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
    gap: 24px;
  }

  .authSide {
    order: 2;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 40px 0;
  }

  .page {
    padding-top: 80px;
  }

  .authHead {
    margin-bottom: 30px;
  }

  .authTitle {
    font-size: 2.2rem !important;
  }

  .col-6 {
    grid-column: span 12;
  }

  .formGrid {
    gap: 16px;
  }

  /* Stack buttons for better reach */
  .field.col-6 {
    margin-bottom: 4px;
  }

  .captchaRow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .authCard {
    padding: 24px 20px;
  }

  .btnFull {
    height: 52px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 24px);
  }

  .authTitle {
    font-size: 1.75rem !important;
  }

  .formGrid {
    gap: 10px;
  }
}