/**
 * Index Page Specific CSS
 * Styles for the login page hero section and forms
 */

/* Target Users Section Styles - Moved from header CSS */
.main-header {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 179, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  /* Reduced height */
  position: relative;
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.main-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 179, 0, 0.1),
      transparent);
  transition: left 0.5s ease;
}

.main-header:hover::before {
  left: 100%;
}

.main-header:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

/* Navigation Links */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  /* Reduced gap */
  width: 100%;
  justify-content: center;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* Reduced gap */
}

.nav-section-title {
  font-size: 0.7rem;
  /* Reduced font size */
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  padding: 0 12px;
  /* Reduced padding */
}

.nav-links {
  display: flex;
  gap: 6px;
  /* Reduced gap */
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  /* Reduced gap */
  padding: 8px 12px;
  /* Reduced padding */
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 120px;
  /* Reduced width */
}

/* Override Bootstrap's .nav-link display for desktop index navigation */
.desktop-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link:hover {
  background: linear-gradient(135deg,
      rgba(255, 179, 0, 0.2),
      rgba(255, 140, 0, 0.1));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 179, 0, 0.15);
  text-decoration: none;
  color: white;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  /* Reduced size */
  height: 28px;
  /* Reduced size */
  border-radius: 6px;
  background: rgba(255, 179, 0, 0.1);
  transition: var(--transition);
}

.nav-link:hover .nav-icon {
  background: var(--accent-orange);
  transform: scale(1.1) rotate(5deg);
}

.nav-icon i {
  font-size: 0.9rem;
  /* Reduced font size */
  color: var(--accent-orange);
  transition: var(--transition);
}

.nav-icon .material-icons {
  font-size: 1rem;
  color: var(--accent-orange);
  transition: var(--transition);
  line-height: 1;
}

.nav-link:hover .nav-icon i {
  color: white;
}

.nav-link:hover .nav-icon .material-icons {
  color: white;
}

.nav-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  /* Reduced gap */
}

.nav-title {
  font-weight: 600;
  font-size: 0.8rem;
  /* Reduced font size */
  color: rgba(255, 255, 255, 0.95);
  line-height: 1;
}

.nav-subtitle {
  font-size: 0.7rem;
  /* Reduced font size */
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  line-height: 1;
}

/* Hero Section */
.hero-section {
  background: #f8f9fa url("/assets/images/hero-bg.svg") no-repeat center/cover;
  padding: 1rem 0;
  position: relative;
  z-index: 1000;
  /* overflow: hidden; */
}

/* Remove parallax transform on scroll that can misplace on tablets */
.hero-section {
  will-change: auto;
}

@media (max-width: 991.98px) {
  .hero-section .row {
    flex-direction: column-reverse;
  }

  .hero-login-card {
    margin-top: 1rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Ensure target user nav spacing below header on tablets */
@media (max-width: 991.98px) {
  .main-header {
    position: relative;
  }
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-orange), #ff8c42);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  animation: float 3s ease-in-out infinite;
}

.hero-badge .material-icons {
  font-size: 1.2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-icon {
  font-size: 3rem !important;
  color: var(--primary-blue);
  animation: pulse 2s infinite;
}

.gradient-text {
  background: linear-gradient(135deg,
      var(--primary-blue),
      var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-subtitle .material-icons {
  font-size: 1.5rem;
  color: var(--primary-blue);
}

.hero-features {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero-features .feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid var(--accent-orange);
}

.hero-features .feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-features .feature-item .material-icons {
  font-size: 1.8rem;
  color: var(--primary-blue);
}

.hero-features .feature-item span:last-child {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
}

.features-grid {
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(0, 45, 91, 0.05);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-medium);
  border-color: var(--primary-blue);
}

.feature-item i {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  display: block;
}

.feature-item h6 {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* Hero Login Card Styles - Enhanced */
.hero-login-card {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 45, 91, 0.12),
    0 5px 20px rgba(0, 45, 91, 0.08);
  border: 2px solid rgba(255, 179, 0, 0.1);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: none;
  backdrop-filter: blur(10px);
  max-width: 400px;
  margin: 0 auto;
}

.hero-login-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 45, 91, 0.15);
  border-color: var(--primary-blue);
}

.hero-login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
      var(--primary-blue),
      var(--accent-orange),
      var(--secondary-blue));
  border-radius: 20px 20px 0 0;
}

.login-card {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 45, 91, 0.12),
    0 5px 20px rgba(0, 45, 91, 0.08);
  border: 2px solid rgba(255, 179, 0, 0.1);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: none;
  backdrop-filter: blur(10px);
}

.login-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 45, 91, 0.15);
  border-color: var(--primary-blue);
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  transition: left 0.5s;
}

.login-card:hover::before {
  left: 100%;
}

/* Login Card Header Styles */
.login-card-header {
  text-align: center;
  position: relative;
}

.login-title {
  color: var(--primary-blue);
  font-weight: 800;
  font-size: 1.8rem;
  background: linear-gradient(135deg,
      var(--primary-blue),
      var(--secondary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  color: var(--text-light);
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 500;
}

.login-card h4 {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.login-card p {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Form Styles */
.form-floating {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-label {
  color: #0f172a;
  /* Darker text for high contrast (WCAG AAA) */
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  border: 2px solid #cbd5e1;
  /* Darker border for contrast */
  border-radius: 10px;
  padding: 1.25rem 1.25rem;
  /* Increased height/padding */
  font-size: 1.15rem;
  /* Increased font size */
  color: #0f172a;
  /* Dark text */
  transition: all 0.3s ease;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(0, 45, 91, 0.1);
  /* Custom focus ring */
  outline: none;
}


/* Input Group Styles */
.input-group-text {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-right: none;
  color: var(--text-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.input-group-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(0, 45, 91, 0.1),
      transparent);
  transition: left 0.6s;
  z-index: 1;
}

.input-group:focus-within .input-group-text::before {
  left: 100%;
}

.input-group:focus-within .input-group-text {
  background: white;
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.input-group .form-control {
  border-left: none;
}


/* Login Button Styles (button-71) =================================================== */

.button-71 {
  background-color: #0078d0;
  border: 0;
  border-radius: 56px;
  color: #fff;
  cursor: pointer;
  display: block;
  width: 100%;
  margin: 0 auto;
  font-family: system-ui, -apple-system, system-ui, "Segoe UI", Roboto, Ubuntu,
    "Helvetica Neue", sans-serif;
  font-size: 18px;
  font-weight: 600;
  outline: 0;
  padding: 12px 24px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-71:before {
  background-color: initial;
  background-image: linear-gradient(#fff 0, rgba(255, 255, 255, 0) 100%);
  border-radius: 125px;
  content: "";
  height: 50%;
  left: 4%;
  opacity: 0.5;
  position: absolute;
  top: 0;
  transition: all 0.3s;
  width: 92%;
}

.button-71:hover {
  box-shadow: rgba(255, 255, 255, 0.2) 0 3px 15px inset,
    rgba(0, 0, 0, 0.1) 0 3px 5px, rgba(0, 0, 0, 0.1) 0 10px 13px;
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .button-71 {
    padding: 12px 32px;
  }
}

/* Login Button Styles (button-87) =================================================== */

.button-87 {
  margin: 0 auto;
  padding: 12px 30px;
  text-align: center;
  text-transform: uppercase;
  transition: 0.5s;
  background-size: 200% auto;
  color: white;
  border-radius: 10px;
  display: block;
  width: 100%;
  border: 0px;
  font-weight: 700;
  box-shadow: 0px 0px 14px -7px #f09819;
  background-image: linear-gradient(45deg,
      #ff512f 0%,
      #f09819 51%,
      #ff512f 100%);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-87:hover {
  background-position: right center;
  color: #fff;
  text-decoration: none;
}

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

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 16px 40px rgba(30, 90, 150, 0.4),
      0 8px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  50% {
    box-shadow: 0 20px 50px rgba(30, 90, 150, 0.5),
      0 10px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
}

/* Form Options Styling */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.forgot-password-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.forgot-password-link:hover {
  color: var(--accent-orange);
  text-decoration: underline;
}

.create-account-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.create-account-link:hover {
  color: var(--accent-orange);
  text-decoration: underline;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg,
      var(--primary-blue),
      var(--secondary-blue));
  border: none;
  color: white;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: left 0.6s;
  z-index: 1;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg,
      var(--secondary-blue),
      var(--primary-blue));
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 45, 91, 0.3);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

/* Loading State */
.btn-loading {
  position: relative;
  color: transparent;
}

.btn-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Password Toggle */
.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: var(--transition);
  z-index: 10;
}

.password-toggle:hover {
  color: var(--primary-blue);
  background: rgba(0, 45, 91, 0.05);
}

/* Alert Styles */
.alert {
  border-radius: 10px;
  border: none;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  animation: fadeInUp 0.5s ease-out;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
}

.alert-warning {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  color: #856404;
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1, #bee5eb);
  color: #0c5460;
}

/* Responsive Login Styles */
@media (max-width: 991px) {
  .hero-section {
    padding: 2rem 0;
  }

  .hero-login-card {
    border-radius: 15px;
  }

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

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

@media (max-width: 768px) {
  .hero-section {
    padding-top: 0;
    padding-bottom: 0.5rem;
  }

  .hero-section .row {
    flex-direction: column-reverse;
  }

  .hero-content {
    padding: 1rem 0;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
    justify-content: center;
    gap: 0.5rem;
  }

  .hero-icon {
    font-size: 2.5rem !important;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    justify-content: center;
    text-align: center;
  }

  .hero-features {
    justify-content: center;
    gap: 1rem;
  }

  .hero-features .feature-item {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }

  .hero-features .feature-item .material-icons {
    font-size: 1.5rem;
  }

  .hero-login-card {
    margin-top: 0;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 45, 91, 0.1);
  }

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

  .button-71 {
    padding: 0.75rem 1.2rem;
    font-size: 1rem;
  }

  .form-options {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .hero-section .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .hero-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-icon {
    font-size: 2rem !important;
  }

  .hero-subtitle {
    font-size: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-features {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .hero-features .feature-item {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    width: 100%;
    text-align: left;
  }

  .hero-badge {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .hero-login-card {
    padding: 1.2rem;
    margin: 0.5rem;
  }

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

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

  .button-71 {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

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

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

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

  50% {
    transform: scale(1.05);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }

  100% {
    background-position: calc(200px + 100%) 0;
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-login-card,
  .login-card {
    padding: 2rem;
    margin-top: 0.5rem;
    order: 2;
  }

  .hero-left-content {
    order: 1;
    margin-bottom: 2rem;
  }

  .feature-item {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .login-card {
    padding: 1.5rem;
  }

  .btn-primary {
    padding: 0.875rem 1.5rem;
  }
}

/* Enhanced Login Form Styling */
.login-card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #002d5b 0%, #1e5a96 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(0, 45, 91, 0.2);
}

.login-card-icon i {
  color: white;
  font-size: 40px;
}

.form-control-compact {
  height: 48px;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  font-size: 1rem;
  padding: 0.55rem 1rem;
  transition: all 0.3s ease;
  margin-top: 0.2rem;
}


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

.form-control-lg {
  height: 50px;
  border-radius: 10px;
  border: 2px solid #e9ecef;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}


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

.form-label {
  color: #2d3748;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.3rem;
}

.form-label .material-icons {
  color: #002d5b;
  font-size: 20px;
}

.form-text {
  font-size: 0.8rem;
  color: #6b7280;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #002d5b;
  cursor: pointer;
  padding: 6px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.password-toggle:hover {
  color: #1e5a96;
  transform: translateY(-50%) scale(1.1);
}

.form-options {
  font-size: 0.9rem;
  gap: 0.5rem;
}

.form-check-input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border: 2px solid #e9ecef;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #002d5b;
  border-color: #002d5b;
}

.form-check-label {
  cursor: pointer;
  user-select: none;
  margin-left: 4px;
  font-size: 0.9rem;
}

.forgot-password-link {
  color: #002d5b;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.forgot-password-link:hover {
  color: #1e5a96;
  text-decoration: underline;
}

.btn-primary {
  background: linear-gradient(135deg, #002d5b 0%, #1e5a96 100%);
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 45, 91, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 45, 91, 0.3);
  background: linear-gradient(135deg, #001f47 0%, #18467f 100%);
}

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

.login-divider {
  position: relative;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #6b7280;
  font-size: 0.95rem;
}

.login-divider::before,
.login-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: #e5e7eb;
}

.login-divider::before {
  left: 0;
}

.login-divider::after {
  right: 0;
}

.create-account-link {
  background: linear-gradient(135deg, #002d5b 0%, #1e5a96 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 45, 91, 0.2);
}

.create-account-link:hover {
  background: linear-gradient(135deg, #001f47 0%, #18467f 100%);
  color: white;
  border-color: #002d5b;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 45, 91, 0.3);
}

.alert {
  border-radius: 10px;
  border: none;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
}

.alert-danger {
  background: linear-gradient(135deg, #fee 0%, #fef5f5 100%);
  color: #c33;
}

.alert-success {
  background: linear-gradient(135deg, #efe 0%, #f5fef5 100%);
  color: #3c3;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-login-card {
    max-width: 100%;
    margin: 0;
    padding: 1.25rem;
  }

  .form-control-compact {
    height: 44px;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
  }

  .form-control-lg {
    height: 52px;
    font-size: 1rem;
  }

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

  .login-card-icon {
    width: 60px;
    height: 60px;
    margin-top: 0;
    padding-top: 0;
  }

  .login-card-icon i {
    font-size: 32px;
  }

  .form-label {
    font-size: 0.9rem;
  }

  .form-options {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.3rem;
  }

  .form-check-label {
    font-size: 0.9rem;
  }

  .forgot-password-link {
    font-size: 0.9rem;
  }
}

/* Login Form Divider with Text */
.divider-with-text {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1rem 0;
}

.divider-with-text::before,
.divider-with-text::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e0e0e0;
}

.divider-with-text span {
  padding: 0 1rem;
  color: #6c757d;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Login Tabs Styling */
.login-tabs {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 4px;
}

.login-tabs .nav-link {
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #495057;
  transition: all 0.3s ease;
  border: none;
}

.login-tabs .nav-link:hover {
  background: rgba(0, 45, 91, 0.08);
  color: var(--primary-blue);
}

.login-tabs .nav-link.active {
  background: linear-gradient(135deg, #002d5b 0%, #1e5a96 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 45, 91, 0.25);
}

.login-tabs .nav-link i {
  font-size: 1rem;
}

/* Google Login Button */
.google-login-btn {
  transition: all 0.3s ease;
  font-weight: 500;
}

.google-login-btn:hover {
  background: #f8f9fa !important;
  border-color: #4285f4 !important;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.25);
  transform: translateY(-2px);
}

/* QR Login Content */
.qr-login-content {
  animation: fadeIn 0.3s ease-out;
}

.qr-placeholder {
  transition: all 0.3s ease;
}

.qr-placeholder:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 45, 91, 0.15);
}

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

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

/* Tab Content Animation */
.tab-pane {
  animation: fadeIn 0.3s ease-out;
}

/* Responsive adjustments for login tabs */
@media (max-width: 576px) {
  .login-tabs .nav-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .login-tabs .nav-link i {
    font-size: 0.9rem;
  }

  .google-login-btn {
    font-size: 0.9rem !important;
    padding: 0.6rem 1rem !important;
  }
}