/* 1. Import fonts */

/* 2. Base reset and sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 112.5%; /* bump base size (1rem ≈ 18px) */
}
body {
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f1c2c, #753a88);
  
  font-family: 'Open Sans', sans-serif;
  color: #333;
}

body {
  /* fallback */
  background-color: #0f0c29;

  /* new horizontal gradient */
  background-image: linear-gradient(
    90deg,        /* left → right */
    #0f0c29,      /* very dark navy */
    #302b63       /* deep indigo */
  );
}
    

/* 3. Container */
.login-container {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  padding: 3rem;
  width: 90%;
  max-width: 500px; /* increased width */
}

/* 4. Heading */
.login-container h2 {
  font-family: 'Fjalla One', sans-serif;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2.5rem; /* bigger */
  color: #1f1c2c;
}

/* 5. Form groups */
.form-group {
  margin-bottom: 1.25rem; /* more space */
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 1.4rem; /* bigger */
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  font-size: 1.25rem; /* bigger */
  transition: border-color 0.2s;
}
.form-group input:focus {
  border-color: rgba(20, 184, 166, 0.8);
  outline: none;
}

/* 6. Buttons */
/* Login button (inside form) */
.login-container form .btn {
  display: block;
  width: 100%;
  padding: 0.85rem;
  font-size: 1.35rem; /* bigger */
  font-weight: 600;
  text-align: center;
  color: #fff;
  background: #14B8A6;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(117, 58, 136, 0.4);
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}
.login-container form .btn:hover {
  background: #0d9488;
  box-shadow: 0 6px 16px rgba(117, 58, 136, 0.5);
}
.login-container form .btn:active {
  background: #0f766e;
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.2);
}

/* Extra spacing before FAQ button */
.login-container form + button {
  margin-top: 1.75rem; /* more space */
}

/* FAQ button (outside form) - muted style */
.login-container > button {
  display: block;
  width: 100%;
  padding: 0.65rem;
  font-size: 1.15rem;
  font-weight: 500;
  text-align: center;
  color: #777;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background 0.2s;
}
.login-container > button:hover {
  background: #f2f2f2;
}

/* 7. Error messages */
.error {
  display: block;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  color: #c0392b;
  font-size: 1rem; /* bigger */
}

/* 8. Footer */
.footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem; /* a bit bigger */
  color: #aaa;
}

/* 9. Media queries */
@media (min-width: 600px) {
  .login-container { padding: 3.5rem; }
  .login-container h2 { font-size: 3rem; }
  .form-group input { font-size: 1.35rem; }
  .login-container form .btn { font-size: 1.5rem; }
  .login-container > button { font-size: 1.25rem; }
}


/* Tagline / prompt above the form */
.form-intro {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 400;
  color: #555;
  text-align: center;
  line-height: 1.4;
}

@media (min-width: 600px) {
  .form-intro {
    font-size: 1.3rem;
    margin-bottom: 2rem;
  }
}

/* FAQ link (muted secondary button) */
.login-container .btn-secondary {
  display: block;
  width: 100%;
  margin-top: 1.5rem;    /* extra spacing below the primary button */
  padding: 0.75rem;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  color: #777;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background 0.2s;
}
.login-container .btn-secondary:hover {
  background: #f5f5f5;
}

/* default for all pages with header */
body {
  padding-top: 4rem;
}

/* disable it on pages that set .no-header */
body.no-header {
  padding-top: 0;
}

.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: clamp(0.5rem, 2vw, 1rem) clamp(1rem, 5vw, 1.5rem);
  
  /* subtle dark overlay for contrast */
  background: rgba(31,28,44,0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow: none;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-family: 'Fjalla One', sans-serif;
  font-size: clamp(1rem, 1vw, 2rem);
  font-weight: 100;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  margin: 0;
}

/* Ensure page content sits below header */
body {
  padding-top: clamp(3rem, 8vw, 4rem);
}

/* On very small screens, slightly reduce title size */
@media (max-width: 360px) {
  .site-title {
    font-size: 1.25rem;
    letter-spacing: 0.02em;
  }
}



/* Ghost‐style logout button (mobile-first) */
.btn-secondary.logout {
  /* flex for perfect centering of text */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* touch-friendly size */
  min-height: 2.5rem;               /* at least 40px tall */
  padding: 0.75rem 1.25rem;         /* generous hit area */

  /* readable typography */
  font-size: 0.875rem;              /* ~14px */
  line-height: 1.2;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;

  /* ghost look */
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 0.375rem;          /* pill-ish */
  
  /* smooth transitions */
  transition: 
    background 0.2s ease, 
    border-color 0.2s ease, 
    color 0.2s ease, 
    transform 0.1s ease;
  cursor: pointer;
  letter-spacing: 0.15em;
}

/* Hover state */
.btn-secondary.logout:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,1);
}

/* Active (pressed) state */
.btn-secondary.logout:active {
  transform: scale(0.97);
}

/* Keyboard focus outline */
.btn-secondary.logout:focus-visible {
  outline: 3px solid rgba(255,255,255,0.9);
  outline-offset: 2px;
}

/* Full-width on very narrow screens */
@media (max-width: 480px) {
  .btn-secondary.logout {
    display: flex;                /* block-level flex */
    width: 100%;
    margin-top: 1rem;
  }
}

/* ensure logout link isn’t underlined */
.btn-secondary.logout,
.btn-secondary.logout:link,
.btn-secondary.logout:visited {
  text-decoration: none;
}