.login-form {
  max-width: 400px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 6px;
}

.login-form {
  margin-bottom: 40px; /* default (when no message) */
}

.login-form:has(+ .login-message) {
  margin-bottom: 10px; /* slightly tighter when message follows */
}

.login-form .form-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.login-form label {
  width: 120px;        /* fixed width so labels line up */
  text-align: left;
  margin-right: 10px;
  flex-shrink: 0;      /* prevent label from shrinking */
}

.login-form input {
  flex-grow: 1;        /* input fills remaining space */
  padding: 6px 8px;
  box-sizing: border-box;
}

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 15px; /* add some spacing above the links */
  padding: 0 5px;   /* optional horizontal padding */
}

.login-message {
  max-width: 400px;
  margin: 15px auto;
  padding: 12px 15px;
  background: #f0f6ff;      /* light blue background */
  border: 1px solid #b3d4fc; /* soft blue border */
  border-radius: 6px;
  color: #004085;           /* dark blue text */
  font-size: 0.95em;
  text-align: center;       /* center align for short notices */
  line-height: 1.4;
}
