/* Pharmacy/Distribution/Admin shared header styles */

/* Global header height variable so layout and header stay in sync */
:root {
  --pharmacy-header-height: 110px;
}

/* Slightly shorter header on shorter desktop/laptop heights */
@media (max-height: 800px) {
  :root {
    --pharmacy-header-height: 96px;
  }
}

/* Keep a comfortable header height on small-width devices so text and logo don't overlap */
@media (max-width: 767px) {
  :root {
    --pharmacy-header-height: 96px;
  }
}

.pharmacy-header {
  /* padding and border come from inline styles; media queries below tweak on small screens */
  /* Ensure white bottom border is always visible on all pages */
  border-bottom: 2px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.1) inset !important;
}

/* Ensure border is visible on both login and inner pages */
.pharmacy-header-login,
.pharmacy-header-inner {
  border-bottom: 2px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.1) inset !important;
}

/* Specifically ensure inner pages show the border */
.pharmacy-header-inner {
  border-bottom: 2px solid rgba(255, 255, 255, 0.95) !important;
}

.pharmacy-header-title {
  /* Montserrat as a free close match to Proxima Nova / Futura, with sensible fallbacks */
  font-family: 'Montserrat', 'Proxima Nova', 'Futura', 'Segoe UI', system-ui, -apple-system,
    BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Center title on login page over full header on desktop */
.pharmacy-header-center-login {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 0;
  padding: 0 4rem;
  text-align: center;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Desktop: inner pages - title should be flex centered (not absolute) */
@media (min-width: 768px) {
  .pharmacy-header-inner .pharmacy-header-center:not(.pharmacy-header-center-login) {
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    pointer-events: auto !important;
  }
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
  .pharmacy-header {
    padding: 0.5rem 0.5rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .pharmacy-logo {
    height: 35px !important;
  }

  /* On mobile, let the login title behave like flex content to avoid overlap */
  .pharmacy-header-center-login {
    position: static;
    transform: none;
    padding: 0 1.5rem;
  }

  /* Mobile inner pages: 3-line layout (admin portal - no cart) */
  .pharmacy-header-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  /* Line 1: Logo centered (full width, centered) */
  .pharmacy-header-inner .pharmacy-header-left {
    width: 100%;
    justify-content: center;
    order: 1;
  }
  
  .pharmacy-header-inner .pharmacy-header-left .pharmacy-logo-desktop {
    display: block !important;
  }
  
  /* Line 2: Title centered (full width, centered) */
  .pharmacy-header-inner .pharmacy-header-center {
    width: 100%;
    order: 2;
    flex-direction: row;
    justify-content: center;
    display: flex !important;
    position: static !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  
  /* Line 3: Toggle left only (full width, flex-start) */
  .pharmacy-header-inner .pharmacy-header-bottom-row {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    order: 3;
  }
  
  .pharmacy-header-inner .pharmacy-header-toggle-bottom {
    display: inline-flex !important;
  }
}

@media (max-width: 575px) {
  .pharmacy-header {
    padding: 0.5rem 0.375rem !important;
  }

  .pharmacy-logo {
    height: 30px !important;
  }
}

/* Bottom toggle button (mobile inner pages) */
.pharmacy-header-toggle-bottom {
  display: none !important;
  margin-top: 0 !important;
}

/* Bottom row container (hidden by default) */
.pharmacy-header-bottom-row {
  display: none;
}

/* Desktop: hide bottom row */
@media (min-width: 768px) {
  .pharmacy-header-bottom-row {
    display: none !important;
  }
}
/* Help Page Styles */

.help-page-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  flex-direction: column;
}

.help-page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Print styles */
@media print {
  .help-page-container {
    background: white;
  }
  
  .help-page-header {
    background: #667eea;
  }
}
/* Floating Help Button Styles */

.floating-help-button {
  position: fixed !important;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4) !important;
  transition: all 0.3s ease !important;
  width: 56px !important;
  height: 56px !important;
}

.floating-help-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6) !important;
}

.floating-help-button:active {
  transform: scale(0.95);
}

.floating-help-button svg {
  font-size: 28px;
}

.help-icon {
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
  .floating-help-button {
    bottom: 16px;
    right: 16px;
    width: 48px !important;
    height: 48px !important;
  }

  .floating-help-button svg {
    font-size: 24px;
  }

  .help-icon {
    font-size: 24px;
  }
}
/* Advanced Sidebar Navigation Styles */

.sidebar-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 
    4px 0 20px rgba(0, 0, 0, 0.08),
    inset -1px 0 0 rgba(255, 255, 255, 0.5);
  position: relative;
  transition: all 0.3s ease;
}

.sidebar-container.collapsed {
  width: 70px;
}

.sidebar-container.collapsed .sidebar-menu-button {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.sidebar-container.collapsed .sidebar-menu-button .MuiListItemIcon-root {
  minWidth: 0;
  margin: 0 auto;
}

.sidebar-container.collapsed .sidebar-logout-button {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.sidebar-container.collapsed .sidebar-logout-button .MuiListItemIcon-root {
  minWidth: 0;
  margin: 0 auto;
}

.sidebar-container.collapsed .sidebar-menu {
  padding: 0.5rem 0;
}

.sidebar-container.collapsed .sidebar-footer {
  padding: 0.5rem;
}

.sidebar-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(102, 126, 234, 0.05) 0%,
    transparent 50%,
    rgba(118, 75, 162, 0.05) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Sidebar Header */
.sidebar-header {
  flex-shrink: 0;
  padding: 1.5rem 1rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  position: relative;
  z-index: 1;
}

.sidebar-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.sidebar-logo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
  }
}

.sidebar-logo-text {
  flex: 1;
}

.sidebar-logo-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 0.1rem;
}

.sidebar-logo-subtitle {
  font-size: 0.7rem !important;
  color: rgba(102, 126, 234, 0.7) !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sidebar Menu */
.sidebar-menu {
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 0;
  position: relative;
  z-index: 1;
  -webkit-overflow-scrolling: touch;
}

.sidebar-menu::-webkit-scrollbar {
  width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.2);
  border-radius: 3px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.4);
}

.sidebar-menu-item {
  margin-bottom: 0.25rem;
}

.sidebar-menu-button {
  position: relative;
  overflow: hidden;
}

.sidebar-menu-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: width 0.5s ease;
}

.sidebar-menu-button:hover::before {
  width: 100%;
}

.sidebar-menu-button.active {
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.sidebar-menu-button.active::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px 0 0 2px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 4px;
    opacity: 1;
  }
}

/* Sidebar Footer */
.sidebar-footer {
  flex-shrink: 0;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.sidebar-logout-button {
  position: relative;
  overflow: hidden;
}

.sidebar-logout-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(244, 67, 54, 0.1), transparent);
  transition: width 0.5s ease;
}

.sidebar-logout-button:hover::before {
  width: 100%;
}

/* Responsive Design */
@media (max-width: 600px) {
  .sidebar-header {
    padding: 1rem 0.75rem;
  }

  .sidebar-logo-icon {
    width: 40px;
    height: 40px;
  }

  .sidebar-logo-title {
    font-size: 1rem !important;
  }

  .sidebar-logo-subtitle {
    font-size: 0.65rem !important;
  }
}

/* Animation for menu items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sidebar-menu-item {
  animation: fadeInUp 0.3s ease forwards;
  opacity: 0;
}

.sidebar-menu-item:nth-child(1) { animation-delay: 0.05s; }
.sidebar-menu-item:nth-child(2) { animation-delay: 0.1s; }
.sidebar-menu-item:nth-child(3) { animation-delay: 0.15s; }
.sidebar-menu-item:nth-child(4) { animation-delay: 0.2s; }
.sidebar-menu-item:nth-child(5) { animation-delay: 0.25s; }
.sidebar-menu-item:nth-child(6) { animation-delay: 0.3s; }
.sidebar-menu-item:nth-child(7) { animation-delay: 0.35s; }
.sidebar-menu-item:nth-child(8) { animation-delay: 0.4s; }
.sidebar-menu-item:nth-child(9) { animation-delay: 0.45s; }
.sidebar-menu-item:nth-child(10) { animation-delay: 0.5s; }
.sidebar-menu-item:nth-child(11) { animation-delay: 0.55s; }
.sidebar-menu-item:nth-child(12) { animation-delay: 0.6s; }
.sidebar-menu-item:nth-child(13) { animation-delay: 0.65s; }
/* Medical Distribution Login Page Styles */

.login-page-container {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Match pharmacy portal background gradient + image overlay */
  background-image:
    linear-gradient(
      90deg,
      rgba(1, 95, 116, 0.55) 0%,
      rgba(0, 221, 201, 0.75) 50%,
      rgba(0, 218, 231, 0.75) 100%
    ),
    url('/Landing%20page%20pic.png');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  backdrop-filter: blur(16px);
}

.login-page-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 0;
}

.login-header-wrapper {
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.login-footer-wrapper {
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.login-footer-wrapper footer {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.login-footer-wrapper footer .MuiContainer-root {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}


/* Medical-themed background pattern - subtle white pattern */
.login-page-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    /* Medical cross icons - subtle gray */
    radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.03) 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.03) 2px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(0, 0, 0, 0.03) 2px, transparent 2px),
    /* Pill shapes - subtle */
    ellipse(40px 20px at 10% 50%),
    ellipse(40px 20px at 90% 20%),
    ellipse(40px 20px at 60% 90%),
    /* Plus signs - very subtle */
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 
    200px 200px,
    250px 250px,
    180px 180px,
    100px 100px,
    120px 120px,
    90px 90px,
    50px 50px,
    50px 50px;
  background-position: 
    0 0,
    100px 100px,
    200px 200px,
    0 0,
    100px 100px,
    200px 200px,
    0 0,
    0 0;
  opacity: 0.4;
  animation: patternMove 20s linear infinite;
  pointer-events: none;
}

@keyframes patternMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Floating medical icons - White glass style */
.medical-icon {
  position: absolute;
  opacity: 0.4;
  font-size: 3rem;
  color: #6c757d;
  animation: float 6s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
  filter: 
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  padding: 0.5rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.medical-icon:hover {
  opacity: 0.6;
  transform: scale(1.2);
}

.medical-icon-svg {
  width: 3rem;
  height: 3rem;
  font-size: 0;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.medical-icon-svg svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  color: #6c757d;
}

/* Medical Cross - White glass */
.medical-icon-1 {
  top: 8%;
  left: 8%;
  font-size: 3.5rem;
  animation-delay: 0s;
  opacity: 0.4;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Pills/Tablets - White glass */
.medical-icon-2 {
  top: 15%;
  right: 12%;
  font-size: 3rem;
  animation-delay: 1s;
  opacity: 0.35;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Hospital - White glass */
.medical-icon-3 {
  top: 25%;
  left: 5%;
  font-size: 3.5rem;
  animation-delay: 2s;
  opacity: 0.4;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Plus Sign - White glass */
.medical-icon-4 {
  top: 35%;
  right: 8%;
  font-size: 2.8rem;
  animation-delay: 0.5s;
  opacity: 0.35;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Saline Bottle - White glass */
.medical-icon-5 {
  top: 50%;
  left: 3%;
  font-size: 3.2rem;
  animation-delay: 1.5s;
  opacity: 0.38;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.09);
}

/* Tablets - White glass */
.medical-icon-6 {
  top: 60%;
  right: 5%;
  font-size: 2.8rem;
  animation-delay: 2.5s;
  opacity: 0.35;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Ointment Tube - White glass */
.medical-icon-7 {
  bottom: 25%;
  left: 8%;
  font-size: 3rem;
  animation-delay: 3s;
  opacity: 0.38;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.09);
}

/* Food Supplements - White glass */
.medical-icon-8 {
  bottom: 20%;
  right: 10%;
  font-size: 2.9rem;
  animation-delay: 1.2s;
  opacity: 0.35;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Another Saline - White glass */
.medical-icon-9 {
  bottom: 35%;
  left: 15%;
  font-size: 3.1rem;
  animation-delay: 2.2s;
  opacity: 0.38;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.09);
}

/* Another Tablet - White glass */
.medical-icon-10 {
  bottom: 40%;
  right: 15%;
  font-size: 2.7rem;
  animation-delay: 0.8s;
  opacity: 0.35;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    opacity: 0.5;
  }
  25% {
    transform: translateY(-15px) rotate(3deg) scale(1.05);
    opacity: 0.65;
  }
  50% {
    transform: translateY(-25px) rotate(-2deg) scale(1.1);
    opacity: 0.7;
  }
  75% {
    transform: translateY(-15px) rotate(2deg) scale(1.05);
    opacity: 0.65;
  }
}

/* Login Card with Glassmorphism */
.login-card-wrapper {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Extra top/bottom padding to match pharmacy portal spacing */
  padding: 8rem 1.5rem 3rem;
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  padding: 2rem 2.5rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  animation: cardFadeIn 0.6s ease-out;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Logo and Title Section */
.login-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-logo {
  width: 70px;
  height: 70px;
  margin: 0 auto 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.login-logo svg {
  width: 45px;
  height: 45px;
  color: #495057;
}

.login-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #495057;
  margin-bottom: 0.4rem;
}

.login-subtitle {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Form Styles */
.login-form {
  margin-top: 1.5rem;
}

.form-group-custom {
  margin-bottom: 1.25rem;
  position: relative;
}

.form-label-custom {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.9rem;
}

.form-control-custom {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.form-control-custom:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  background: white;
}

.form-control-custom::placeholder {
  color: #adb5bd;
}

/* Input Icon Wrapper */
.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  z-index: 1;
}

.input-icon-wrapper .form-control-custom {
  padding-left: 3rem;
}

/* Login Button */
.btn-login {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: #00765A !important;
  color: white !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 118, 90, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-login:hover::before {
  width: 300px;
  height: 300px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 118, 90, 0.4);
  background: #005a47 !important;
}

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

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Alert Styles */
.alert-custom {
  border-radius: 10px;
  border: none;
  padding: 0.875rem;
  margin-bottom: 1.25rem;
  animation: slideDown 0.3s ease-out;
  font-size: 0.9rem;
}

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

.alert-error {
  background: rgba(255, 107, 107, 0.9);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.alert-error .alert-close-btn {
  color: white;
  opacity: 0.9;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.alert-error .alert-close-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

/* Loading Spinner */
.spinner-wrapper {
  display: inline-block;
  margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-card-wrapper {
    /* Slightly smaller padding on tablets/small laptops, like pharmacy portal */
    padding: 3rem 1rem 2.5rem;
  }

  .login-card {
    padding: 1.75rem 1.5rem;
    max-width: 100%;
  }

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

  .login-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 0.5rem;
  }

  .login-logo svg {
    width: 35px;
    height: 35px;
  }

  .login-header {
    margin-bottom: 1.25rem;
  }

  .form-group-custom {
    margin-bottom: 1rem;
  }

  /* Keep icons visible but smaller on mobile */
  .medical-icon {
    font-size: 2rem !important;
    opacity: 0.4 !important;
    padding: 0.3rem !important;
  }

  .medical-icon-svg {
    width: 2rem !important;
    height: 2rem !important;
    padding: 0.2rem !important;
  }
}

@media (max-width: 480px) {
  .login-card-wrapper {
    padding: 0.5rem;
  }

  .login-card {
    padding: 1.5rem 1.25rem;
  }

  .login-title {
    font-size: 1.35rem;
  }

  .login-subtitle {
    font-size: 0.85rem;
  }

  .login-logo {
    width: 55px;
    height: 55px;
  }

  .login-logo svg {
    width: 32px;
    height: 32px;
  }

  .login-header {
    margin-bottom: 1rem;
  }

  .login-form {
    margin-top: 1.25rem;
  }

  .form-group-custom {
    margin-bottom: 0.875rem;
  }

  .form-control-custom {
    padding: 0.6rem 0.875rem;
    font-size: 0.9rem;
  }

  .btn-login {
    padding: 0.65rem;
    font-size: 0.95rem;
  }

  .alert-custom {
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
  }

  .medical-icon {
    font-size: 1.8rem !important;
    opacity: 0.35 !important;
    padding: 0.25rem !important;
  }

  .medical-icon-svg {
    width: 1.8rem !important;
    height: 1.8rem !important;
    padding: 0.15rem !important;
  }
}

@media (max-height: 700px) {
  .login-card-wrapper {
    padding: 0.5rem 1rem;
  }

  .login-card {
    padding: 1.25rem 1.75rem;
  }

  .login-header {
    margin-bottom: 0.875rem;
  }

  .login-logo {
    width: 55px;
    height: 55px;
    margin-bottom: 0.4rem;
  }

  .login-logo svg {
    width: 32px;
    height: 32px;
  }

  .login-title {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
  }

  .login-subtitle {
    font-size: 0.8rem;
  }

  .login-form {
    margin-top: 1rem;
  }

  .form-group-custom {
    margin-bottom: 0.875rem;
  }

  .form-control-custom {
    padding: 0.6rem 0.875rem;
  }

  .btn-login {
    padding: 0.65rem;
  }

  .alert-custom {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }

  .login-footer-wrapper footer {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
}

@media (max-height: 600px) {
  .login-card {
    padding: 1rem 1.5rem;
  }

  .login-header {
    margin-bottom: 0.75rem;
  }

  .login-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 0.3rem;
  }

  .login-logo svg {
    width: 28px;
    height: 28px;
  }

  .login-title {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
  }

  .login-subtitle {
    font-size: 0.75rem;
  }

  .form-group-custom {
    margin-bottom: 0.75rem;
  }

  .form-control-custom {
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
  }

  .btn-login {
    padding: 0.6rem;
    font-size: 0.95rem;
  }
}
