/* ============================================================
   Register Page — Modern Full-Width Form
   Green theme, clean sections, responsive
   ============================================================ */

/* -- Banner -- */
.reg-banner {
  width: 100%;
  overflow: hidden;
  border-bottom: 4px solid #27a844;
}
.reg-banner-img {
  width: 100%;
  height: 150px;
  display: block;
  object-fit: cover;
  object-position: left center;
}

/* -- Page container -- */
.reg-page {
  max-width: 100%;
  padding: 0 10px;
}

/* -- Title -- */
.reg-title {
  color: #27a844;
  font-size: 22px;
  font-weight: 700;
  margin: 18px 0 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8f5e9;
}
.reg-title i {
  margin-right: 8px;
}

/* -- Section card -- */
.reg-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

/* -- Section header -- */
.reg-section-header {
  background: linear-gradient(135deg, #1a7a30 0%, #1e8e35 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 14px 24px;
  letter-spacing: 0.3px;
}
.reg-section-header i {
  margin-right: 8px;
  font-size: 16px;
}

/* -- Section body -- */
.reg-section-body {
  padding: 24px;
}

/* -- Row (side-by-side fields) -- */
.reg-row {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.reg-row:last-child {
  margin-bottom: 0;
}

/* -- Field -- */
.reg-field {
  flex: 1;
  min-width: 200px;
}
.reg-field-wide {
  flex: 2;
}

/* -- Labels -- */
.reg-field label,
.reg-section-body label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}
.reg-field label .required,
.reg-section-body label .required {
  color: #27a844;
}

/* -- Inputs -- */
.reg-input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 10px 16px;
  font-size: 17px;
  color: #333;
  background: #fff;
  border: 2px solid #dce1e6;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.reg-input:focus {
  border-color: #27a844;
  box-shadow: 0 0 0 3px rgba(39,168,68,0.12);
  outline: none;
}

/* -- Error states -- */
.reg-page .has-error .reg-input,
.reg-page .errorMessage {
  border-color: #e67e22;
}
.reg-page .errorMessage {
  color: #e67e22;
  font-size: 13px;
  margin-top: 4px;
}
.reg-error-summary {
  background: #fef9f0;
  border: 1px solid #fce4c1;
  border-radius: 8px;
  color: #9a6b28;
  padding: 14px 20px;
  margin-bottom: 20px;
  font-size: 15px;
}

/* -- Send OTP area (standalone below contact info) -- */
.reg-otp-area {
  margin-bottom: 20px;
}
.reg-btn-otp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  gap: 10px;
  box-shadow: 0 3px 12px rgba(41,128,185,0.25);
  letter-spacing: 0.3px;
}
.reg-btn-otp:hover {
  background: linear-gradient(135deg, #2471a3 0%, #2980b9 100%);
  box-shadow: 0 5px 18px rgba(41,128,185,0.35);
}
.reg-btn-otp:active {
  transform: scale(0.98);
}
.reg-btn-otp:disabled,
.reg-btn-otp.disabled {
  background: #95a5a6;
  cursor: default;
  box-shadow: none;
}

/* -- OTP notice -- */
.reg-otp-notice {
  color: #27a844;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}
.reg-otp-notice i {
  margin-right: 4px;
}

/* -- OTP field centering -- */
#otp-group .reg-section-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#otp-group .reg-row {
  justify-content: center;
  width: 100%;
}
#otp-group .reg-field {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#otp-group .reg-field label {
  text-align: center;
}

/* -- OTP input (wider, spaced) -- */
.reg-otp-input {
  max-width: 250px;
  font-size: 22px !important;
  font-weight: 700;
  letter-spacing: 8px;
  text-align: center;
  height: 54px !important;
}

/* -- Checkbox -- */
.reg-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  color: #444;
  cursor: pointer;
  margin: 8px 0 0;
}
.reg-checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #27a844;
  flex-shrink: 0;
}

/* -- Submit area -- */
.reg-submit-area {
  margin: 8px 0 30px;
  text-align: center;
}
.reg-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 48px;
  font-size: 19px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a2a6c 0%, #2c3e8c 100%);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(26,42,108,0.30);
}
.reg-btn-submit:hover {
  background: linear-gradient(135deg, #141f52 0%, #1a2a6c 100%);
  box-shadow: 0 6px 20px rgba(26,42,108,0.35);
}
.reg-btn-submit:active {
  transform: scale(0.98);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
  .reg-banner-img {
    height: 100px;
  }
  .reg-title {
    font-size: 18px;
    margin: 14px 0 16px;
  }
  .reg-section-header {
    font-size: 15px;
    padding: 12px 16px;
  }
  .reg-section-body {
    padding: 16px;
  }
  .reg-row {
    flex-direction: column;
    gap: 16px;
  }
  .reg-field label,
  .reg-section-body label {
    font-size: 15px;
  }
  .reg-input {
    height: 46px;
    font-size: 15px;
  }
  .reg-btn-otp {
    height: 48px;
    font-size: 16px;
  }
  .reg-btn-submit {
    width: 100%;
    font-size: 17px;
    height: 50px;
  }
  .reg-checkbox {
    font-size: 15px;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .reg-banner-img {
    height: 120px;
  }
  .reg-section-body {
    padding: 20px;
  }
}

@media (min-width: 1200px) {
  .reg-title {
    font-size: 24px;
  }
  .reg-section-header {
    font-size: 18px;
  }
  .reg-field label,
  .reg-section-body label {
    font-size: 17px;
  }
  .reg-input {
    height: 52px;
    font-size: 18px;
  }
  .reg-btn-otp {
    font-size: 17px;
    padding: 0 30px;
    height: 52px;
  }
  .reg-btn-submit {
    height: 56px;
    font-size: 20px;
    padding: 0 56px;
  }
}
