* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; font-family: Arial, sans-serif; background: lightgray; }

body {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* stick to top */
  padding-top: 20px;       /* optional spacing from top */
}


/* Container */
.container {
  width: 90%;
  max-width: 700px;
  min-width: 320px;
  background: white;
  border: 2px solid #013220;
  position: relative;
  padding-top: 120px; /* space for banner */
  padding-bottom: 40px; /* space for footer links */
}

/* Banner */
.banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #4CAF50;
  border-bottom: 2px solid #013220;
}

.banner img {
  max-width: 80%;
  max-height: 100%;
  object-fit: contain;
}

.banner-text {
  color: green;
}

.login-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* stick content to top */
  width: 100%;
  padding: 20px;
}


/* Branches */
.branches {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  gap: 20px;
  flex-wrap: wrap;
}

.login-branch, .signup-branch, .forgot-branch {
  padding: 5px 15px;
  min-width: 120px;
  height: 35px;
  background-color: #fff;
  color: #013220;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid black;
  text-decoration: none;
  cursor: pointer;
}

.login-branch:hover,
.signup-branch:hover,
.forgot-branch:hover {
  background-color: #013220;
  color: #fff;
}

.credentials-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;

  margin-top: 20px;
  margin-bottom: 10px;
  padding: 40px;

  background-color: #f5f5f5;
  border: 1px solid #013220;
  gap: 10px;

  /* ✅ allow natural height */
  height: auto;
  max-height: none;
  overflow: visible;
}


/* Credential rows */
.credential-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.credential-row label {
  width: 90px;
  text-align: right;
  color: #013220;
}

.credential-input {
  flex: 1;
  padding: 8px;
  font-size: 1rem;
  border: 1px solid #222;
}

.submit-btn {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  font-size: 1rem;
  background-color: #013220;
  color: white;
  border: none;
  cursor: pointer;
}

.submit-btn:hover {
  background-color: #006633;
}

/* Login text below credentials */
.login-text {
  margin-top: 10px;
  text-align: center;
  font-size: 1.1rem;
  font-style: italic;
  color: #001a0f;
}

/* Footer links at bottom */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.link-item {
  cursor: pointer;
  font-size: 1rem;
  margin-top: 20px;
  text-align: center;
  color: black;
  text-decoration: underline;
  padding: 5px 10px;
}

.link-item:hover {
  color: #4CAF50;  /* light green on hover */
}

/* Page footer */
.footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
html,
body,
* {
  scrollbar-width: thin;
  scrollbar-color: #4CAF50 #d9f7c6;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: #d9f7c6;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background-color: #4CAF50;
  border-radius: 10px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background-color: #2e7d32;
}

