/* ========================================
   SHRI GOVIND PHARMACY — Auth Page CSS
   Inherits from main site theme
   ======================================== */

:root {
  --primary: #1c8125;
  --primary-light: #27ae60;
  --primary-glow: rgba(28, 129, 37, 0.15);
  --secondary: #def2f1;
  --accent: #ff6b6b;
  --text-dark: #17252a;
  --text-light: #feffff;
  --text-muted: #6b7c85;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --radius: 14px;
  --radius-sm: 8px;
}

[data-theme="dark"] {
  --primary: #1c8125;
  --primary-light: #27ae60;
  --primary-glow: rgba(28, 129, 37, 0.2);
  --secondary: #0d1f12;
  --bg-light: #0b0c10;
  --card-bg: #1f2833;
  --text-dark: #c5c6c7;
  --text-muted: #7f8c95;
  --text-light: #ffffff;
  --border-color: #2a3a2c;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  transition: var(--transition);
  min-height: 100vh;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--primary);
  color: white;
  padding: 8px 20px;
  text-align: center;
  font-size: 0.83rem;
  font-weight: 500;
}

.topbar i {
  margin-right: 6px;
}

/* ── HEADER ── */
.main-header {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.navbar {
  padding: 0.9rem 0;
  position: relative;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
  min-width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  gap: 8px;
  max-width: 250px;
  flex-shrink: 0;
}

.logo i {
  font-size: 1.5rem;
}

.logo .brand-sub {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.7rem;
  display: block;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-dark);
  padding: 7px;
  border-radius: 8px;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.icon-btn:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  gap: 4px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-bottom: 2px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 15px 20px;
  z-index: 99;
}

.mobile-menu.active {
  display: block;
  animation: slideDown 0.3s ease;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--primary);
  padding-left: 10px;
}

.mobile-menu a i {
  margin-right: 10px;
  width: 20px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* ── BREADCRUMB ── */
.breadcrumb-bar {
  background: var(--secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb i {
  font-size: 0.7rem;
}

/* ── PAGE LAYOUT ── */
.auth-page {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── LEFT PANEL — Nature Visual ── */
.auth-visual {
  background: linear-gradient(160deg, #0f3d18 0%, #1c6b27 40%, #27ae60 100%);
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M40 0c0 22.09-17.91 40-40 40 22.09 0 40 17.91 40 40 0-22.09 17.91-40 40-40-22.09 0-40-17.91-40-40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

.auth-visual::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.visual-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  width: fit-content;
  margin-bottom: 30px;
}

.visual-badge i {
  color: #a8e6b8;
}

.visual-headline {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: white;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.visual-headline em {
  font-style: italic;
  color: #a8e6b8;
}

.visual-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 340px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.visual-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.visual-feat {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 500;
}

.feat-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.visual-stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: white;
  font-weight: 700;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── RIGHT PANEL — Form ── */
.auth-form-side {
  background: var(--card-bg);
  padding: 50px 55px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--transition);
}

/* ── TABS ── */
.auth-tabs {
  display: flex;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 32px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  padding: 11px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.auth-tab:not(.active):hover {
  color: var(--primary);
  background: var(--primary-glow);
}

/* ── FORM PANELS ── */
.form-panel {
  display: none;
  animation: slideUp 0.35s ease;
}

.form-panel.active {
  display: block;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-head {
  margin-bottom: 26px;
}

.panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
  line-height: 1.2;
}

[data-theme="dark"] .panel-title {
  color: #e8f5e9;
}

.panel-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── FIELD ── */
.field {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.field-wrap {
  position: relative;
}

.field-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
  transition: color 0.3s;
}

.field-input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  color: var(--text-dark);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.field-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.field-input:focus {
  border-color: var(--primary);
  background: var(--card-bg);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.field-input:focus+.field-icon,
.field-wrap:focus-within .field-icon {
  color: var(--primary);
}

.field-input.error {
  border-color: var(--accent);
}

.toggle-pw {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
  transition: color 0.2s;
}

.toggle-pw:hover {
  color: var(--primary);
}

.field-input.has-eye {
  padding-right: 42px;
}

.field-err {
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 5px;
  display: none;
  align-items: center;
  gap: 5px;
}

.field-err.show {
  display: flex;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── PASSWORD STRENGTH ── */
.pw-strength {
  margin-top: 8px;
}

.strength-segs {
  display: flex;
  gap: 5px;
  margin-bottom: 4px;
}

.seg {
  height: 3px;
  flex: 1;
  border-radius: 3px;
  background: var(--border-color);
  transition: background 0.35s ease;
}

.strength-txt {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── FORM OPTIONS ── */
.form-opts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.check-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.check-wrap input {
  display: none;
}

.check-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-color);
  border-radius: 5px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  font-size: 10px;
  color: white;
}

.check-wrap input:checked~.check-box {
  background: var(--primary);
  border-color: var(--primary);
}

.check-wrap input:checked~.check-box::after {
  content: '✓';
}

.check-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s;
}

.form-link:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* ── SUBMIT BUTTON ── */
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit .btn-txt {
  transition: opacity 0.2s;
}

.btn-submit.loading .btn-txt {
  opacity: 0;
}

.btn-submit .btn-spin {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-submit.loading .btn-spin {
  opacity: 1;
}

.spin-ring {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── RIPPLE ── */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0);
  animation: ripple-go 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-go {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}

.div-line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.div-txt {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

/* ── SOCIAL BUTTONS ── */
.social-row {
  display: flex;
  gap: 10px;
}

.btn-social {
  flex: 1;
  padding: 11px;
  background: var(--bg-light);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: var(--transition);
}

.btn-social:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}

.btn-social i {
  font-size: 1rem;
}

/* ── TERMS NOTE ── */
.terms-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 18px;
  line-height: 1.6;
}

.terms-note a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* ── BACK BUTTON ── */
.btn-back {
  width: 100%;
  padding: 11px;
  background: var(--bg-light);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
}

.btn-back:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── TOAST ── */
.toast-zone {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.toast {
  padding: 11px 22px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text-dark);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 9px;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast.success {
  background: linear-gradient(135deg, #1c8125 0%, #2d9f40 100%);
  color: white;
  border: none;
  box-shadow: 0 8px 32px rgba(28, 129, 37, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.error {
  background: linear-gradient(135deg, #d32f2f 0%, #e53935 100%);
  color: white;
  border: none;
  box-shadow: 0 8px 32px rgba(227, 57, 53, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ── FLASH MESSAGES ── */
.flash {
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.flash.success {
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: var(--primary-dark);
}

.flash.error {
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: var(--accent);
}

.flash.info {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #1d4ed8;
}
}

.t-dot,
.toast i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.9);
  animation: pulse 2s ease-in-out infinite;
}

.toast.success .t-dot,
.toast.success i {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  color: white;
}

.toast.error .t-dot,
.toast.error i {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  color: white;
}

.toast i {
  width: auto;
  height: auto;
  font-size: 1.2rem;
  margin-right: 4px;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

@keyframes toastPop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── FOOTER STRIP ── */
.auth-footer-strip {
  background: var(--text-dark);
  color: #94a3b8;
  text-align: center;
  padding: 18px;
  font-size: 0.8rem;
}

[data-theme="dark"] .auth-footer-strip {
  background: #0b0c10;
}

.auth-footer-strip a {
  color: var(--primary-light);
  text-decoration: none;
}

.auth-footer-strip a:hover {
  text-decoration: underline;
}

/* ── RESPONSIVE: TABLET ── */
@media (max-width: 1132px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    padding: 40px 30px;
    min-height: auto;
  }

  .visual-headline {
    font-size: 2rem;
  }

  .visual-stats {
    gap: 20px;
  }

  .auth-form-side {
    padding: 40px 30px;
  }
}

/* ── RESPONSIVE: MOBILE ── */
@media (max-width: 955px) {
  .container {
    padding: 0 0.75rem;
  }

  /* Hide visual panel on mobile - show only login form */
  .auth-visual {
    display: none;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-form-side {
    padding: 30px 20px;
  }

  .panel-title {
    font-size: 1.5rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .social-row {
    flex-direction: column;
  }

  /* Hide home button on mobile, show hamburger */
  .nav-actions .home-btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .logo-main {
    font-size: 0.95rem;
  }

  .logo .brand-sub {
    display: none;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-flex {
    gap: 10px;
  }
}

/* ── RESPONSIVE: SMALL PHONES ── */
@media (max-width: 480px) {
  .auth-form-side {
    padding: 24px 16px;
  }

  .auth-visual {
    padding: 28px 16px;
  }

  .visual-headline {
    font-size: 1.45rem;
  }

  .visual-features {
    gap: 12px;
  }

  .topbar {
    font-size: 0.75rem;
    padding: 6px;
  }

  /* Fix header for small screens */
  .nav-flex {
    gap: 10px;
  }

  .nav-actions {
    gap: 4px;
  }

  .hamburger {
    padding: 6px;
  }

  .hamburger span {
    width: 18px;
  }

  .logo {
    gap: 8px;
  }

  .logo i {
    font-size: 1.3rem;
  }

  .logo-main {
    font-size: 0.85rem;
  }

  .logo .brand-sub {
    display: none;
  }
}

/* ════════════════════════════════════════════════
   DASHBOARD STYLES (Logged In User)
   ════════════════════════════════════════════════ */

.dashboard-panel {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  color: white;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.user-details h2 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
}

.user-email {
  opacity: 0.9;
  font-size: 0.9rem;
  margin: 4px 0 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-phone {
  opacity: 0.9;
  font-size: 0.85rem;
  margin: 4px 0 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-email i,
.user-phone i {
  font-size: 0.8rem;
}

/* Profile Grid */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius-sm);
}

.profile-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-item label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-value {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 500;
  padding: 8px 0;
}

.btn-logout {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.3);
}

.dashboard-section {
  margin-bottom: 30px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.section-header h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.btn-book,
.btn-view-all {
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
}

.btn-book:hover,
.btn-view-all:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* Appointment Cards */
.appointments-list {
  display: grid;
  gap: 16px;
}

.appointment-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.appointment-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}

.appointment-card-link:hover .appointment-card {
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
  transform: translateY(-2px);
}

.apt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.apt-doctor {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.apt-doctor i {
  color: var(--primary);
  font-size: 1.3rem;
}

.apt-status {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending .apt-status {
  background: #fef3c7;
  color: #92400e;
}

.status-confirmed .apt-status {
  background: #d1fae5;
  color: #065f46;
}

.status-completed .apt-status {
  background: #dbeafe;
  color: #1e40af;
}

.status-cancelled .apt-status {
  background: #fee2e2;
  color: #991b1b;
}

.apt-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.apt-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.apt-item i {
  color: var(--primary);
  width: 20px;
}

.apt-notes {
  background: var(--bg-light);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.note-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.note-item:last-child {
  margin-bottom: 0;
}

.note-item i {
  color: var(--primary);
  margin-top: 2px;
}

.apt-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-cancel,
.btn-view {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
}

.btn-cancel {
  background: #fee2e2;
  color: #991b1b;
}

.btn-cancel:hover {
  background: #fecaca;
}

.btn-view {
  background: var(--primary);
  color: white;
}

.btn-view:hover {
  background: var(--primary-light);
}

/* Order Cards */
.orders-list {
  display: grid;
  gap: 12px;
}

.order-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: var(--transition);
}

.order-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.order-id {
  font-weight: 600;
  color: var(--text-dark);
}

.order-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.order-status.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.order-status.status-confirmed {
  background: #d1fae5;
  color: #065f46;
}

.order-status.status-processing {
  background: #e0e7ff;
  color: #3730a3;
}

.order-status.status-shipped {
  background: #dbeafe;
  color: #1e40af;
}

.order-status.status-delivered {
  background: #d1fae5;
  color: #065f46;
}

.order-status.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.order-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.order-amount {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.order-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
  border: 2px dashed var(--border-color);
}

.empty-state i {
  font-size: 4rem;
  color: var(--text-muted);
  opacity: 0.5;
  margin-bottom: 20px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Hide auth tabs when logged in */
.auth-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0;
}

.auth-tab {
  background: transparent;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.auth-tab:hover {
  color: var(--primary);
}

.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Responsive Dashboard */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .user-info {
    flex-direction: column;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .apt-details {
    grid-template-columns: 1fr;
  }

  .apt-actions {
    flex-direction: column;
  }

  .btn-cancel,
  .btn-view {
    width: 100%;
    justify-content: center;
  }
}