/* Page baseline */
body {
  margin: 0;
  background: #1b1b1b; /* shows around the image on ultra-wide screens */
  font-family: Arial, sans-serif;
}

/* The “canvas” that holds the background image and all invisible controls */
.login-canvas {
  position: relative;

  /* Your background image is 2560 x 1301 */
  width: min(2560px, 100vw);
  aspect-ratio: 2560 / 1301;

  margin: 0 auto;

  background-image: url("../img/login.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Flash messages */
.flash {
  position: absolute;
  left: 50%;
  top: 2%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.90);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  max-width: 92%;
}

/* Invisible buttons (click zones) */
.hit {
  position: absolute;
  cursor: pointer;

  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;

  /* keep truly invisible */
  color: transparent;
}

/* Keep keyboard usability (optional) */
.hit:focus-visible {
  outline: 2px dashed rgba(255,255,255,0.9);
  outline-offset: 2px;
}

/* Invisible-looking fields that sit exactly over the drawn input slots */
.field {
  position: absolute;
  border: none;
  background: rgb(240,240,240);
  outline: none;


  padding: 0 6px;
  margin: 0;
  box-sizing: border-box;
  border-radius: 2px;
  /* text appearance */
  font-size: 18px;
  color: #0a1a3a;
  caret-color: #0a1a3a;
}

.field::placeholder {
  color: rgba(10, 26, 58, 0.45);
}

/* Screen-reader-only text helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Optional: on very small screens reduce font so it stays inside the slots */
@media (max-width: 520px) {
  .field { font-size: 14px; }
}

/* ✅ Remove Chrome/Edge autofill blue background */
input.field:-webkit-autofill,
input.field:-webkit-autofill:hover,
input.field:-webkit-autofill:focus,
input.field:-webkit-autofill:active{
  -webkit-box-shadow: 0 0 0 1000px rgb(240,240,240) inset !important;
  box-shadow: 0 0 0 1000px rgb(240,240,240) inset !important;
  -webkit-text-fill-color: #0a1a3a !important;
  caret-color: #0a1a3a !important;
}

/* Debug outlines (turn ON while adjusting, then OFF) */
:root { --debug: 0; }

.hit { outline: calc(var(--debug) * 2px) dashed rgba(255,0,0,0.85); }
.field { outline: calc(var(--debug) * 2px) dashed rgba(0,0,255,0.85); }

body{
  margin: 0;
  background: rgb(79, 113, 70);
}