#signin {
  background-color: #ffffff;
  padding: 1.5rem 3rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

#sectionTitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0;
  gap: 0;
}

#signin h1 {
  margin: 0;
  padding: 0;
  color: #073e87;
  font-weight: bold;
  font-size: 2.5rem;
}

#signin p {
  color: #858f8e;
  margin: 0.5rem 0;
}

#signin hr {
  width: 10%;
  background-color: #044c92;
  border: none;
  height: 3px;
  border-radius: 360px;
}

#formSignin {
  display: flex;
  flex-direction: column;
}

#signin label {
  font-weight: bold;
  text-align: left;
  color: #1c1e21;
  padding: 0rem;
  margin: 0.85rem 0 0.2rem 0;
}
#signin input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid #d0d0d0;
  border-radius: 6px;
  box-sizing: border-box;
  background-color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
    background-color 0.25s ease;
  margin: 0;
}

#signin input:hover {
  border-color: #044c92;
}

#signin input:focus {
  border-color: #044c92;
  background-color: #ecf5ff;
  outline: none;
}

#formSignin #buttonSubmit {
  background-color: #044c92;
  color: #fff;
  font-weight: bold;
  margin-top: 1.1rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  opacity: 1;
  transform: scale(0.98);
  transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

#formSignin #buttonSubmit:enabled:hover {
  background-color: #073e87;
  transform: scale(1);
}

#formSignin #buttonSubmit:disabled {
  opacity: 0.5;
  transform: scale(0.95);
  cursor: not-allowed;
}

/*==================================================*/

#preferences {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  padding: 0 10px 0 10px;
}

#preferences a {
  color: #044c92;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

#preferences a:hover {
  text-decoration: underline;
}

#preferences .remember {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #1c1e21;
  cursor: pointer;
}

#preferences .remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  transition: 0.15s ease;
}

#preferences .remember input[type="checkbox"]:active {
  transform: scale(0.9);
}

/*==================================================*/

p#loginRedirect {
  margin-top: 1rem;
  margin-bottom: 0.1rem;
}
p#loginRedirect a {
  color: #044c92;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

p#loginRedirect a:hover {
  text-decoration: underline;
}

/*==================================================*/

.inputError {
  color: red;
  font-size: 0.9em;
  display: none;
  margin-bottom: 0;
}
/*==================================================*/

.togglePasswordContainer {
  position: relative;
  display: inline-block;
  width: 100%;
}

.togglePasswordContainer input[type="password"],
.togglePasswordContainer input[type="text"] {
  width: 100%;
  padding-right: 40px;
  box-sizing: border-box;
}

.togglePasswordVisibility {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.togglePasswordVisibility img {
  width: 25px;
  height: 25px;
}
