/* styles.css */

/* Root variables for easy theming */
:root {
  --header-bg: #1f3e4d;
  --header-color: #fff;
  --nav-hover-bg: #4c626d;
  --text-navy: #4c626d;
  --main-bg: url('../img/Map_Subzone_Calico.png') no-repeat center/cover;
  --main-bg-fixed: url('../img/Map_Subzone_Calico.png') no-repeat center; /* no cover */
  --main-color: #ffffff;
  --footer-bg: #222;
  --footer-color: #ddd;
  --font-family: 'Segoe UI', Tahoma, sans-serif;
  --logo-bluebk_wt_med: url('../img/TC_logo_bluebk_wt_med.png') no-repeat center/cover;
  --logo-bluebk_wt_sm: url('../img/TC_logo_bluebk_wt_sm.png') no-repeat center/cover;
}

.header-separator {
  position: sticky;
  top: 90px;          /* match your header’s height */
  margin: 0;          /* flush to edges */
  border: none;
  height: 1px;
  background: #ccc;
  z-index: 999;       /* just under header (which is z-index:1000) */
}

/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: var(--font-family);
  color: var(--main-color);
  margin: 0;
  padding: 0;
}

/* Fixed header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 90px;
  background: var(--header-bg);
  color: var(--header-color);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem 2rem;
  z-index: 10;
}

.site-header .logo:first-of-type {
  flex: none;
  /* TC logo on the left */ 
}

/* absolutely place the FastAssessor logo */
.site-header .logo-assessor {
  position: absolute;
  top: 0;                    /* flush to the very top */
  right: 0;                  /* flush to the very right */
  padding: 0;           /* optional breathing room */
  Margin: 0;
  flex: 0 0 auto;
  z-index: 20;               /* above other header elements */
}

.site-header .logo-assessor img {
  display: block;
  height: 40px;              /* adjust to taste */
  max-width: 100%;
  width: auto;
  padding: 2px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  width: 300px;
}

.site-nav ul {
  display: flex;
  list-style: none;
}

.site-nav a {
  color: var(--header-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: background 0.3s;
}

.site-nav a:hover {
  background: var(--nav-hover-bg);
  border-radius: 4px;
}

/* Main section with background image */
.site-main .hero {
  position: relative;
  margin-top: 90px;
  min-height: 82.1vh;
  background: var(--main-bg-fixed);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.site-main .hero p {
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  display: inline-block;
  font-size: 1.25rem;
  max-width: 600px;}

.site-main .hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Position the QGIS logo at bottom-right */
.site-main .hero .logo-qgis {
  position: absolute;
  bottom: 1rem;     /* distance from the bottom of the hero */
  right: 1rem;      /* distance from the right edge */
  text-align: left;
}

.site-main .hero .logo-qgis img {
  display: block;
  height: 42px;     /* adjust to taste */
  max-width: 140px;
  width: auto;
  padding: 1px;     /* inner padding if desired */
}

.logo-qgis .powered {
  font-size: 0.75rem;         /* adjust as needed */
  color: #a8d3a7;                /* or another contrast color */
  font-weight: bold;
  margin-bottom: 0.05rem;     /* space between text and logo */
}

/* Authentication Card */
/* 3. Centered form “card” */
.auth-card {
  max-width: 400px;
  max-height: 500px;
  position: relative;  /* establish a containing block */
  margin: 4rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 4. Logo at top */
.auth-card img.logo {
  display: block;
  margin: 0 auto 1rem;
  width: 300px;
}

/* 5. Form fields */
.auth-card form input[type="text"],
.auth-card form input[type="password"],
.auth-card form input[type="email"] {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1.25rem;
}

/* 6. Submit button */
.auth-card form button {
  width: 50%;
  padding: 0.75rem;
  background-color: #1f3e4d;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}
.auth-card form button:hover {
  background-color: #4c626d;
}

.auth-card .text {
  font-family: var(--font-family);
  color: var(--text-navy);
  margin: 0;
  padding: 0;
}

.auth-card .forgot-link {
  position: absolute;
  bottom: 1rem;  /* adjust gap from bottom edge */
  right: 1rem;   /* adjust gap from right edge */
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-color);
  text-align: center;
  padding: 1rem 0;
}

/*  Reset absolutely everything that might be styling it */
.plain-link {
  all: unset;                    /* strip all inherited UA + author styles */
  display: inline;              
  font: inherit;                 /* pick up page font/size */
  color: #1f3e4d;                /* your desired link color */
  text-decoration: underline;    
  background: transparent !important;   /* kill any grey box */
  padding: 0 !important;                /* kill any padding */
  margin: 0 !important;                 /* kill any margin */
  cursor: pointer;
}
.plain-link:hover {
  text-decoration: none;
}
