/* =========================================================
   LOGIN / REGISTRATION  (shared header + footer reused)
   ========================================================= */
.auth-page {
  --auth-navy: #0b2e78;
  --auth-pink: #f72559;
  --auth-border: #e2e6ee;
  width: 100%;
  background: #f7f9fc;
  font-family: "Plus Jakarta Sans", "Inter", Arial, sans-serif;
  padding: 60px 20px 80px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  padding: 34px 30px 30px;
  box-shadow: 0 12px 40px rgba(18, 54, 132, 0.08);
}

.auth-card h1 {
  margin: 0 0 6px;
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--auth-navy);
}

.auth-card>p {
  margin: 0 0 24px;
  color: #6b7688;
  font-size: 13px;
  line-height: 20px;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #1f2b45;
}

.auth-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  color: #1f2b45;
  outline: 0;
  background: #fff;
}

.auth-field input:focus {
  border-color: var(--auth-pink);
}

.auth-field .auth-error {
  display: none;
  margin-top: 4px;
  color: var(--auth-pink);
  font-size: 11px;
}

.auth-field.invalid input {
  border-color: var(--auth-pink);
}

.auth-field.invalid .auth-error {
  display: block;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 12px;
}

.auth-row label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6b7688;
}

.auth-row a {
  color: var(--auth-pink);
  text-decoration: none;
  font-weight: 600;
}

.auth-submit {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--auth-pink);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.auth-submit:hover {
  background: #df1648;
}

.auth-alt {
  margin-top: 20px;
  text-align: center;
  font-size: 12.5px;
  color: #6b7688;
}

.auth-alt a {
  color: var(--auth-pink);
  font-weight: 700;
  text-decoration: none;
}

.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 420px) {
  .auth-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ENHANCED PORTAL SELECTION & ONBOARDING WIZARD STYLES
   ========================================================= */
.auth-split-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #F8FAFC;
}

.auth-topbar {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-topbar .brand img {
  height: 40px;
  object-fit: contain;
}

.auth-topbar .help {
  font-size: 13px;
  color: #64748B;
  font-weight: 500;
}

.auth-topbar .help span {
  color: #E11D48;
  font-weight: 700;
  margin-left: 6px;
}

.auth-body-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.auth-wide-card {
  width: 100%;
  max-width: 960px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.portal-grid-3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}

@media (max-width: 900px) {
  .portal-grid-3 {
    grid-template-columns: 1fr;
  }
}

.portal-select-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.portal-select-card:hover {
  border-color: #E11D48;
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.12);
  transform: translateY(-4px);
}

.portal-select-card.active {
  border-color: #E11D48;
  background: #FFF1F2;
}

.portal-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.portal-icon-wrap.patient {
  background: #EFF6FF;
  color: #2563EB;
}

.portal-icon-wrap.hospital {
  background: #FDF2F8;
  color: #DB2777;
}

.portal-icon-wrap.admin {
  background: #FEF2F2;
  color: #DC2626;
}

.portal-select-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 8px;
}

.portal-select-card p {
  font-size: 13px;
  color: #64748B;
  line-height: 1.5;
  margin: 0 0 24px;
  flex: 1;
}

.portal-select-card .btn-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.portal-select-card:hover .btn-enter {
  background: #E11D48;
}

/* Stepper Bar */
.stepper-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

/* .step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #94A3B8;
} */

.step-item.active {
  color: #E11D48;
}

.step-item.completed {
  color: #059669;
}

.step-bubble {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.step-item.active .step-bubble {
  background: #E11D48;
  color: #FFFFFF;
  border-color: #E11D48;
}

.step-item.completed .step-bubble {
  background: #059669;
  color: #FFFFFF;
  border-color: #059669;
}

.step-divider {
  width: 32px;
  height: 2px;
  background: #E2E8F0;
}

.step-divider.active {
  background: #E11D48;
}

/* =========================================================
   FIGMA ONBOARDING (VERTICAL STEPPER + MODERN WIZARD CARDS)
   ========================================================= */
.onboarding-page-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 30px auto 60px;
  padding: 0 24px;
}

.onboarding-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 70px;
}

@media (max-width: 860px) {
  .onboarding-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }
}

/* Left Column: Vertical Stepper */
.onboarding-stepper-col {
  width: 280px;
  flex-shrink: 0;
  padding-top: 36px;
}

@media (max-width: 860px) {
  .onboarding-stepper-col {
    width: 100%;
    padding-top: 0;
  }
}

.v-stepper {
  display: flex;
  flex-direction: column;
}

.v-step-item {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  user-select: none;
}

.v-step-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.v-step-bubble.active,
.v-step-bubble.completed {
  background: #F43F5E;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.28);
}

.v-step-title {
  font-size: 15px;
  font-weight: 500;
  color: #94A3B8;
  transition: color 0.25s ease;
}

.v-step-title.active {
  color: #0F2E5A;
  font-weight: 700;
}

.v-step-title.completed {
  color: #0F2E5A;
  font-weight: 600;
}

.v-step-line {
  width: 2px;
  height: 38px;
  border-left: 2px dashed #E2E8F0;
  margin-left: 17px;
  transition: border-color 0.25s ease;
}

.v-step-line.active {
  border-left: 2px solid #F43F5E;
}

/* Right Column: Form Card */
.onboarding-card-col {
  flex: 1;
  max-width: 580px;
}

@media (max-width: 860px) {
  .onboarding-card-col {
    max-width: 100%;
  }
}

.onboarding-card {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 24px;
  padding: 40px 38px;
  box-shadow: 0 12px 36px -4px rgba(15, 23, 42, 0.05);
}

@media (max-width: 540px) {
  .onboarding-card {
    padding: 28px 20px;
    border-radius: 18px;
  }
}

.onboarding-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: #F43F5E;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.onboarding-title {
  font-size: 24px;
  font-weight: 800;
  color: #0F2E5A;
  margin: 0 0 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.3px;
}

.onboarding-desc {
  font-size: 13px;
  color: #64748B;
  margin: 0 0 24px;
  line-height: 1.55;
}

.onboarding-field {
  margin-bottom: 18px;
}

.onboarding-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 6px;
}

.onboarding-label .req {
  color: #F43F5E;
  margin-left: 2px;
  font-weight: 700;
}

.onboarding-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-size: 13px;
  color: #0F172A;
  background: #FFFFFF;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.onboarding-input:focus {
  border-color: #F43F5E;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

.onboarding-select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-size: 13px;
  color: #0F172A;
  background: #FFFFFF;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.onboarding-select:focus {
  border-color: #F43F5E;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

.onboarding-textarea {
  width: 100%;
  min-height: 130px;
  padding: 14px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-size: 13px;
  color: #0F172A;
  background: #FFFFFF;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
  resize: vertical;
}

.onboarding-textarea:focus {
  border-color: #F43F5E;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

.onboarding-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) {
  .onboarding-grid-2 {
    grid-template-columns: 1fr;
  }
}

.onboarding-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 500px) {
  .onboarding-tiles-grid {
    grid-template-columns: 1fr;
  }
}

.onboarding-tile {
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  text-align: left;
}

.onboarding-tile:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}

.onboarding-tile.selected {
  border: 2px solid #F43F5E;
  background: #FFF1F2;
  color: #E11D48;
  font-weight: 600;
}

.onboarding-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 500px) {
  .onboarding-upload-grid {
    grid-template-columns: 1fr;
  }
}

.onboarding-upload-box {
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 20px 10px;
  text-align: center;
  cursor: pointer;
  background: #F8FAFC;
  transition: all 0.2s ease;
}

.onboarding-upload-box:hover {
  border-color: #F43F5E;
  background: #FFF1F2;
}

.onboarding-upload-box .up-icon {
  font-size: 18px;
  color: #64748B;
  margin-bottom: 8px;
}

.onboarding-upload-box .up-label {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.onboarding-submit-btn {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  background: #F43F5E;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease;
  margin-top: 10px;
  text-decoration: none;
}

.onboarding-submit-btn:hover {
  background: #E11D48;
}

.onboarding-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748B;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-top: 14px;
  text-align: center;
  width: 100%;
  justify-content: center;
}

.onboarding-back-btn:hover {
  color: #0F172A;
  text-decoration: underline;
}

.onboarding-error {
  color: #E11D48;
  font-size: 12px;
  margin-top: 5px;
  font-weight: 500;
  display: block;
}

/* Completion Screen */
.onboarding-complete-wrap {
  text-align: center;
  padding: 60px 20px 80px;
  max-width: 560px;
  margin: 0 auto;
}

.onboarding-complete-bubble {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #F43F5E;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 24px;
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.3);
}

.onboarding-complete-title {
  font-size: 28px;
  font-weight: 800;
  color: #0F2E5A;
  margin: 0 0 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.4px;
}

.onboarding-complete-desc {
  font-size: 14px;
  color: #64748B;
  margin: 0 0 28px;
  line-height: 1.5;
}

/* =========================================================
   MOBILE & OTP REGISTRATION FLOW (Figma Register & Register-OTP)
   ========================================================= */
.auth-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 48px;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.2s ease;
}

.auth-back-link:hover {
  color: #0F172A;
}

.auth-hero-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 980px) {
  .auth-hero-grid {
    grid-template-columns: 1fr;
  }
}

.auth-hero-card {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 28px;
  padding: 44px 38px;
  box-shadow: 0 12px 36px -4px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 520px) {
  .auth-hero-card {
    padding: 30px 20px;
    border-radius: 20px;
  }
}

.auth-hero-eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: #F43F5E;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.auth-hero-title {
  font-size: 30px;
  font-weight: 800;
  color: #0F2E5A;
  margin: 0 0 12px;
  line-height: 1.25;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.4px;
}

.auth-hero-desc {
  font-size: 14px;
  color: #64748B;
  margin: 0 0 26px;
  line-height: 1.55;
}

.auth-mobile-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  background: #FFFFFF;
  transition: all 0.2s ease;
}

.auth-mobile-input-wrap:focus-within {
  border-color: #F43F5E;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12);
}

.auth-mobile-prefix {
  padding: 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: #0F172A;
  border-right: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  height: 48px;
  display: flex;
  align-items: center;
  user-select: none;
}

.auth-mobile-input {
  flex: 1;
  border: none;
  height: 48px;
  padding: 0 16px;
  font-size: 15px;
  color: #0F172A;
  outline: none;
  font-family: inherit;
  background: transparent;
}

.auth-btn-continue {
  width: 100%;
  height: 50px;
  background: #F43F5E;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.auth-btn-continue:hover {
  background: #E11D48;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(244, 63, 94, 0.25);
}

.auth-btn-continue:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-terms-note {
  font-size: 12px;
  color: #94A3B8;
  text-align: center;
  margin-top: 18px;
  line-height: 1.5;
}

/* OTP Segmented Inputs */
.auth-otp-grid {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 10px 0 6px;
}

.auth-otp-cell {
  width: 48px;
  height: 52px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: #0F2E5A;
  outline: none;
  transition: all 0.2s ease;
  background: #FFFFFF;
  font-family: inherit;
}

.auth-otp-cell:focus {
  border-color: #F43F5E;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12);
}

.auth-otp-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #64748B;
}

.auth-resend-btn {
  background: none;
  border: none;
  color: #0F2E5A;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  font-family: inherit;
  font-size: 13px;
}

.auth-resend-btn:hover {
  color: #F43F5E;
  text-decoration: underline;
}

.auth-change-phone-btn {
  background: none;
  border: none;
  color: #F43F5E;
  font-weight: 600;
  cursor: pointer;
  display: block;
  margin: 14px auto 0;
  font-size: 13px;
  font-family: inherit;
}

.auth-change-phone-btn:hover {
  text-decoration: underline;
}

.auth-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  color: #92400E;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.auth-hero-banner {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 36px -4px rgba(15, 23, 42, 0.05);
}

@media (max-width: 980px) {
  .auth-hero-banner {
    display: none;
  }
}

.auth-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}