body.login-page {
  background-color: var(--bg);
}

.center-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.login-border {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  color: black;
  border: 1px solid grey;
  border-radius: 25px;
  padding: 40px;
  width: 400px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
}

.form p {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
}

.form label {
  font-weight: bold;
  font-size: 14px;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="password"] {
  border-radius: 15px;
  padding: 12px 20px;
  font-size: 14px;
  border: 1px solid #ccc;
  outline: none;
  box-sizing: border-box;
  width: 100%;
}

.form .errorlist {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: red;
  list-style: none;
  padding: 0;
  margin: 5px 0 0 0;
  font-size: 12px;
}

.submit-button {
  width: 100%;
  border-radius: 15px;
  height: 40px;
  background-color: white;
  border: 1px solid #ccc;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
}

.submit-button:hover {
  background-color: grey;
  color: white;
}

.login-border a {
  color: #5d66e5;
  font-size: 10px;
}

.forgot:hover {
  color: #1A0DAB;
}

.register_link {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.register_link p {
  display: inline;
}

.register_link a:link,
.register_link a:visited {
  font-size: 16px;
  color: blue;
}

.register_link a:hover {
  font-size: 16px;
  color: lightblue;
}

.forgot {
  display: flex;
  align-items: center;
}

.reset-submit-button,
.request-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border-radius: 15px;
  height: 40px;
  background-color: white;
  border: 1px solid #ccc;
  cursor: pointer;
}

.reset-submit-button {
  margin-top: 5%;
}

.request-button {
  margin-bottom: 5%;
}

#back-to-login {
  font-size: 14px;
}

#toastBox {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: fixed;
  top: 12%;
  right: 42%;
  z-index: 1000;
}

.toast {
  display: flex;
  align-items: center;
  position: relative;
  background: #fff;
  padding: 15px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-left: 4px solid;
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
  min-width: 300px;
  max-width: 400px;
}

.toast.success {
  color: #155724;
  background-color: #d4edda;
  border-left-color: #28a745;
}

.toast.error {
  color: #721c24;
  background-color: #f8d7da;
  border-left-color: #dc3545;
}

.toast.invalid {
  color: #856404;
  background-color: #fff3cd;
  border-left-color: #ffc107;
}

.toast::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  border-radius: 0 0 6px 6px;
  animation: progressBar 5s linear forwards;
}

.toast.success::after { background: #28a745; }
.toast.error::after { background: #dc3545; }
.toast.invalid::after { background: #ffc107; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes progressBar {
  100% { width: 0; }
}

.messages { display: none; }

.reset_page_link {
  display: flex;
  justify-content: center;
  width: 100%;
}