/* ====== Base reset & sizing ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ====== Page layout ====== */
body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #f8f9fa;
  color: #111;
}

/* ====== Preloader ====== */
.preloader {
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  font-size: 24px;
  color: white;
}

/* ====== Sticky banner/header ====== */
.sticky-banner {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  color: white;
  text-align: center;
  z-index: 1000;
  width: 100%;
}

/* ====== Top info row ====== */
.column {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 20px;
  justify-content: space-evenly;
  flex-wrap: wrap;          /* allow wrap on small screens */
  text-align: center;
  color: #025e8c;
  gap: 10px;
}
.text {
  margin: 10px 0;
  font-size: 20px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
}

/* ====== Main ====== */
main {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-grow: 1;
  padding: 8px;             /* small gutter to avoid edge-touch on tiny phones */
}

/* ====== Form card ====== */
.form-container {
  background-color: #a20e37;
  margin: 10px auto 24px;
  border-radius: 10px;
  padding: 24px;
  width: 100%;              /* FIX: was 102% (overflow) */
  max-width: 380px;         /* cap width on desktop */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ====== Form ====== */
.user-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Input row with icon */
.input-container {
  position: relative;
  width: 100%;              /* FIX: was fit-content (caused overflow) */
  display: block;
}

/* Icon inside input */
.input-container i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #d7577b;
  pointer-events: none;
}

/* Text inputs */
.user-form input,
.input-container input {
  padding: 10px 12px 10px 35px; /* space for icon on the left */
  border: none;
  border-radius: 5px;
  width: 100%;               /* FIX: was 120% (overflow) */
  font-size: 15px;
  font-weight: 600;
  font-family: system-ui, Arial, sans-serif;
  background: #fff;
  outline: none;
}

.user-form input:focus,
.input-container input:focus {
  outline: 2px solid #f7a1bd;       /* subtle focus ring */
  outline-offset: 1px;
}

/* Submit button */
.user-form button {
  padding: 22px;
  border: none;
  border-radius: 8px;
  background-color: #f0b542;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.05s ease;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  width: 100%;                        /* keep aligned with inputs */
}

.user-form button:hover {
  background-color: #e0a536;
}
.user-form button:active {
  transform: translateY(1px);
}

/* ====== Banner / hero images ====== */
.banner-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  margin: auto;
}

.banner-slide {
  display: none;
  width: 100%;
}
.banner-slide.active {
  display: block;
}
.banner-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 10px 10px;
}

/* ====== Footer ====== */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  width: 100%;
}

/* ====== Small-screen tweaks ====== */
@media (max-width: 360px) {
  .form-container { padding: 16px; }
  .text { font-size: 18px; }
}

/* ====== Larger-screen polish ====== */
@media (min-width: 768px) {
  .form-container { max-width: 420px; }
}
