/* =========================================================
   MedicalPro Register Page — Clean UI (Final)
   ========================================================= */

/* ================= RESET ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #f6f8f7 !important;
}

/* Kill ALL background images from theme */
body,
#layoutAuthentication,
.reg-page-wrap,
.reg-right,
[class*="gbsfd"] {
  background-image: none !important;
  background: #f6f8f7 !important;
}

/* ================= LAYOUT ================= */
.reg-page-wrap {
  display: flex;
  min-height: 100vh;
}

/* ================= LEFT PANEL ================= */
.reg-left {
  width: 360px;
  min-width: 320px;
  background: linear-gradient(180deg, #062a3a, #041e2c);
  color: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.logo {
  width: 150px;
  margin-bottom: 30px;
}

.reg-left-headline {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.reg-left-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 30px;
}

.reg-left-feature {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.reg-left-feature-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(45,184,122,0.2);
  color: #2db87a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.reg-left-footer {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

/* ================= RIGHT PANEL ================= */
.reg-right {
  flex: 1;
  padding: 50px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
}

.reg-form-wrap {
  width: 100%;
  max-width: 520px;
}

/* ================= TOP LINK ================= */
.reg-top-link {
  text-align: right;
  font-size: 13px;
  margin-bottom: 15px;
  color: #777;
}

.reg-top-link a {
  color: #2db87a;
  text-decoration: none;
  font-weight: 500;
}

.reg-top-link a:hover {
  text-decoration: underline;
}

/* ================= HEADINGS ================= */
.reg-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

.reg-subtitle {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

/* ================= FORM GRID ================= */
.reg-form-row {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.reg-form-row.cols-2 {
  grid-template-columns: 1fr 1fr;
}

/* ================= LABELS ================= */
.reg-form-group label {
  font-size: 13px;
  margin-bottom: 5px;
  display: block;
  color: #444;
  font-weight: 500;
}

/* ================= INPUTS ================= */
.form-control {
  height: 44px;
  border-radius: 10px;
  border: 1px solid #dde3e0;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
  width: 100%;
}

.form-control:focus {
  border-color: #2db87a;
  box-shadow: 0 0 0 3px rgba(45,184,122,0.15);
}

/* intlTelInput wrapper — keep height consistent */
.iti {
  width: 100%;
}

.iti .form-control {
  width: 100%;
}

/* Selectize overrides */
.selectize-input {
  border-radius: 10px !important;
  border: 1px solid #dde3e0 !important;
  min-height: 44px !important;
  padding: 8px 14px !important;
  font-size: 14px !important;
  box-shadow: none !important;
}

.selectize-input.focus {
  border-color: #2db87a !important;
  box-shadow: 0 0 0 3px rgba(45,184,122,0.15) !important;
}

/* ================= INPUT GROUP (password visibility) ================= */
.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .form-control {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  flex: 1;
}

.input-group-text {
  border: 1px solid #dde3e0;
  border-left: none;
  border-radius: 0 10px 10px 0;
  background: #fff;
  padding: 0 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #888;
  transition: color 0.2s;
}

.input-group-text:hover {
  color: #2db87a;
}

.input-group-text .material-icons {
  font-size: 20px;
}

/* ================= STRENGTH BAR ================= */
.reg-strength-bar {
  height: 4px;
  background: #e5ebe8;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}

.reg-strength-fill {
  height: 100%;
  width: 0%;
  transition: width 0.4s ease, background 0.3s ease;
}

.reg-strength-fill.weak   { width: 30%;  background: #e74c3c; }
.reg-strength-fill.medium { width: 65%;  background: #f1c40f; }
.reg-strength-fill.strong { width: 100%; background: #2db87a; }

#passwordStrengthLabel {
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

.password-wrapper {
  position: relative;
}

.tick-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) scale(0.5);
  color: #2db87a;
  font-size: 18px;
  opacity: 0;
  transition: 0.3s ease;
}

.tick-icon.show {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.form-control.valid {
  border-color: #2db87a;
}

/* JS sets innerText — we target via class added in JS or just colour by content */
/* Fallback: colour applied inline via JS classList */

/* ================= AGREEMENT ================= */
.reg-agree-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.reg-agree-row .form-check-input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #2db87a;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.reg-agree-row .form-check-label {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.reg-agree-row a {
  color: #2db87a;
  text-decoration: none;
  font-weight: 500;
}

.reg-agree-row a:hover {
  text-decoration: underline;
}

/* ================= SUBMIT BUTTON ================= */
#btnCreateDoctorAccount {
  height: 48px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, #2db87a, #3a7bd5);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 0 28px;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

#btnCreateDoctorAccount:hover:not(:disabled) {
  opacity: 0.9;
}

#btnCreateDoctorAccount:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ================= FOOTER LOGIN LINK ================= */
.d-flex a.text-decoration-none {
  color: #2db87a;
  font-weight: 500;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 70px;
}

/* Eye icon */
.toggle-eye {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

/* Tick icon */
.tick-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: green;
}

/* Remove browser default password eye (Edge, Chrome) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/* Chrome / Edge modern */
input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
}

/* Safari / Chrome autofill UI */
input[type="password"]::-webkit-textfield-decoration-container {
    display: none !important;
}
/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .reg-left {
    display: none;
  }

  .reg-right {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .reg-form-row.cols-2 {
    grid-template-columns: 1fr;
  }

  .reg-title {
    font-size: 20px;
  }

  #btnCreateDoctorAccount {
    width: 100%;
  }
}