@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');
*{
  padding: 0;
  margin: 0;
  font-family: 'Open Sans', sans-serif;
}
h2{
  color: #fe2c55;
  margin: 20px;
}
body{
  background: #ffffff;
  text-align: center;
}

#usernameerror, #passworderror{
  color: orangered;
  display: inline-flex;
  width: 320px;
  margin: auto;
  
}
#incorrectlogin:not(:empty), #loginattempt:not(:empty){
  justify-content: center;
  display: inline-flex;
  width: 320px;
  margin: auto;
}
#incorrectlogin:empty + .conditional-break {
  display: none;
}
#text, #password {
  border: outset;
  border-color: #f5f6f7;
  margin: 10px;
  width: 320px;
  height: 45px;
  border-radius: 5px;
  outline: none; 
  background: #f5f6f7;
  font-family: Raleway;
  border: 1.5px solid #aaaaaa;
}

#text:focus, #password:focus {
  outline: solid #fe2c55;
  border-radius: 5px;
}
#check{
  margin: 10px;
  margin-left: -165px;
}

#login {
  margin: 20px;
  width: 320px;
  height: 45px;
  background-color: #fe2c55;
  font-weight: bold;
  border: none;
  color: #ffffff;
  outline: none;
  font-size: 20px;
  border-radius: 5px;
  cursor: pointer;
}

#forgot{
  text-decoration: none;
  margin-left: 150px;
  
}
#account{
  text-decoration: none;
}

body.body-dark-mode {
  background: #242526;
  color: #ffffff;
}

.body-dark-mode #usernameerror,
.body-dark-mode #passworderror {
  color: #ffcccb;
}

.body-dark-mode #text, 
.body-dark-mode #password {
  background: #2a2b2e;
  color: #ffffff;
  border-color: #555;
}

.body-dark-mode #text::placeholder,
.body-dark-mode #password::placeholder {
  color: #aaa; /* or another preferred color */
  opacity: 1; /* Ensure full opacity if needed */
}

.body-dark-mode a {
  color: #5aa7ff;
}