/* Buttons */

input {
  font-family: Roboto, Arial, sans-serif;
  font-size: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 2.75rem;
}

input[type="submit"] {
  background-color: #555;
  color: #fff;
  border: 2px solid #555;
  cursor: pointer;
  padding: 0.625rem 1.25rem;
  margin: 2.5rem 0 0 0;
  width: 100%;
  border-radius: 4px;
}

input[type="submit"]:hover {
  border-color: #777;
}

/* Input */

/* Page wrapper for login/special/welcome content */
.auth-wrap {
  max-width: 25rem;
  width: 100%;
  margin: 0 auto;
}

.auth-wrap form {
  width: 100%;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  background-color: transparent;
  color: #fff;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 0.625rem;
  margin: 0.625rem 0;
}

input[type="text"]:hover,
input[type="password"]:hover {
  border-color: #777;
}

/* Autofill Fix */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
  -webkit-box-shadow: 0 0 0px 1000px #0f0f0f inset !important;
  background-color: #0f0f0f !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Contact */

.login-help {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  margin: 2.5rem 0 0 0;
}

.login-help::before,
.login-help::after {
  content: "";
  flex: 1 1 0;
  height: 2px;
  background-color: #555;
}

.login-help span {
  white-space: nowrap;
}

div.contact {
  display: block;
  width: 100%;
  padding: 1rem 0 0 0;
  text-align: center;
}

.contact a {
  text-decoration: none;
  color: #555;
}

.contact a:hover {
  color: #777;
  text-decoration: underline;
}

.error-message {
  margin-bottom: 0.625rem; /* Space above the error message */
  text-align: center; /* Center align if you want */
}

/* Keep spacing consistent when an error message appears above the button */
.error-message + input[type="submit"] {
  margin-top: 0.625rem; /* reduce top margin when preceded by error text */
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Page-specific: add 16px padding to the shared container on login page */
body.login-page .container {
  padding-inline: 1rem;
}

/* Welcome page */
.welcome-wrap {
  max-width: 30rem;
  margin: 0 auto;
  text-align: center;
}
.welcome-title {
  font-size: 1.875rem;
  margin: 0 0 1.5rem;
  color: #fff;
  text-align: center;
}
.welcome-title--compact {
  margin-bottom: 0.625rem;
}
.welcome-subtitle {
  font-size: 1rem;
  margin: 0 0 1.5rem;
  text-align: center;
}
.welcome-body {
  margin: 0 0 0.625rem;
  line-height: 1.5;
}
.welcome-heading {
  color: #fff;
}
.welcome-note {
  margin: 0 0 2.25rem;
}
.welcome-emphasis {
  color: #fff;
  margin: 0 0 0.625rem;
}
.welcome-actions {
  margin-top: 1rem;
}

/* Fallback: target the final emphasis paragraph if still inline */
.welcome-wrap > p:last-of-type {
  margin: 0 0 3rem;
  color: #fff;
}

/* Welcome signature image */
.welcome-signature {
  display: block;
  margin: 0 auto;
  height: auto;
  max-height: 10rem;
  width: auto;
}
