@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400&display=swap");

body.login {
  height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  font-family: "IBM Plex Sans", sans-serif;
}

#login-background {
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
}

#login {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #181715;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.login-logo {
  width: 100%;
  max-width: 320px;
  margin-bottom: 20px;
}

.login-logo svg {
  width: 100%;
  height: auto;
}

.login h1 {
  display: none;
}

#loginform {
  margin-top: 2rem;
  background: #3a3a3a;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 320px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px;
}

button.wp-hide-pw {
  display: none !important;
}

.input {
  width: 100%;
  width: -webkit-fill-available;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: "IBM Plex Sans", sans-serif;
}

#wp-submit {
  width: 100%;
  padding: 10px;
  background-color: #78f4a2 !important;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: "IBM Plex Sans", sans-serif;
  color: black;
}

#wp-submit:hover {
  background-color: #78f4a2 !important;
}

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

.login form .forgetmenot label {
  margin-bottom: 2px;
  padding-left: 0.5rem;
}

.login label {
  font-size: 14px;
  color: white;
  display: flex;
  margin-bottom: 0.5rem;
}

#nav,
#backtoblog {
  text-align: center;
  font-size: 14px;
  margin-bottom: 10px;
  width: 100%;
  max-width: 320px;
}

#nav a,
#backtoblog a {
  color: white;
  text-decoration: none;
}

#nav a:hover,
#backtoblog a:hover {
  color: white;
}

.login #login_error,
.login .message,
.login .success {
  margin-bottom: 20px;
  max-width: 320px;
  width: 100%;
}

#reg_passmail {
  font-size: 12px;
  color: #666;
}

/* Hide "Powered by WordPress" */
.login .privacy-policy-page-link {
  display: none;
}

/* Responsive design */
@media (max-width: 768px) {
  body.login {
    flex-direction: column;
  }

  #login-background {
    width: 100%;
    height: 30vh;
  }

  #login {
    width: 100%;
    height: auto;
    min-height: 70vh;
  }
}

@media (max-width: 480px) {
  #loginform {
    padding: 20px;
  }

  .login-logo {
    max-width: 280px;
  }
}
