body.login {
  --scl-accent: #7f95b8;
  --scl-bg: #ffffff;
  background: linear-gradient(90deg, var(--scl-bg) 0 50%, #eef4ea 50% 100%);
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
  overflow-x: hidden;
}

body.login::after {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: 50vw;
  height: 100vh;
  background: linear-gradient(160deg, #eef4ea 0%, #f7fbf5 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.login div#login {
  width: min(620px, calc(50vw - 72px));
  min-height: 100vh;
  padding: 42px 46px 28px;
  margin: 0;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.login #login_error,
.login .message,
.login .success {
  border: 1px solid #eceef3;
  box-shadow: 0 12px 30px rgba(18, 22, 33, 0.05);
  border-radius: 16px;
  margin-bottom: 18px;
}

.login h1 {
  margin: 0 0 18px;
  text-align: left;
}

.login h1 a {
  width: 180px;
  height: 60px;
  margin: 0;
  background-size: contain;
  background-position: left center;
}

.scl-hero-copy {
  margin: 0 0 30px;
}

.scl-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.scl-brand-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d8dbe3;
  background: linear-gradient(135deg, #fafafa, #e8ebf1);
  display: inline-block;
  flex-shrink: 0;
}

.scl-brand-text,
.scl-title,
.scl-subtitle,
.scl-helper {
  display: block;
}

.scl-brand-text::after {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.scl-title {
  margin: 0 0 8px;
}

.scl-title::after {
  display: block;
  font-size: clamp(42px, 4vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.scl-subtitle {
  margin: 0 0 20px;
}

.scl-subtitle::after {
  display: block;
  color: #69707d;
  font-size: 16px;
}

.scl-helper {
  margin-top: 16px;
}

.scl-helper::after {
  display: block;
  color: #7a8291;
  font-size: 15px;
  line-height: 1.6;
  max-width: 560px;
}

.login form {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.login label {
  color: #1f2937;
  font-size: 15px;
  font-weight: 600;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="number"] {
  border: 1px solid #d9dee8;
  border-radius: 16px;
  background: #fff;
  min-height: 58px;
  box-shadow: none;
  padding: 14px 18px;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="number"]:focus {
  border-color: #b8c2d6;
  box-shadow: 0 0 0 4px rgba(127, 149, 184, 0.12);
}

.login .wp-pwd .button.wp-hide-pw {
  color: #6b7280;
  border-radius: 12px;
}

.scl-math-wrap {
  margin-top: 14px;
}

.scl-math-question {
  display: inline-block;
  margin: 10px 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.login .forgetmenot,
.login .submit {
  display: inline-flex;
  align-items: center;
}

.login .forgetmenot {
  margin-top: 4px;
}

.login .forgetmenot label {
  font-weight: 500;
  color: #4b5563;
}

.login .submit {
  float: none;
  width: 100%;
  margin-top: 18px;
}

.wp-core-ui .button-primary {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: var(--scl-accent);
  box-shadow: none;
  text-shadow: none;
  font-size: 16px;
  font-weight: 700;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
  background: var(--scl-accent);
  filter: brightness(0.96);
}

.login #nav,
.login #backtoblog,
.login .privacy-policy-page-link {
  padding: 0;
  margin: 18px 0 0;
}

.login #nav a,
.login #backtoblog a,
.login .privacy-policy-page-link a {
  color: #6c63c9;
}

@media (max-width: 1100px) {
  body.login {
    background: var(--scl-bg);
  }
  body.login::after {
    display: none;
  }
  body.login div#login {
    width: min(680px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 28px 16px 32px;
  }
}

@media (max-width: 640px) {
  .scl-title::after {
    font-size: 36px;
  }
  .login form .input,
  .login input[type="text"],
  .login input[type="password"],
  .login input[type="number"] {
    min-height: 52px;
    border-radius: 14px;
  }
}
