/* Logo adjustments to match signup page */
.logo .logo-img {
  height: 60px; /* Reduced from 70px to match signup */
  margin-right: 15px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .logo .logo-img {
    height: 50px;
    margin-right: 10px;
  }
}

/* Font consistency with signup page */
.login-form h2 {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--primary-black);
  margin-bottom: 30px;
}

.login-form .form-label {
  font-family: var(--nav-font);
  font-weight: 500;
  color: var(--primary-black);
  font-size: 14px;
}

/* Mobile-first responsive adjustments */
@media (max-width: 576px) {
  .login-form {
    padding: 25px;
  }
}

/* Header and Navigation */
:root {
  --primary-black: #121212;
  --secondary-black: #1E1E1E;
  --white: #FFFFFF;
  --black: #000000;
  --light-gray: #F5F5F5;
  --header-height: 70px;
  --color-black-rgb: 18, 18, 18;
  --color-white-rgb: 255, 255, 255;
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Inter", sans-serif;
  --nav-color: var(--white);
  --nav-hover-color: rgba(255, 255, 255, 0.8);
  --nav-dropdown-background-color: var(--white);
  --nav-dropdown-color: var(--primary-black);
  --nav-dropdown-hover-color: var(--secondary-black);
  --nav-mobile-background-color: var(--white);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid rgba(var(--color-white-rgb), 0.1);
  padding: 15px 0;
}

.header .logo {
  text-decoration: none;
  transition: 0.3s;
}

.header .logo img {
  height: 60px;
  margin-right: 15px;
  transition: all 0.3s ease;
}

.header .logo .sitename {
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  font-family: var(--heading-font);
  margin: 0;
  padding: 0;
}

/* Desktop Navigation */
.navmenu {
  padding: 0;
  margin-left: auto;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.navmenu ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
  gap: 5px;
}

.navmenu a {
  display: inline-block;
  position: relative;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--nav-font);
  padding: 10px 15px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.9;
  text-transform: capitalize;
}

.navmenu a:hover,
.navmenu .active {
  color: var(--white);
  transform: translateY(-2px);
  opacity: 1;
}

/* Underline animation */
.navmenu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 5px;
  left: 50%;
  background-color: var(--white);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  opacity: 0;
}

.navmenu a:hover::after,
.navmenu .active::after {
  width: calc(100% - 30px);
  opacity: 1;
}

/* Hover glow effect */
.navmenu a:hover {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

@media (max-width: 1279px) {
  .navmenu {
    display: none;
  }
}

@media (max-width: 768px) {
  .header .logo img {
    height: 50px;
    margin-right: 10px;
  }
  
  .header .logo .sitename {
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .header .logo .sitename {
    font-size: 18px;
  }
}

/* Responsive background adjustments */
@media (max-width: 768px) {
  body.login-page {
    background-attachment: scroll;
  }
  
  .main {
    padding-top: calc(var(--header-height) + 10px);
    padding-bottom: 10px;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .main {
    padding-top: calc(var(--header-height) + 30px);
  }
}

@media (min-width: 1201px) {
  .main {
    padding-top: calc(var(--header-height) + 40px);
  }
}

@media (max-width: 576px) {
  body.login-page {
    padding: 10px;
  }
}

@media (min-width: 577px) and (max-width: 992px) {
  body.login-page {
    padding: 20px;
  }
}

@media (min-width: 993px) {
  body.login-page {
    padding: 40px;
  }
}

/* Responsive Form Sizing */
.login-form {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  margin-top: 100px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 576px) {
  .login-form {
    padding: 25px;
    margin-top: 80px;
    width: 90%;
  }
}

.login-form h2 {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--primary-black);
  margin-bottom: 30px;
  font-size: 24px;
}

@media (max-width: 576px) {
  .login-form h2 {
    font-size: 22px;
  }
}

.login-form .form-label {
  font-family: var(--nav-font);
  font-weight: 500;
  color: var(--primary-black);
  font-size: 14px;
  margin-bottom: 5px;
}

.login-form .form-control {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 5px;
  border: 1px solid #ddd;
  margin-bottom: 15px;
}

.login-form .btn {
  font-size: 14px;
  padding: 8px 20px;
  margin-top: 10px;
}

.login-form .btn-primary {
  background: var(--primary-black);
  border: 2px solid var(--primary-black);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  color: white;
}

.login-form .btn-primary:hover {
  background: #1e1e1e;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.login-form .btn-danger {
  background: white;
  border: 1px solid #ddd;
  color: #333;
  font-size: 14px;
  padding: 8px 20px;
  transition: all 0.3s ease;
}

.login-form .btn-danger:hover {
  background: #f8f9fa;
  border-color: #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.login-form .btn-danger .bi-google {
  color: #DB4437;
  margin-right: 8px;
}

.login-form p {
  font-size: 14px;
  color: #666;
  margin: 10px 0;
}

.login-form a {
  color: #ff0000;
  text-decoration: none;
  font-weight: 500;
}

.login-form a:hover {
  color: #c41530;
}

.login-form .bi {
  margin-right: 8px;
}

/* Fluid typography for better responsiveness */
@media (min-width: 320px) {
  html {
    font-size: calc(16px + 6 * ((100vw - 320px) / 680));
  }
}

@media (min-width: 1000px) {
  html {
    font-size: 22px;
  }
}

/* Ensure proper scaling and sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

:root {
  --primary-black: #121212;
  --secondary-black: #1E1E1E;
  --white: #FFFFFF;
  --black: #000000;
}

/* Ensure full viewport coverage */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body.login-page {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/home pages background.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  padding: 20px;
  box-sizing: border-box;
  font-family: var(--default-font);
}

/* Container for better organization */
.main {
  min-height: calc(100vh - var(--header-height));
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 20px) 20px 20px;
  position: relative;
  z-index: 1;
}

.login.section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Login Form Styles */
.login-form {
  background: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
  margin: 100px auto 0;
}

.login-form h2 {
  margin-bottom: 30px;
  color: var(--primary-black);
  text-align: center;
  font-size: 24px;
  font-weight: 600;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form .form-control {
  height: 45px;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  font-size: 15px;
  transition: all 0.3s ease;
}

.login-form .form-control:focus {
  border-color: var(--primary-black);
  box-shadow: none;
}

.login-form .btn-primary {
  width: 100%;
  height: 45px;
  background: var(--primary-black);
  border: none;
  border-radius: 4px;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-form .btn-primary:hover {
  background: var(--secondary-black);
}

.login-form .forgot-password {
  text-align: center;
  margin-top: 15px;
}

.login-form .forgot-password a {
  color: var(--primary-black);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.login-form .forgot-password a:hover {
  color: var(--secondary-black);
}

/* New styles for the background blur overlay */
.background-blur-overlay {
  position: fixed; /* Cover the entire viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(3px); /* Adjust the blur radius as needed */
  -webkit-backdrop-filter: blur(3px); /* For Safari compatibility */
  z-index: 0; /* Place it between the body background and the main content */
}
