

html, body {
  height: 100%;
  font-family: Georgia, 'Times New Roman', Times, serif;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
  background-image: url(abstract-digital-grid-black-background.avif);
  overflow-x: hidden;
/* End of media queries and custom styles */

/* ================= Header ================= */
header {
  text-align: center;
  padding: 20px;
  color: #fff;
  border-bottom: 2px solid #8B0000;
  min-height: 150px; /* ensure enough height; allow marquee to be visible */
  position: relative; /* create stacking context for marquee */
  z-index: 1000;
}

header h1,
header h2,
header h3 {
  word-wrap: break-word;
}

header h1 {
  font-size: clamp(1.1rem, 5vw, 2.2rem); /* more responsive for mobile */
  font-weight: 900;
  white-space: normal;
  word-break: break-word;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-align: center;
}

header h2 {
  font-size: clamp(1.1rem, 5vw, 2.2rem);
  font-weight: 700;
  white-space: normal;
  word-break: break-word;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-align: center;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.1rem;
    font-weight: 900;
    word-break: break-word;
    white-space: normal;
    line-height: 1.2;
    letter-spacing: 0.01em;
    padding: 0 2vw;
  }
  header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    word-break: break-word;
    white-space: normal;
    line-height: 1.2;
    letter-spacing: 0.01em;
    padding: 0 2vw;
  }
}

header h2 {
  font-size: 1.5rem;
  text-decoration: underline;
  font-weight: bold;
}

header h3 {
  font-size: 1.2rem;
  color: rgb(250, 6, 6);
  font-weight: bold;
}

/* ================= Marquee (Home page) ================= */
/* Make the scrolling notice visible above images with a white strip */
header marquee {
  display: block;
  width: 100%;                  /* base text color if not overridden */
  padding: 4px 0;                   /* strip height */
  margin-top: 8px;
  position: relative;               /* enable z-index */
  z-index: 2000;                    /* sit above any images/content */
  white-space: nowrap;              /* keep text on one line */
  overflow: hidden;                 /* hide overflow during scroll */
}

/* Ensure marquee text is readable and not overridden by ancestor color */
header marquee h3 {
  color: yellow;
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
}

/* ================= Main ================= */
main {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  min-height: 60vh;
  flex-direction: column;
}

form {
  width: 95%;
  max-width: 550px;
  background: rgba(255,255,255,0.97);
  padding: 36px 32px 28px 32px;
  border: none;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(31,38,135,0.25), 0 1.5px 8px rgba(0,0,0,0.10);
  font-size: 1.08rem;
  color: #1a2236;
  margin: 32px 16px 0 16px;
  position: relative;
  transition: box-shadow 0.2s;
}

form h2 {
  text-align: center;
  color: #2c3763;
  margin-bottom: 20px;
  font-weight: bold;
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  color: #1a2236;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  transition: font-size 0.3s ease;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 14px 14px 14px 14px;
  border-radius: 12px;
  margin-bottom: 22px;
  border: 1.5px solid #bfc9d9;
  font-size: 1.08rem;
  background: #f7fafd;
  color: #1a2236;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 1.5px 6px rgba(31,38,135,0.04);
  min-height: 48px;
  line-height: 1.3;
  overflow: visible;
  word-break: break-all;
  white-space: normal;
  box-sizing: border-box;
}
}
input[type="text"]:focus,
input[type="password"]:focus {
  border: 1.5px solid #007bff;
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 2px #e3f0ff;
}

.button-group {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 18px 0 0 0;
}

.login-btn,
.reset-btn {
  padding: 12px 0;
  font-size: 1.08rem;
  border-radius: 12px;
  cursor: pointer;
  flex: 1;
  min-width: 120px;
  transition: all 0.2s;
  font-family: 'Segoe UI', 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 1.5px 6px rgba(31,38,135,0.08);
  border: none;
}

.login-btn {
  background: linear-gradient(135deg, #363c43 0%, #0056b3 100%);
  color: #fff;
  height: 44px;
  line-height: 24px;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(0,123,255,0.08);
}

.reset-btn {
  background: linear-gradient(135deg, #d82537 0%, #47040a 100%);
  color: #fff;
  height: 44px;
  line-height: 24px;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(220,53,69,0.08);
}

.login-btn:hover {
  background: linear-gradient(135deg, #7e9dbc 0%, #1972d1 100%);
  box-shadow: 0 4px 16px rgba(0,123,255,0.16);
  transform: translateY(-2px) scale(1.03);
}

.reset-btn:hover {
  background: linear-gradient(135deg, #dcc1c5 0%, #970d1b 100%);
  box-shadow: 0 4px 16px rgba(220,53,69,0.16);
  transform: translateY(-2px) scale(1.03);
}

.error-message {
  color: red;
  text-align: center;
  margin-top: 10px;
  font-weight: bold;
  font-size: 0.9rem;
}

.forgot-password-link {
  color: #667eea !important;
  text-decoration: none;
  font-size: 1em;
  font-weight: 500;
  padding: 8px 15px;
  border: 1px solid #667eea;
  border-radius: 5px;
  transition: all 0.3s ease;
  display: inline-block;
}

.forgot-password-link:hover {
  background: #667eea !important;
  color: white !important;
}

/* Standard button styling to match Login/Reset buttons */
.standard-button {
  padding: 10px !important;
  font-size: 1rem !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  min-width: 120px !important;
  transition: all 0.3s ease !important;
  font-family: Georgia, 'Times New Roman', Times, serif !important;
  text-align: center !important;
  display: block !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

footer {
  padding: 18px 10px 14px 10px;
  background-color: #100e2c;
  font-weight: bold;
  border-top: 2px solid #8B0000;
  text-align: center;
  color: #cbf72d;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

footer p {
  color: #abf518;
  text-align: center;
  padding: 5px 0;
  margin: 2px 0;
  font-size: 1rem;
}

footer address {
  display: block;
  font-style: normal;
  color: #f9f9f9;
  background: none;
  margin: 6px 0 8px 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ================= Logos + Heading ================= */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: nowrap;
  margin-bottom: 18px;
}

.logo-left,
.logo-right {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(31,38,135,0.10);
  border: 1.5px solid #e3e8f0;
}

.login-heading {
  flex: 1;
  text-align: center;
  font-size: 1.35rem;
  color: #1a2236;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 8px;
}

/* ================= Media Queries ================= */

/* Unified Responsive Login Form Styles */
@media (max-width: 600px) {
  form {
    padding: 14px 8px;
    font-size: 0.98rem;
    width: 99%;
    margin: 0 8px;
    max-width: 98vw;
  }
  .login-heading {
    font-size: 1.05rem;
    line-height: 1.2;
  }
  .logo-left,
  .logo-right {
    width: 38px;
    height: 38px;
  }
  .logo-container {
    gap: 6px;
    margin-bottom: 10px;
  }
  label {
    font-size: 0.98rem;
    margin-bottom: 5px;
  }
  input[type="text"],
  input[type="password"] {
    font-size: 1rem;
    padding: 14px 12px;
    margin-bottom: 16px;
    min-height: 44px;
    line-height: 1.3;
    box-sizing: border-box;
  }
  .button-group {
    gap: 8px;
    flex-direction: column;
    margin: 10px 0 0 0;
  }
  .login-btn, .reset-btn, .standard-button {
    font-size: 0.98rem !important;
    min-width: 80px !important;
    width: 100%;
    padding: 10px 0 !important;
  }
  .forgot-password-link {
    font-size: 0.85rem !important;
    padding: 6px 10px !important;
    margin-top: 8px;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  form {
    max-width: 480px;
    font-size: 1.05rem;
  }
  .login-heading {
    font-size: 1.18rem;
  }
  .logo-left,
  .logo-right {
    width: 54px;
    height: 54px;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  form {
    max-width: 540px;
  }
  .login-heading {
    font-size: 1.28rem;
  }
  .logo-left,
  .logo-right {
    width: 62px;
    height: 62px;
  }
}

@media (min-width: 1201px) {
  form {
    max-width: 700px;
    width: 98%;
  }
  .login-heading {
    font-size: 1.35rem;
  }
  .logo-left,
  .logo-right {
    width: 70px;
    height: 70px;
  }
  label {
    font-size: 1.15rem;
  }
}

/* Highlight for search matches (tools, categories, headings) */
.search-highlight {
  background: #ffe066 !important;
  color: #222 !important;
  border-radius: 6px;
  padding: 2px 6px;
  transition: background 0.2s;
  box-shadow: 0 0 0 2px #ffd700;
}

/* Responsive adjustments for Google Login Button */
@media (max-width: 600px) {
  .google-login-btn {
    font-size: 1rem;
    padding: 12px 8px;
    min-width: 90px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .google-login-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 16px;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .google-login-btn {
    font-size: 1.05rem;
    padding: 14px 14px;
    min-width: 120px;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .google-login-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 18px;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .google-login-btn {
    font-size: 1.08rem;
    padding: 16px 18px;
    min-width: 140px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .google-login-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
  }
}

@media (min-width: 1201px) {
  .google-login-btn {
    font-size: 1.12rem;
    padding: 18px 22px;
    min-width: 160px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .google-login-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 22px;
  }

/* Google/Gmail OAuth Button Modern Hover */
.google-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #222;
  border: 1.5px solid #e3e8f0;
  border-radius: 8px;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 10px 18px;
  box-shadow: 0 2px 8px rgba(31,38,135,0.08);
  cursor: pointer;
  transition: box-shadow 0.2s, border 0.2s, color 0.2s, text-decoration 0.2s;
  outline: none;
}
.google-login-btn {
  /* ...existing styles... */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-login-btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 20px;
}
.google-login-btn:hover, .google-login-btn:focus {
  text-decoration: underline;
  color: #0056b3;
  border: 1.5px solid #bfc9d9;
  box-shadow: 0 4px 16px rgba(0,123,255,0.13);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


}