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

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

body {
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1.1;
  text-shadow: 0.5px 0.5px 0 #ccc;
  font-family: sans-serif;
  letter-spacing: 0.5px;
}

/* mobile-create.css */

/* Apply only to small devices (phones) */
@media only screen and (max-width: 480px) {

  /* Reduce size of credential input boxes */
  .credential-input {
    width: 90%;       /* smaller width for mobile */
    padding: 6px;     /* reduce padding */
    font-size: 0.85em; /* slightly smaller text */
    margin-top: 4px;  /* smaller margin between label and input */
    box-sizing: border-box;
  }

  /* Adjust create account box width for mobile */
  .login-box {
    width: 95%;       /* nearly full screen on mobile */
    padding: 15px;    /* less padding for small screens */
  }

  /* Reduce size of buttons */
  .submit-btn, .login-branch, .signup-branch {
    padding: 6px 12px;
    font-size: 0.85em;
  }


}

@media only screen and (max-width: 480px) {
  .container {
    width: 95%;          /* nearly full width on small screens */
    padding: 10px;       /* reduce padding for mobile */
    margin: 0 auto;      /* center horizontally */
  }
}
@media only screen and (max-width: 480px) {

  .terms-row label {
    display: block;       /* make label a block so it wraps */
    white-space: normal;  /* allow wrapping */
    margin-left: 0;       /* remove extra spacing if needed */
    font-size: 0.85em;    /* slightly smaller text for mobile */
    line-height: 1.3;     /* better spacing between lines */
  }

  .terms-row input[type="checkbox"] {
    margin-bottom: 5px;   /* add some space between checkbox and text */
  }
  .footer-links {
    display: none !important;
  }

}

/* Container */
.container {
  z-index: 999;
  width: 600px;
  max-width: 900px;
  min-width: 320px;
  background: white;
  border: 2px solid #013220;
  position: relative;
  padding-top: 120px; /* space for banner */
  padding-bottom: 10px; /* 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;
}

/* Login box */
.login-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* spreads top, middle, bottom */
  width: 100%;
  height: calc(100% - 140px); /* fills container minus banner */
  position: relative;
  padding: 20px;
}

/* Branches */
.branches {
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
  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 */
.credentials-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  max-width: 400px;
  margin-top: 20px;
  background-color: #f5f5f5;
  gap: 10px;
  margin-bottom: 5px;
  padding: 20px;
}

/* 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: 5px;
  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: 5px;
  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: 0.9rem;
  margin-top: 20px;
  text-align: center;
  color: black;
  text-decoration: underline;
  padding: 5px 5px;
}

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

.terms-row {
  display: flex;
  align-items: center;
  gap: 8px;             /* space between checkbox and text */
  white-space: nowrap;   /* keeps everything on one line */
  margin: 10px 0;
}

.terms-row label {
  margin: 0;
  font-size: 0.7em;
}

.terms-row a {
  text-decoration: underline;
  color: #013220;
}

.terms-row a:hover {
  color: #006633;
}


/* 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;
}

