@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2d5a3d;
  --secondary: #6b9f59;
  --success: #27ae60;
  --error: #eb5757;
  --warning: #f2994a;
  --background: #f9f9f9;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0e0;
  --white: #ffffff;
  --sidebar-width: 250px;
  --header-height: 0px;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  height: 100vh;
  display: flex;
  background: #f8f9fa;
}

/* Full Page Loader - only for final redirect */
.healthcare-loader {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.healthcare-loader.active {
  display: flex;
}

.loader-content {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(40, 167, 69, 0.15);
}

/* Compact loader for content area */
.compact-loader-content {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(40, 167, 69, 0.12);
  border: 1px solid rgba(45, 90, 61, 0.1);
}

.medical-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  position: relative;
}

.compact-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  position: relative;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid #2d5a3d;
  border-radius: 50%;
  animation: pulse-ring 1.5s infinite;
}

.compact-pulse-ring {
  border: 2px solid #2d5a3d;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.heart-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: #2d5a3d;
  animation: heartbeat 1.5s infinite;
}

.compact-heart-icon {
  font-size: 16px;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  25% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.loader-text {
  color: #2d5a3d;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.compact-loader-text {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.loader-subtext {
  color: #6c757d;
  font-size: 0.85rem;
}

.container {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* Left Side */
.left-section {
  flex: 1; /* Takes remaining space */
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.left-bg-image {
  width: 100%;
  height: 100%;
  background: url("./../../images/LoginPage1.png") no-repeat center center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: flex-end; /* keeps text at bottom */
  justify-content: flex-start;
}

/* Gradient layer over image */
.gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(
    to top,
    rgba(112, 150, 150, 0.85) 0%,
    /* dark teal-black for max text contrast */ rgba(95, 140, 139, 0.65) 30%,
    /* deeper teal */ rgba(137, 168, 167, 0.45) 50%,
    /* your teal shade */ transparent 100% /* fade out */
  );
}

/* Text above gradient */
.left-text {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 20px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.trends-title {
  font-size: 48px;
  color: #adb5bd;
  font-weight: 300;
  margin-bottom: 0;
  letter-spacing: 2px;
}

.healthcare-title {
  font-size: 48px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.description {
  color: var(--primary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 40px;
}

input::placeholder {
  font-size: 16px;
  font-weight: 400 !important;
  font-family: "Plus Jakarta Sans", sans-serif;
}
input[type="password"]::-ms-reveal {
  display: none !important;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.green-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--primary);
}

/* Right Side */
.right-section {
  flex: 0 0 auto; /* Don't grow or shrink */
  width: 100%;
  max-width: 500px; /* Maximum width constraint */
  min-width: 320px; /* Minimum width for mobile */
  background: white;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-header {
  margin-bottom: 20px;
  text-align: center;
}

.login-title {
  font-size: 36px;
  color: black;
  font-weight: 400;
  margin-bottom: 10px;
}

.login-subtitle {
  color: black;
  font-size: 16px;
  font-weight: 400;
}

.form-group {
  margin-bottom: 10px;
}

.form-input {
  width: 100%;
  padding: 15px 0;
  border: none;
  border-bottom: 1px solid black;
  font-size: 16px;
  background: transparent;
  color: black;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input::placeholder {
  color: black;
  font-weight: 200;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.form-input:focus {
  border-bottom-color: var(--primary);
}

.form-options {
  display: flex;
  justify-content: end;
  align-items: center;
  margin: 30px 0;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
}

.checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #dee2e6;
  border-radius: 3px;
  margin-right: 10px;
  cursor: pointer;
  position: relative;
  appearance: none;
}

.checkbox:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-label {
  color: #adb5bd;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.forgot-link {
  color: var(--primary);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
  text-align: end;
  font-weight: 500;
}

.forgot-link:hover {
  color: #20c997;
}

#error-message {
  /* padding: 10px 0; */
  height: 40px;
  color: var(--error);
}

.button-group {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.login-form {
  padding-top: 10px;
}

.login-btn {
  flex: 1;
  padding: 15px 30px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: inherit !important;
}

.login-btn:hover {
  background: #1ea085;
}

.signup-btn {
  flex: 1;
  padding: 15px 30px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.signup-btn:hover {
  background: #1ea085;
  color: white;
}

.contact-link {
  text-align: center;
  color: var(--primary);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #20c997;
}

.forgot-btn {
  width: 100%;
  padding: 15px 30px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.forgot-btn:hover {
  background-color: #1ea085;
}

.forgot-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  transform: none;
}

.back-to-login {
  text-align: left;
  margin-bottom: 20px;
}

.back-to-login a {
  display: inline-flex;
  align-items: center;
  gap: 5px; /* spacing between icon and text */
  color: var(--primary);
  font-size: 14px;
  text-decoration: none; /* remove default underline */
  border-bottom: 1px solid transparent; /* simulate underline */
  transition: color 0.3s ease, border-color 0.3s ease;
  line-height: 1.2;
}

.back-to-login a:hover {
  color: #20c997;
  border-bottom-color: currentColor;
}

.forgot-instructions {
  color: black;
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
}

/* Password toggle styles */
.password-input-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6c757d;
  transition: color 0.3s ease;
  font-size: 18px;
  background: none;
  border: none;
  padding: 5px;
}

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

/* Password requirements tooltip */
.password-requirements-tooltip {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 5px;
  font-size: 12px;
  color: #666;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.password-requirements-tooltip.show {
  display: block;
}

.password-requirements-tooltip ul {
  margin: 5px 0 0 15px;
  padding: 0;
}

.password-requirements-tooltip li {
  margin-bottom: 3px;
}

.password-requirements-tooltip strong {
  color: #333;
  display: block;
  margin-bottom: 5px;
}

/* Ensure form input styling remains consistent */
.form-input {
  padding-right: 40px !important;
}

/* Sign In button disabled state */
.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #6c757d;
}

.login-btn:disabled:hover {
  background-color: #6c757d;
  transform: none;
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
  .healthcare-title {
    font-size: 40px;
  }

  .trends-title {
    font-size: 40px;
  }

  .description {
    font-size: 15px;
  }
}

/* Hide left section on tablets and mobile */
@media (max-width: 1024px) {
  .container {
    flex-direction: row;
  }

  .left-section {
    display: none;
  }

  .right-section {
    flex: 1;
    max-width: 100%;
    width: 100%;
    padding: 60px 40px;
  }

  .green-bar {
    display: none;
  }

  .login-title {
    font-size: 32px;
  }

  .button-group {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  .right-section {
    padding: 40px 30px;
  }

  .login-title {
    font-size: 28px;
  }

  .button-group {
    flex-direction: column;
  }

  .login-header img {
    width: 180px;
  }

  .form-input {
    font-size: 15px;
    padding: 12px 0;
  }

  .login-btn,
  .signup-btn,
  .forgot-btn {
    padding: 12px 25px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .right-section {
    padding: 30px 20px;
  }

  .login-header img {
    width: 160px;
  }

  .login-title {
    font-size: 24px;
  }

  .login-subtitle {
    font-size: 14px;
  }

  .form-input {
    font-size: 14px;
    padding: 10px 0;
  }

  .login-btn,
  .signup-btn,
  .forgot-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .forgot-link {
    font-size: 13px;
  }
}
