#login {
  width: 450px;
  padding: 5% 0 0;
  margin: auto;
}

/* Replace WordPress logo with custom SVG */
.login h1 a {
  background-image: url("../images/logo.svg") !important;
  background-size: contain !important;
  width: 300px; /* Increase width */
  height: 130px; /* Increase height */
  text-indent: -9999px;
  overflow: hidden;
  display: block;
  margin: 0 auto 20px;
}

/* Style the login button */
.wp-core-ui .button-primary {
  background-color: #9ddf0f;
  border-color: #8cc80c;
  color: #000;
  text-shadow: none;
  box-shadow: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border-radius: 50px;
  padding: 0.25rem 2.5rem !important;
}

.wp-core-ui .button-primary:hover {
  background-color: #85cc0e;
  border-color: #7db90d;
  color: #000;
}

.login .message,
.login .notice,
.login .success {
  border-left: 4px solid #85cc0e;
  padding: 12px;
  margin-left: 0;
  margin-bottom: 20px;
  background-color: #fff;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
  word-wrap: break-word;
}

/* Style input fields */
.login form input[type="text"],
.login form input[type="password"],
.login form input[type="email"] {
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 10px;
  font-size: 16px;
  box-shadow: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login form input:focus {
  border-color: #9ddf0f;
  box-shadow: 0 0 0 2px rgba(157, 223, 15, 0.3);
  outline: none;
}

/* Optional: Style the login form container */
.login form {
  border-radius: 8px;
  padding: 26px 24px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Style for "Glömt ditt lösenord?" and "Gå till WebbExpress" links */
/* Remove default p tag behavior */
#nav,
#backtoblog {
  display: inline-block;
  margin: 0;
}

.login #nav,
.login #backtoblog {
  text-align: center;
  margin-top: 0;
}

/* Wrapper for both buttons */
.webbexpress-login-links {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Make buttons look good */
.webbexpress-login-links a {
  display: inline-block;
  background-color: #fff;
  color: #222;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid #ccc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping */
  flex: 1 1 auto; /* Allow growing/shrinking */
  text-align: center;
  min-width: 160px; /* Optional: enforce a decent minimum size */
}

.webbexpress-login-links a:hover {
  background-color: #f4f4f4;
  border-color: #9ddf0f;
  color: #000;
}

/* Fix <p> tags inside wrapper */
.webbexpress-login-links p {
  margin: 0;
  display: inline-block;
}
