body.login {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(248, 249, 251, 0.96) 0%, rgba(231, 235, 242, 0.98) 100%);
  color: #101318;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body.login::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.48) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 70%);
}

#login {
  width: min(400px, calc(100% - 40px));
  padding: 7vh 0 0;
}

.login h1 {
  margin-bottom: 26px;
}

.login h1 a {
  display: flex;
  width: auto;
  height: auto;
  margin: 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: none;
  color: #101318;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  text-indent: 0;
  text-decoration: none;
}

.login h1 a::before {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  background: #101318;
  color: #fff;
  content: "M";
  font-size: 28px;
  font-weight: 900;
}

.mrs-login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 16px;
  padding: 6px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.mrs-login-tabs a {
  display: grid;
  min-height: 40px;
  place-items: center;
  border-radius: 12px;
  color: #343a46;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.mrs-login-tabs a.is-active {
  background: #101318;
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 24, 38, 0.14);
}

.login form {
  margin: 0;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px rgba(18, 24, 38, 0.12);
  backdrop-filter: blur(28px) saturate(1.18);
  -webkit-backdrop-filter: blur(28px) saturate(1.18);
}

.login label {
  color: #343a46;
  font-size: 14px;
  font-weight: 800;
}

.login form .input,
.login input[type="text"],
.login input[type="email"],
.login input[type="password"] {
  min-height: 52px;
  margin: 8px 0 20px;
  padding: 0 14px;
  border: 1px solid rgba(18, 24, 38, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: #101318;
  font-size: 17px;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="email"]:focus,
.login input[type="password"]:focus {
  border-color: #101318;
  box-shadow: 0 0 0 4px rgba(16, 19, 24, 0.1);
  outline: 0;
}

.login .forgetmenot {
  display: flex;
  min-height: 44px;
  align-items: center;
}

.login .forgetmenot label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}

.login .forgetmenot input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  border-color: rgba(18, 24, 38, 0.22);
  border-radius: 6px;
  box-shadow: none;
}

.login .button.wp-hide-pw {
  color: #343a46;
}

#registerform p:first-of-type,
#registerform .mrs-register-username,
#reg_passmail,
#nav a[href*="action=register"] {
  display: none;
}

.wp-core-ui .button-primary {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: #101318;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 44px;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
  background: #242936;
  color: #fff;
  box-shadow: 0 12px 26px rgba(18, 24, 38, 0.18);
  transform: translateY(-1px);
}

.login #nav,
.login #backtoblog {
  margin: 20px 0 0;
  padding: 0 4px;
  color: #737b89;
  font-size: 14px;
  font-weight: 700;
}

.login #nav a,
.login #backtoblog a {
  color: #343a46;
  text-decoration: none;
}

.login #nav a:hover,
.login #nav a:focus,
.login #backtoblog a:hover,
.login #backtoblog a:focus {
  color: #101318;
}

.login .message,
.login .notice,
.login .success,
.login #login_error {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(18, 24, 38, 0.12);
  border-left: 4px solid #101318;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 45px rgba(18, 24, 38, 0.08);
  color: #343a46;
}

.login #login_error {
  border-left-color: #c4362e;
}

@media (max-width: 480px) {
  #login {
    width: min(100% - 28px, 400px);
    padding-top: 36px;
  }

  .login form {
    padding: 24px;
  }

  .login h1 a {
    font-size: 24px;
  }
}
