/**
 * Daktarbook client shell (header + footer + mobile nav)
 * Typography uses ui.css tokens: Noto Sans Bengali (body), Noto Serif Bengali (headings).
 */

.db-shell-font,
.db-header,
.db-footer,
.db-mobile-nav,
.db-mobile-drawer {
  font-family: var(--ui-font-body);
}

.db-login-heading,
.db-register-title,
.db-register-card-heading,
.db-reg-heading {
  font-family: var(--ui-font-heading);
}

/* Allow sticky header: avoid overflow:hidden on ancestors; clip horizontal scroll on body */
.ui-body {
  overflow-x: hidden;
}

/* Reserve space for fixed bottom nav on small screens */
@media (max-width: 960px) {
  .site-wrapper.db-shell-pad {
    padding-bottom: 56px;
  }
}

.db-header {
  background: #fff;
  border-bottom: 2px solid #e8f0fe;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.db-header.scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.db-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.db-logo img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.db-search {
  width: 26%;
  max-width: 420px;
  position: relative;
  flex-shrink: 1;
  min-width: 0;
  margin-top: 4px;
}

.db-search input {
  width: 100%;
  padding: 9px 16px 9px 38px;
  border: 1.5px solid #e2e8f0;
  border-radius: 55px;
  font-size: 13px;
  outline: none;
  background: #f8fafc;
  font-family: var(--ui-font-body);
  transition: border-color 0.2s;
}

.db-search input:focus {
  border-color: #00b894;
  background: #fff;
}

.db-search .search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 15px;
  pointer-events: none;
}

.db-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 5000;
  max-height: 400px;
  overflow-y: auto;
  text-align: left;
}

.db-search-dropdown[hidden] {
  display: none !important;
}

.db-search-dropdown__section {
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #f1f5f9;
}

.db-search-dropdown__section--border {
  border-top: 1px solid #f1f5f9;
}

.db-search-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none !important;
  border-bottom: 1px solid #f8fafc;
  transition: background 0.15s;
  color: inherit;
}

.db-search-dropdown__item:hover {
  background: #f0fdf4;
}

.db-search-dropdown__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a2e1a, #00b894);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.db-search-dropdown__avatar--square {
  border-radius: 8px;
}

.db-search-dropdown__title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.db-search-dropdown__meta {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.db-search-dropdown__meta--accent {
  color: #00b894;
  font-weight: 600;
}

.db-search-dropdown__empty {
  padding: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

.db-search-dropdown__footer {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #00b894 !important;
  text-decoration: none !important;
  border-top: 1px solid #f1f5f9;
}

.db-search-dropdown__footer:hover {
  background: #f8fafc;
}

.db-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.db-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 10px 7px;
  border-radius: 8px;
  text-decoration: none;
  color: #555;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--ui-font-body);
  position: relative;
  min-width: 44px;
}

.db-nav-item svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

/* Same as doctor/center dashboard “বিজ্ঞাপন অনুরোধ” (bi-megaphone) */
.db-nav-item .db-nav-item-icon-bi {
  display: block;
  width: 28px;
  height: 28px;
  font-size: 26px;
  line-height: 28px;
  text-align: center;
  color: inherit;
}

.db-nav-item::after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  background: #00b894;
  border-radius: 2px;
  margin-top: 6px;
  transition: width 0.2s;
}

.db-nav-item:hover::after,
.db-nav-item.active::after {
  width: 100%;
}

.db-nav-item:hover,
.db-nav-item.active {
  color: #00b894;
}

.db-nav-item .nav-label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 200;
  font-family: var(--ui-font-body);
  letter-spacing: 0.2px;
}

.db-nav-item .nav-label::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: #1a1a2e;
}

.db-nav-item:hover .nav-label {
  opacity: 1;
}

.notif-dot {
  position: absolute;
  top: 8px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: #e53e3e;
  border-radius: 50%;
  border: 2px solid #fff;
}

.db-auth {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1002;
}

.btn-outline-sm {
  padding: 7px 18px;
  border: 1.5px solid #00b894;
  border-radius: 20px;
  color: #00b894;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  font-family: var(--ui-font-body);
  white-space: nowrap;
}

.btn-outline-sm:hover {
  background: #00b894;
  color: #fff;
}

.btn-filled-sm {
  padding: 7px 18px;
  border: 1.5px solid #00b894;
  border-radius: 20px;
  color: #fff;
  background: #00b894;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  font-family: var(--ui-font-body);
  white-space: nowrap;
  cursor: pointer;
}

.btn-filled-sm:hover {
  background: #00a381;
  color: #fff;
}

a.btn-filled-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.db-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}

.db-hamburger span {
  width: 24px;
  height: 2px;
  background: #555;
  border-radius: 2px;
  display: block;
}

@media (max-width: 1200px) {
  .db-nav-item {
    padding: 12px 6px 7px;
    min-width: 40px;
  }

  .db-nav-item svg {
    width: 24px;
    height: 24px;
  }

  .db-nav-item .db-nav-item-icon-bi {
    width: 24px;
    height: 24px;
    font-size: 22px;
    line-height: 24px;
  }
}

@media (max-width: 960px) {
  .db-nav {
    display: none;
  }

  .db-auth {
    display: none;
  }

  .db-hamburger {
    display: flex;
    order: 3;
    flex-shrink: 0;
  }

  .db-logo {
    order: 1;
    flex-shrink: 0;
  }

  .db-search {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: 60%;
    margin-top: 0;
  }

  .db-header {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
}

@media (min-width: 961px) {
  .db-mobile-nav {
    display: none !important;
  }

  .db-mobile-drawer {
    display: none !important;
  }
}

.db-mobile-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  z-index: 999;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
  overflow: hidden;
}

.db-mobile-nav a {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  text-decoration: none;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 600;
  gap: 3px;
  transition: color 0.2s;
  font-family: var(--ui-font-body);
}

.db-mobile-nav a svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.db-mobile-nav a.active,
.db-mobile-nav a:hover {
  color: #00b894;
}

/* Mobile drawer (hamburger) */
.db-mobile-drawer {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 998;
}

.db-mobile-drawer.is-open {
  display: block !important;
}

.db-mobile-drawer-panel {
  background: #fff;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  padding: 16px 20px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.db-mobile-drawer-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.db-mobile-drawer-panel a:hover {
  color: #00b894;
}

.db-mobile-drawer-actions {
  display: flex;
  gap: 10px;
  padding-top: 16px;
  flex-wrap: wrap;
}

/* Footer */
.db-footer {
  background: #0f172a;
  color: #94a3b8;
  font-family: var(--ui-font-body);
  padding: 56px 0 0;
}

.db-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.db-footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.db-footer-brand .footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.db-footer-brand .footer-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.db-footer-brand .footer-logo-text span {
  color: #00b894;
}

.db-footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  color: #94a3b8;
  margin-bottom: 16px;
}

.db-footer-brand .powered {
  font-size: 12px;
  color: #94a3b8;
}

.db-footer-brand .powered a {
  color: #00b894;
  text-decoration: none;
  font-weight: 600;
}

.db-footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.db-footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: #00b894;
  border-radius: 2px;
}

.db-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.db-footer-col ul li a {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.db-footer-col ul li a:hover {
  color: #00b894;
}

.db-footer-col ul li a span {
  font-size: 14px;
}

.db-footer-contact .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.db-footer-contact .contact-icon {
  font-size: 15px;
  margin-top: 2px;
  flex-shrink: 0;
}

.db-footer-contact .contact-text {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

.db-footer-contact .contact-text a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.db-footer-contact .contact-text a:hover {
  color: #00b894;
}

.db-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.db-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1e293b;
  border: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s;
}

.db-footer-social a:hover {
  background: #00b894;
  border-color: #00b894;
  color: #fff;
}

.db-footer-bottom {
  margin-top: 48px;
  border-top: 1px solid #1e293b;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.db-footer-bottom-bar {
  background: #0a0f1e;
  border-top: 1px solid #1e293b;
}

.db-footer-bottom p {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

.db-footer-bottom-links {
  display: flex;
  gap: 20px;
}

.db-footer-bottom-links a {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.db-footer-bottom-links a:hover {
  color: #00b894;
}

@media (max-width: 960px) {
  .db-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .db-footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .db-footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ========== Unified login (/user/login) — daktarbook-style split card ========== */
.db-login-page {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 56px;
  background: #f0fdf4;
  font-family: var(--ui-font-body);
}

.db-login-card {
  display: flex;
  width: 100%;
  max-width: 900px;
  min-height: 480px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  background: #fff;
}

.db-login-brand {
  flex: 1;
  min-width: 0;
  background: linear-gradient(135deg, #0a2e1a, #00b894);
  padding: 40px 36px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.db-login-brand-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.db-login-brand-title span {
  color: #00cec9;
}

.db-login-brand-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
}

.db-login-brand-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.db-login-brand-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.db-login-brand-list li span {
  font-size: 20px;
  flex-shrink: 0;
}

.db-login-form-panel {
  width: 400px;
  max-width: 100%;
  flex-shrink: 0;
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.db-login-heading {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.db-login-sub {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 22px;
}

.db-login-type-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 12px;
}

.db-login-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--ui-font-body);
  transition: background 0.2s, color 0.2s;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.db-login-tab::-moz-focus-inner {
  border: 0;
}

.db-login-tab:focus,
.db-login-tab:focus:active,
.db-login-tab:active {
  outline: none;
  box-shadow: none;
}

.db-login-tab:hover {
  color: #00b894;
}

.db-login-tab.active {
  background: #fff;
  color: #00b894;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.db-login-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.db-login-alert--danger {
  background: #fee2e2;
  color: #dc2626;
}

.db-login-field {
  margin-bottom: 16px;
}

.db-login-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.db-login-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--ui-font-body);
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.db-login-input:focus {
  border-color: #00b894;
  background: #fff;
}

.db-login-error {
  display: block;
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
}

.db-login-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.db-login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin: 0;
  cursor: pointer;
}

.db-login-forgot {
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
}

.db-login-forgot:hover {
  color: #00b894;
}

.db-login-submit {
  width: 100%;
  padding: 13px;
  margin-top: 8px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--ui-font-body);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 184, 148, 0.4);
  transition: opacity 0.2s, transform 0.1s;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.db-login-submit::-moz-focus-inner {
  border: 0;
}

.db-login-submit:focus,
.db-login-submit:focus:active,
.db-login-submit:active {
  outline: none;
  box-shadow: 0 4px 14px rgba(0, 184, 148, 0.4);
}

.db-login-submit:hover {
  opacity: 0.95;
}

.db-login-register-hint {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}

.db-login-register-hint a {
  color: #00b894;
  font-weight: 600;
  text-decoration: none;
}

.db-login-register-hint a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .db-login-card {
    flex-direction: column;
    min-height: auto;
  }

  .db-login-brand {
    padding: 32px 24px;
  }

  .db-login-form-panel {
    width: 100%;
    padding: 32px 24px;
  }
}

/* ========== Register type selection (/register) — daktarbook style ========== */
.db-register-page {
  min-height: calc(100vh - 68px);
  padding: 48px 20px 64px;
  background: #f0f4f8;
  font-family: var(--ui-font-body);
}

.db-register-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.db-register-title-block {
  text-align: center;
  margin-bottom: 40px;
}

.db-register-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 10px;
}

.db-register-sub {
  font-size: 15px;
  color: #888;
  margin: 0;
}

.db-register-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.db-register-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px;
  width: 280px;
  max-width: 100%;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.25s, box-shadow 0.25s;
  border: none;
  position: relative;
  overflow: hidden;
  color: inherit;
  display: block;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.db-register-card:focus,
.db-register-card:focus-visible {
  outline: none;
}

.db-register-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.db-register-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.db-register-card--doctor::before {
  background: linear-gradient(90deg, #00b894, #00cec9);
}

.db-register-card--doctor:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(0, 184, 148, 0.35);
}

.db-register-card--doctor .db-register-card-icon {
  background: linear-gradient(135deg, #00b894, #00cec9);
}

.db-register-card--doctor .db-register-card-btn {
  background: linear-gradient(135deg, #00b894, #00cec9);
}

.db-register-card--patient::before {
  background: linear-gradient(90deg, #0984e3, #74b9ff);
}

.db-register-card--patient:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(9, 132, 227, 0.4);
}

.db-register-card--patient .db-register-card-icon {
  background: linear-gradient(135deg, #0984e3, #74b9ff);
}

.db-register-card--patient .db-register-card-btn {
  background: linear-gradient(135deg, #0984e3, #74b9ff);
}

.db-register-card--diagnostic::before {
  background: linear-gradient(90deg, #e17055, #fdcb6e);
}

.db-register-card--diagnostic:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(225, 112, 85, 0.4);
}

.db-register-card--diagnostic .db-register-card-icon {
  background: linear-gradient(135deg, #e17055, #fdcb6e);
}

.db-register-card--diagnostic .db-register-card-btn {
  background: linear-gradient(135deg, #e17055, #fdcb6e);
}

.db-register-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
}

.db-register-card-heading {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 10px;
}

.db-register-card-text {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  margin: 0 0 26px;
}

.db-register-card-btn {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--ui-font-body);
  transition: opacity 0.2s;
}

.db-register-card:hover .db-register-card-btn {
  opacity: 0.92;
}

.db-register-footer-note {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: #64748b;
}

.db-register-footer-note a {
  color: #00b894;
  font-weight: 600;
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.db-register-footer-note a:hover {
  text-decoration: underline;
}

.db-register-footer-note a:focus,
.db-register-footer-note a:focus-visible {
  outline: none;
}

@media (max-width: 640px) {
  .db-register-title {
    font-size: 22px;
  }

  .db-register-card {
    width: 100%;
  }
}

/* ── Full-page registration (patient / doctor / diagnostic) ── */
.db-reg-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: stretch;
  background: #f0f4f8;
  font-family: var(--ui-font-body);
}

/* Patient register: match daktarbook /patient/register (auth/user-register) */
.db-reg-page--patient {
  background: #f1f5f9;
}

.db-reg-split {
  display: flex;
  width: 100%;
  min-height: 560px;
}

.db-reg-left {
  position: relative;
  width: 40%;
  min-width: 280px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  overflow: hidden;
}

.db-reg-left::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.db-reg-left--patient {
  background: linear-gradient(145deg, #0a2e1a 0%, #0f3d24 40%, #1a1a2e 100%);
}

.db-reg-left--patient::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 184, 148, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.db-reg-left--doctor {
  background: linear-gradient(145deg, #0a2e1a 0%, #0f3d24 42%, #1a1a2e 100%);
}

.db-reg-left--doctor::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 184, 148, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.db-reg-left--diagnostic {
  background: linear-gradient(145deg, #0f3460 0%, #16213e 45%, #1a1a2e 100%);
}

.db-reg-left--diagnostic::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(225, 112, 85, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.db-reg-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.db-reg-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.db-reg-brand-text {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.db-reg-brand-text span {
  color: #00b894;
}

.db-reg-left-title {
  position: relative;
  z-index: 1;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0 0 14px;
}

.db-reg-left-title span {
  color: #00b894;
}

.db-reg-left--diagnostic .db-reg-left-title span {
  color: #fdcb6e;
}

.db-reg-left-sub {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 360px;
}

.db-reg-features {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.db-reg-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.5;
}

.db-reg-feature-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 3px;
  line-height: 1.3;
}

.db-reg-feature-text p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.db-reg-left--patient .db-reg-feature-icon {
  width: 40px;
  height: 40px;
  font-size: 18px;
}

.db-reg-feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 184, 148, 0.15);
  border: 1px solid rgba(0, 184, 148, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.db-reg-left--diagnostic .db-reg-feature-icon {
  background: rgba(225, 112, 85, 0.2);
  border-color: rgba(253, 203, 110, 0.35);
}

.db-reg-left-foot {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: #94a3b8;
}

.db-reg-left-foot a {
  color: #00cec9;
  font-weight: 600;
  text-decoration: none;
}

.db-reg-left-foot a:hover {
  text-decoration: underline;
}

.db-reg-left-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: #64748b;
}

.db-reg-left-bottom a {
  color: #00b894;
  font-weight: 600;
  text-decoration: none;
}

.db-reg-left-bottom a:hover {
  text-decoration: underline;
}

.db-reg-patient-form-wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.db-reg-page--patient .db-reg-right {
  flex: 1;
  width: 60%;
  min-width: 0;
  padding: 40px 32px 48px;
  background: #f1f5f9;
  justify-content: flex-start;
  align-items: center;
}

.db-reg-page--patient .db-reg-back {
  font-size: 13px;
  margin-bottom: 16px;
}

.db-reg-page--patient .db-reg-heading {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

.db-reg-page--patient .db-reg-lead {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

.db-reg-page--patient .db-reg-form-card {
  padding: 28px 32px;
}

.db-reg-page--patient .db-reg-form-card .db-reg-heading {
  margin-bottom: 4px;
}

.db-reg-page--patient .db-reg-form-card .db-reg-lead {
  margin-bottom: 22px;
}

.db-reg-terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  line-height: 1.45;
}

.db-reg-terms input {
  margin-top: 3px;
  flex-shrink: 0;
}

.db-reg-terms a {
  color: #00b894;
  font-weight: 600;
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.db-reg-terms a:hover {
  text-decoration: underline;
}

.db-reg-terms a:focus,
.db-reg-terms a:focus-visible {
  outline: none;
}

.db-reg-page--patient .db-reg-form-card .db-reg-foot {
  margin-top: 0;
}

.db-reg-page--patient .db-reg-field label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0px !important;
}

.db-reg-page--patient .db-login-input {
  padding: 10px 12px;
  font-size: 13px;
}

.db-reg-page--patient .db-login-input:focus {
  border-color: #00b894;
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
  background: #fff;
}

.db-reg-page--patient .db-reg-grid {
  gap: 0 14px;
}

.db-reg-page--patient .db-reg-field {
  margin-bottom: 14px;
}

.db-reg-page--patient .db-reg-field.full {
  grid-column: 1 / -1;
}

.db-reg-page--patient .db-reg-actions {
  margin-top: 10px;
}

.db-reg-page--patient .db-reg-btn--primary {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 184, 148, 0.35);
}

.db-reg-page--patient .db-reg-foot {
  font-size: 13px;
  margin-top: 22px;
}

.db-reg-page--patient .db-reg-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}

.db-reg-page--patient .db-reg-divider::before,
.db-reg-page--patient .db-reg-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.db-reg-page--patient .db-reg-divider span {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

.db-reg-right {
  flex: 1;
  padding: 40px 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-x: hidden;
}

.db-reg-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  margin-bottom: 20px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.db-reg-back:hover {
  color: #00b894;
}

.db-reg-back:focus,
.db-reg-back:focus-visible {
  outline: none;
}

.db-reg-page--diagnostic .db-reg-back:hover {
  color: #e17055;
}

.db-reg-heading {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 6px;
}

.db-reg-lead {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 24px;
}

.db-reg-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
  max-width: 420px;
}

.db-reg-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}

.db-reg-step::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}

.db-reg-step:last-child::after {
  display: none;
}

.db-reg-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 0 0 1px #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  position: relative;
  z-index: 1;
  transition: all 0.25s;
}

.db-reg-step.active .db-reg-step-circle {
  background: #00b894;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 184, 148, 0.35);
}

.db-reg-step.completed .db-reg-step-circle {
  background: #00b894;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 184, 148, 0.25);
}

.db-reg-page--diagnostic .db-reg-step.active .db-reg-step-circle,
.db-reg-page--diagnostic .db-reg-step.completed .db-reg-step-circle {
  background: #e17055;
  box-shadow: 0 4px 12px rgba(225, 112, 85, 0.35);
}

.db-reg-step-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
  max-width: 120px;
  line-height: 1.3;
}

.db-reg-step.active .db-reg-step-label {
  color: #00b894;
}

.db-reg-page--diagnostic .db-reg-step.active .db-reg-step-label {
  color: #e17055;
}

.db-reg-form-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 28px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.db-reg-panel {
  display: none;
}

.db-reg-panel.active {
  display: block;
  animation: db-reg-slide 0.3s ease;
}

@keyframes db-reg-slide {
  from {
    opacity: 0;
    transform: translateX(16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.db-reg-panel-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 4px;
}

.db-reg-panel-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 20px;
}

.db-reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.db-reg-grid--single {
  grid-template-columns: 1fr;
}

@media (max-width: 640px) {
  .db-reg-grid {
    grid-template-columns: 1fr;
  }
}

.db-reg-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.db-reg-field.full {
  grid-column: 1 / -1;
}

.db-reg-field label {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.db-reg-field .req {
  color: #dc2626;
}

.db-reg-page textarea.db-login-input {
  min-height: 88px;
  resize: vertical;
}

.db-reg-page select.db-login-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.db-reg-page--diagnostic .db-login-input:focus {
  border-color: #e17055;
  background: #fff;
}

.db-reg-preview {
  margin-top: 10px;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}

.db-reg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  align-items: center;
}

.db-reg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--ui-font-body);
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.db-reg-btn::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.db-reg-btn:focus,
.db-reg-btn:focus-visible,
.db-reg-btn:active {
  outline: none;
}

.db-reg-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.db-reg-btn--ghost {
  background: #f1f5f9;
  color: #475569;
}

.db-reg-btn--ghost:hover:not(:disabled) {
  background: #e2e8f0;
}

.db-reg-btn--primary {
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: #fff;
}

.db-reg-btn--primary:hover:not(:disabled) {
  opacity: 0.95;
}

.db-reg-page--diagnostic .db-reg-btn--primary {
  background: linear-gradient(135deg, #e17055, #fdcb6e);
}

.db-reg-foot {
  margin-top: 20px;
  font-size: 14px;
  color: #64748b;
  text-align: center;
}

.db-reg-foot a {
  color: #00b894;
  font-weight: 600;
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.db-reg-foot a:hover {
  text-decoration: underline;
}

.db-reg-foot a:focus,
.db-reg-foot a:focus-visible {
  outline: none;
}

.db-reg-page--diagnostic .db-reg-foot a {
  color: #e17055;
}

.db-reg-page input[type='file']:focus,
.db-reg-page input[type='file']:focus-visible {
  outline: none;
}

.db-reg-terms input:focus,
.db-reg-terms input:focus-visible {
  outline: none;
}

@media (max-width: 900px) {
  .db-reg-split {
    flex-direction: column;
    min-height: auto;
  }

  .db-reg-left {
    width: 100%;
    min-width: 0;
    padding: 32px 24px;
  }

  .db-reg-right {
    padding: 28px 20px 40px;
  }

  .db-reg-page--patient .db-reg-right {
    width: 100%;
  }
}