/* ==========================================================
   Registration form — matches existing card/blue-button style
   ========================================================== */

:root {
  --reg-blue: #1e3fd8;
  --reg-blue-dark: #1730a8;
  --reg-text: #001328;
  --reg-muted: #68717f;
  --reg-border: #e2e5ec;
  --reg-bg-soft: #f6f7fb;
  --reg-error: #d64545;
  --reg-success: #1f9254;
}

.custom-reg-wrapper {
  max-width: 510px;
  margin: 0 auto;
  /* padding: 32px 28px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--reg-border);
  box-shadow: 0 2px 10px rgba(0, 19, 40, 0.04); */
  font-family: inherit;
  color: var(--reg-text);
}

/* Standalone social login buttons (login page — no card wrapper) */
.reg-social-login-wrapper {
  /* max-width: 440px; */
  margin: 0 auto;
  font-family: inherit;
  color: var(--reg-text);
}
/* ***************************************** NEED TO ADD DISPLAY NONE AFTER WORK ************************************* */
.reg-step-hidden {
  display: none !important; 
}

.reg-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 46px;
  text-align: center;
  margin: 0 0 2px;
  color: var(--reg-text);
}

.reg-subtitle {
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  color: var(--reg-muted);
  margin: 0 0 48px;
  line-height: 20px;
}

/* OAuth buttons */
.reg-oauth-group {
  margin-bottom: 20px;
}

.reg-oauth-label {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: var(--reg-text);
  margin-bottom: 16px;
}

.reg-oauth-buttons {
  display: flex;
  gap: 10px;
}

.reg-oauth-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* padding: 13px 8px; */
  min-height: 44px;
  border: 1px solid #adb0c0;
  border-radius: 12px;
  font-size: 16px;
  color: #adb0c0;
  text-decoration: none;
  background: #fff;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.reg-oauth-btn:hover {
  border-color: var(--reg-blue);
  background: var(--reg-bg-soft);
}

.reg-oauth-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Divider */
.reg-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--reg-muted);
  font-size: 18px;
  line-height: 20px;
  margin: 32px 0;
}
.reg-divider::before,
.reg-divider::after {
  content: "";
  flex: 1;
}
.reg-divider span {
  padding: 0 12px;
}

/* Forms + inputs */
.reg-form,
.reg-role-form {
  display: flex !important;
  flex-direction: column;
  gap: 20px;
}

.reg-role-form.is-hidden {
  display: none !important;
}

.form-group {
  position: relative;
}

.form-group input {
  width: 100%;
  box-sizing: border-box;
  /* padding: 7px 16px; */
  min-height: 44px;
  font-size: 16px;
  border: 1px solid #adb0c0;
  border-radius: 12px;
  background: #fff;
  color: #001328;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-group input:focus {
  border-color: var(--reg-blue);
}

.form-group select {
  width: 100%;
  box-sizing: border-box;
  /* padding: 7px 16px; */
  min-height: 44px;
  font-size: 15px;
  border: 1px solid #adb0c0;
  border-radius: 12px;
  background: #fff;
  color: var(--reg-text);
  outline: none;
  transition: border-color 0.15s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2368717F' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.form-group select:focus {
  border-color: var(--reg-blue);
}

/* Static (non-floating) label used above the select field */
/* .reg-select-label {
  display: block;
  font-size: 12px;
  color: var(--reg-muted);
  margin-bottom: 6px;
} */

.reg-select-label {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--reg-muted);
  background: transparent;
  padding: 0 4px;
  pointer-events: none;
  transition: all 0.15s ease;
  border-radius: 12px;
}
/* Two fields side by side, e.g. provider type + registration number */
.form-row {
  display: flex;
  gap: 12px;
}
.form-row .form-group {
  flex: 1;
  min-width: 0;
}

.reg-password-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--reg-muted);
}

/* Floating labels */
.reg-floating-label {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--reg-muted);
  background: transparent;
  padding: 0 4px;
  pointer-events: none;
  transition: all 0.15s ease;
}

.reg-floating-label.reg-label-floated {
  top: 0;
  font-size: 10px;
  background: #fff;
  color: var(--reg-muted);
}
.reg-select-label.reg-label-floated {
  top: 0;
  font-size: 10px;
  background: #fff;
  color: var(--reg-muted);
}

/* Primary button */
.reg-btn-primary {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  color: #fff;
  background: #004dc0;
  border: none;
  border-radius: 27px;
  cursor: pointer;
  line-height: 30px;
  transition:
    background 0.15s ease,
    opacity 0.15s ease;
}

.reg-btn-primary:hover {
  background: var(--reg-blue-dark);
}

.reg-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.role-option {
  border-radius: 12px;
}
/* Login hint */
.reg-login-hint {
  text-align: center;
  font-size: 16px;
  line-height: 26px;
  color: var(--reg-text);
  margin: 19px 0 0;
}
.reg-login-hint a {
  color: var(--reg-blue);
  text-decoration: underline;
  font-weight: 600;
}

/* Messages */
.reg-message {
  min-height: 18px;
  font-size: 13px;
  text-align: center;
}
.reg-message-error {
  color: var(--reg-error);
  margin-top: 10px;
}
.reg-message-success {
  color: var(--reg-success);
}

/* OTP resend row */
.reg-resend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 16px;
  color: var(--reg-muted);
}

.reg-resend-link {
  color: #001328;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
}

.reg-resend-link.reg-resend-disabled {
  pointer-events: none;
  opacity: 0.5;
  color: #adb0c0;
  text-decoration: none;
  font-weight: 500;
}

/* Role tabs */
.reg-role-tabs {
  display: flex;
  min-height: 44px;
  margin-bottom: 20px;
  border: 1px solid #adb0c0;
  border-radius: 12px;
  box-sizing: border-box;
  overflow: hidden;
}

.reg-role-tab {
  flex: 1;
  width: 100%;
  max-width: 170px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  background: transparent;
  color: var(--reg-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reg-role-tab:hover {
  border-color: var(--reg-blue);
}

.reg-role-tab + .reg-role-tab {
  border-left: 1px solid #adb0c0;
}

.reg-role-tab:hover {
  border-color: var(--reg-blue);
}

.reg-role-tab-active + .reg-role-tab {
  border-left-color: transparent;
}

.reg-role-tab-active {
  background: #e6f0ff;
  color: #004dc0;
  border: 1px solid #004dc0;
  overflow: hidden;
}

.reg-role-tab-active:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.reg-role-tab-active:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* Mobile */
@media (max-width: 480px) {
  .custom-reg-wrapper {
    padding: 24px 18px;
    border-radius: 10px;
  }
  .reg-oauth-buttons {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .form-row {
    flex-direction: column;
  }
}
