/* Prevent "JavaScript required" flash */
#noScript {
  display: none !important;
}

.blockLabel {
  text-align: left !important;
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}


/* Title and Heading Fix */
#openingMessage {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #003865;
  text-align: center;
}

/*
#userNameArea {
  display: none;
}
*/
#oldPasswordArea {
  text-align: left;
}
#newPasswordArea {
  text-align: left;
}
#confirmNewPasswordArea {
  text-align: left;
}

.customLabel {
  font-weight: normal;
}

/* Ensure all input fields are cleanly spaced */
input[type="email"],
input[type="text"],
input[type="password"] {
  margin-bottom: 15px;
}

/* Extra polish on submit button */
#submitButton {
  margin-top: 10px;
}


/* Page background */
body {
  background-color: #F5F5F5;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

/* Centered login box */
#content {
  max-width: 400px;
  margin: 100px auto;
  background: #FFFFFF;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Logo */
#content::before {
  content: "";
  display: block;
  background-image: url("/adfs/portal/custom/logo.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  height: 80px; /* Adjust based on logo aspect ratio */
  margin-bottom: 20px;
}

/* Input fields */
input[type="email"],
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  box-sizing: border-box;
  border: 1px solid #CCC;
  border-radius: 6px;
}

/* Info icon styling */
.info-icon {
  display: inline-block;
  margin-left: 6px;
  color: #00A3E0;
  font-weight: bold;
  cursor: pointer;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  text-align: center;
  line-height: 16px;
  font-size: 12px;
  background-color: #e0f6fd;
  border: 1px solid #00A3E0;
}

.info-icon:hover::after {
  content: "Your username is";
  display: block;
  position: absolute;
  background: #ffffff;
  color: #333;
  border: 1px solid #ccc;
  padding: 8px;
  font-size: 0.85rem;
  width: 240px;
  z-index: 100;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Style for submit/cancel buttons */
#submitButton, #cancelButton {
  background-color: #003865;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  margin: 10px 5px 0 0;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease-in-out;
}

/* Hover and focus styles */
#submitButton:hover,
#submitButton:focus {
  background-color: #00A3E0;
}

#cancelButton {
  background-color: #cccccc;
  color: #333333;
}

#cancelButton:hover,
#cancelButton:focus {
  background-color: #999999;
}

/* Sign-in button */
button[type="submit"], .btn-primary {
  background-color: #003865;
  color: #FFFFFF;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
}

button[type="submit"]:hover, .btn-primary:hover {
  background-color: #00A3E0;
}

/* Links */
a {
  color: #00A3E0;
  text-decoration: none;
  font-size: 0.9em;
}

a:hover {
  text-decoration: underline;
}

/* Hide extra branding footer if needed */
#footer, #branding {
  display: none;
}
/* Support Footer */
body::after {
  content: "For support call 1-877-SRC-WELL";
  display: block;
  text-align: center;
  padding: 12px;
  color: #FFFFFF;
  background-color: #003865;
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
  font-size: 0.9em;
}

#error {
  background-color: #fff5f5;
  border: 1px solid #e0b4b4;
  padding: 8px 12px;
  color: #b30000;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  margin-top: 10px;
}


/* Dark Mode */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1c1c1c;
    color: #e0e0e0;
  }
  #openingMessage {
    color: #336699;
  }
  #content {
    background-color: #2a2a2a;
    color: #ffffff;
  }
  #content:before {
	    background-image: url("/adfs/portal/custom/logo-light.svg");
  }
  input[type="text"],
  input[type="password"],
  input[type="email"] {
    background-color: #3a3a3a;
    border: 1px solid #555;
    color: #fff;
  }

  button[type="submit"], .btn-primary {
    background-color: #00A3E0;
    color: #000;
  }

  button[type="submit"]:hover {
    background-color: #007BA7;
  }

  a {
    color: #00A3E0;
  }

  body::after {
    background-color: #1c1c1c;
    color: #ccc;
  }
}
