/* MedSynapse auth prototype — shared styles (mirrors ms-home signup/signin) */

:root {
  --lightblue-bg: #f1f4ff;
  --color-primary: #dd5293;
  --color-primary-dark: #c63f7f;
  --color-info: #0168fa;
  --color-success: #28a745;
  --color-body-font: #666;
  --color-link: #886ab5;
  --ink: #1f2a44;
  --border-soft: #d9dee8;
  --border-radius: 4px;
  --border-radius-plus: 10px;
  --auth-max: 520px;
  --control-height: 3.25rem;
  --mobile: 1025px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--lightblue-bg);
}

a {
  color: var(--color-info);
}

a:hover {
  color: #0152c7;
}

.text-info { color: var(--color-info) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-center { text-align: center; }
.fw-700 { font-weight: 700; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.cursor-pointer { cursor: pointer; }

.bg-success { background-color: var(--color-success) !important; }
.text-white { color: #fff !important; }

.boxed-layout {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-auth__form {
  width: 100%;
}

/* ---------- Sections ---------- */

.section-brand-signup,
.section-brand-signin {
  background: var(--lightblue-bg);
  padding: 8rem 0 3rem;
  min-height: 100vh;
}

.section-brand-signin {
  text-align: center;
}

@media screen and (max-width: 1025px) {
  .section-brand-signup,
  .section-brand-signin {
    padding: 5rem 0 1.5rem;
  }
}

.section-brand-signup .form-control,
.section-brand-signup select.form-control,
.section-brand-signin .form-control,
.section-brand-signin select.form-control {
  min-height: var(--control-height);
  height: var(--control-height);
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  line-height: 1.25;
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
  width: 100%;
}

.section-brand-signup .input-group-text,
.section-brand-signin .input-group-text {
  min-height: var(--control-height);
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  background: #e9ecef;
  border: 1px solid #ced4da;
  display: inline-flex;
  align-items: center;
}

.section-brand-signup .input-group-append .btn,
.section-brand-signup .input-group-prepend .btn,
.section-brand-signin .input-group-append .btn,
.section-brand-signin .input-group-prepend .btn {
  min-height: var(--control-height);
  padding: 0.75rem 0.9rem;
}

.auth-block {
  max-width: var(--auth-max);
  width: 100%;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group.row {
  display: flex;
  margin-left: -0.25rem;
  margin-right: -0.25rem;
}

.form-group.row > [class*="col-"] {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.input-group {
  display: flex;
  width: 100%;
  position: relative;
  flex-wrap: nowrap;
  align-items: stretch;
}

.input-group-prepend,
.input-group-append {
  display: flex;
}

.input-group .form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  margin-bottom: 0;
}

.input-group-prepend .input-group-text {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group > .form-control:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group > .form-control:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group-append .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
  text-align: left;
}

.invalid-feedback.d-block {
  display: block !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

.btn-success {
  color: #fff;
  background-color: var(--color-success);
  border-color: var(--color-success);
}

.btn-success:hover:not(:disabled),
.btn-success:focus:not(:disabled) {
  background-color: #218838;
  border-color: #1e7e34;
  color: #fff;
}

.btn-primary {
  color: #fff;
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

.btn-link {
  background: none;
  border: 0;
  color: var(--color-info);
  padding: 0.25rem 0.5rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ---------- Headers ---------- */

.section-brand-signup__header__primary {
  color: var(--color-primary);
  font-family: "THICCCBOI", "Segoe UI", sans-serif;
  font-size: 1.5rem;
  line-height: 2.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-brand-signup__header__primary.text-info {
  color: var(--color-info) !important;
}

.section-brand-signup__header__secondary,
.section-brand-signin__header__secondary {
  color: var(--color-body-font);
  font-family: "THICCCBOI", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.section-brand-signin__header__primary {
  color: var(--color-primary);
  font-family: "THICCCBOI", "Segoe UI", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-brand-signup__header--compact {
  margin-bottom: 0.75rem;
}

.section-brand-signup__header--compact .section-brand-signup__header__primary {
  font-size: 1.15rem;
  line-height: 1.45rem;
  margin-bottom: 0.25rem;
}

.section-brand-signup__banner {
  max-width: var(--auth-max);
  margin: 0 auto 3rem;
  padding: 1.15rem 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(90deg, rgba(221, 82, 147, 0.08) 0%, rgba(221, 82, 147, 0.16) 100%);
}

.section-brand-signup__banner_title {
  color: var(--color-info);
  font-family: "THICCCBOI", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  line-height: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.section-brand-signup__banner_subtitle {
  color: var(--color-body-font);
  font-family: "THICCCBOI", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  line-height: 1.5rem;
  font-weight: 700;
}

.section-brand-signup__banner_badge {
  display: inline-block;
  margin: 0 0.15rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35rem;
  vertical-align: middle;
}

.section-brand-signin__helper {
  color: var(--color-body-font);
  font-family: "THICCCBOI", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media screen and (max-width: 1025px) {
  .section-brand-signup__header__primary {
    font-size: 1.25rem;
    line-height: 1.5rem;
  }

  .section-brand-signin__header__primary {
    font-size: 1.25rem;
  }

  .section-brand-signup__header__secondary,
  .section-brand-signin__header__secondary {
    margin-bottom: 1rem;
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.15rem;
    font-weight: 500;
  }

  .section-brand-signup__banner {
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
  }
}

/* ---------- register-option ---------- */

.register-option {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  min-height: var(--control-height);
  padding: 0.875rem 1.125rem;
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  font-family: "THICCCBOI", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.register-option:hover,
.register-option:focus {
  text-decoration: none;
  outline: none;
  transform: translateY(-1px);
}

.register-option:focus-visible {
  box-shadow: 0 0 0 3px rgba(1, 104, 250, 0.25);
}

.register-option__leading,
.register-option__trailing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.register-option__leading {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1.15rem;
}

.register-option__trailing {
  margin-left: auto;
  font-size: 0.85rem;
  opacity: 0.9;
}

.register-option__label {
  flex: 1;
  text-align: left;
}

.register-option__label.text-center {
  text-align: center;
}

.register-option__brand-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.register-option.btn-success {
  color: #fff;
  background-color: var(--color-success);
  border-color: var(--color-success);
}

.register-option.btn-success:hover,
.register-option.btn-success:focus {
  color: #fff;
  text-decoration: none;
  background-color: #218838;
}

.register-option--outline {
  color: var(--ink);
  background-color: #fff;
  border-color: var(--border-soft);
  box-shadow: 0 2px 8px rgba(31, 42, 68, 0.04);
}

.register-option--outline:hover,
.register-option--outline:focus {
  color: var(--ink);
  background-color: #fafbff;
  border-color: #c5ccd8;
  box-shadow: 0 6px 16px rgba(31, 42, 68, 0.08);
}

.register-option--outline .register-option__trailing {
  color: #4a5568;
}

.register-option__stack {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.register-option__separator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem auto;
  max-width: var(--auth-max);
  width: 100%;
}

.register-option__separator-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(221, 82, 147, 0.28), transparent);
}

.register-option__separator-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(221, 82, 147, 0.12);
  color: var(--color-primary-dark);
  font-family: "THICCCBOI", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.register-option__compact {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.register-option--compact {
  width: 3rem;
  min-height: 3rem;
  padding: 0;
  justify-content: center;
  color: var(--ink);
  background-color: #fff;
  border-color: var(--border-soft);
  box-shadow: 0 2px 8px rgba(31, 42, 68, 0.04);
}

.register-option--compact:hover,
.register-option--compact:focus {
  color: var(--ink);
  background-color: #fafbff;
  border-color: #c5ccd8;
}

@media screen and (max-width: 1025px) {
  .register-option {
    min-height: 3rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
}

/* ---------- Signup steps ---------- */

.signup-step__header {
  margin-bottom: 1.25rem;
}

.signup-step__title {
  color: #2b3550;
  font-family: "THICCCBOI", "Segoe UI", sans-serif;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
}

.signup-step__subtitle {
  color: var(--color-body-font);
  font-size: 0.95rem;
  line-height: 1.35rem;
  margin-top: 0.25rem;
}

.signup-step__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1.25rem;
}

.signup-step__actions .register-option,
.signup-step__actions .btn {
  flex: 1 1 auto;
  min-width: 6.5rem;
}

.signup-step__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #666;
  font-size: 0.95rem;
  font-weight: normal;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}

.signup-step__link:hover,
.signup-step__link:focus {
  color: #555;
  outline: none;
}

.signup-card {
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #fff;
  border: 1px solid rgba(43, 53, 80, 0.08);
  text-align: left;
}

.signup-card__header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  font-family: "THICCCBOI", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.signup-card__body {
  padding: 1rem;
}

.signup-card--personal .signup-card__header {
  background: linear-gradient(90deg, rgba(136, 106, 181, 0.12), rgba(136, 106, 181, 0.04));
}

.signup-card--employment .signup-card__header {
  background: linear-gradient(90deg, rgba(221, 82, 147, 0.14), rgba(221, 82, 147, 0.05));
}

.signup-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.signup-tabs__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--border-radius-plus);
  border: 1px solid var(--border-soft);
  background: #fff;
  color: #2b3550;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.signup-tabs__item.is-active {
  border-color: var(--color-primary);
  background: rgba(221, 82, 147, 0.1);
  color: var(--color-primary-dark);
}

.signup-field-hint {
  display: block;
  margin-top: 0.4rem;
  color: #6c757d;
  font-size: 0.8rem;
  line-height: 1.25rem;
  text-align: left;
}

.signup-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border-radius: var(--border-radius-plus);
  font-size: 0.85rem;
  line-height: 1.3rem;
  text-align: left;
}

.signup-note--warn {
  background: rgba(221, 82, 147, 0.08);
  color: #2b3550;
}

.signup-note--warn i {
  color: var(--color-primary);
  margin-top: 0.1rem;
}

.signup-note--info {
  margin-top: 0.5rem;
  background: rgba(136, 106, 181, 0.1);
  border: 1px solid rgba(136, 106, 181, 0.18);
  color: #2b3550;
}

.signup-note--info i {
  color: var(--color-link);
  margin-top: 0.1rem;
}

.signup-suggest-wrap {
  position: relative;
}

.signup-suggest {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  z-index: 5;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 18px rgba(31, 42, 68, 0.08);
  max-height: 12rem;
  overflow: auto;
  text-align: left;
}

.signup-suggest li {
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #2b3550;
}

.signup-suggest li:hover {
  background: rgba(221, 82, 147, 0.08);
}

.signup-upload {
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
}

.signup-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.signup-upload__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 7.5rem;
  padding: 1.25rem;
  border: 1px dashed rgba(221, 82, 147, 0.35);
  border-radius: 1rem;
  background: rgba(221, 82, 147, 0.04);
  color: #2b3550;
  font-weight: 600;
  cursor: pointer;
}

.signup-upload__label i {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.help-block {
  text-align: left;
  color: var(--color-body-font);
  font-size: 0.9rem;
  line-height: 1.5rem;
}

.help-block code {
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: #f1f3f5;
}

.help-block code.bg-success {
  background: var(--color-success) !important;
  color: #fff !important;
}

.custom-control {
  position: relative;
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5rem;
  text-align: left;
}

.custom-control-input {
  position: absolute;
  left: 0;
  z-index: -1;
  width: 1rem;
  height: 1.25rem;
  opacity: 0;
}

.custom-control-label {
  position: relative;
  margin-bottom: 0;
  vertical-align: top;
  cursor: pointer;
}

.custom-control-label::before {
  position: absolute;
  top: 0.15rem;
  left: -1.5rem;
  display: block;
  width: 1rem;
  height: 1rem;
  pointer-events: none;
  content: "";
  background-color: #fff;
  border: 1px solid #adb5bd;
  border-radius: 0.2rem;
}

.custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.custom-control-label::after {
  position: absolute;
  top: 0.15rem;
  left: -1.5rem;
  display: block;
  width: 1rem;
  height: 1rem;
  content: "";
  background: no-repeat 50% / 50% 50%;
}

.custom-control-input:checked ~ .custom-control-label::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
}

.spinner-grow {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: text-bottom;
  background-color: currentColor;
  border-radius: 50%;
  opacity: 0;
  animation: 0.75s linear infinite spinner-grow;
}

@keyframes spinner-grow {
  0% { transform: scale(0); }
  50% { opacity: 1; transform: none; }
}

/* OTP boxes */
.otp-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.otp-row input {
  width: 2.75rem;
  height: 3.25rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
}

.otp-row input:focus {
  border-color: var(--color-info);
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 104, 250, 0.2);
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  text-align: left;
}

.alert-success {
  background: rgba(40, 167, 69, 0.12);
  color: #155724;
  border: 1px solid rgba(40, 167, 69, 0.25);
}

.alert-danger {
  background: rgba(220, 53, 69, 0.1);
  color: #721c24;
  border: 1px solid rgba(220, 53, 69, 0.25);
}

.prototype-note {
  max-width: var(--auth-max);
  margin: 0 auto 1.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--border-radius-plus);
  background: rgba(1, 104, 250, 0.08);
  color: #2b3550;
  font-size: 0.85rem;
  text-align: center;
}

.captcha-ok { color: #1e7e34; font-weight: 700; }
.captcha-wait { color: #856404; font-weight: 700; }
.captcha-err { color: #721c24; font-weight: 700; }

/* Keep Google badge visible but unobtrusive (same idea as ms-home) */
.grecaptcha-badge {
  z-index: 1000 !important;
  opacity: 0.85;
}
