/* Login page — Eden Aloni branding */

html { background: #f7f1e6; }
body.login {
  background:
    radial-gradient(circle, rgba(26,26,31,0.10) 1px, transparent 1.5px) 0 0 / 22px 22px,
    #f7f1e6;
  font-family: "Heebo", ui-sans-serif, system-ui, sans-serif;
  color: #1a1a1f;
  direction: rtl;
}

#login {
  width: 360px;
  padding: 6vh 1.25rem 4vh;
}

#login h1 a {
  background: none !important;
  width: auto !important;
  height: auto !important;
  text-indent: 0 !important;
  margin: 0 0 1.5rem !important;
  padding: 0 !important;
  display: flex;
  justify-content: center;
  text-decoration: none;
  outline: none;
}

.edenaloni-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-align: start;
}
.edenaloni-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.edenaloni-brand__text strong {
  font-weight: 700;
  font-size: 1.125rem;
  color: #1a1a1f;
}
.edenaloni-brand__text > span {
  font-size: 0.8125rem;
  color: #6b6b74;
  margin-top: 2px;
}
.edenaloni-brand__mark {
  height: 56px;
  width: auto;
  flex-shrink: 0;
}

/* Form card */
.login form {
  background: #fff;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 10px 30px -16px rgba(0, 0, 0, 0.18);
  padding: 1.75rem 1.5rem;
  margin-top: 0;
}

.login label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1f;
  margin-bottom: 0.375rem;
  display: block;
}

.login form .input,
.login input[type=text],
.login input[type=password],
.login input[type=email] {
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 0.625rem;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: #1a1a1f;
  margin: 0 0 1rem;
  width: 100%;
  box-shadow: none;
  direction: ltr;
  text-align: start;
}

.login input[type=text]:focus,
.login input[type=password]:focus,
.login input[type=email]:focus {
  border-color: #e78aaf;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(231, 138, 175, 0.18);
  outline: none;
}

/* Show-password eye button */
.login .wp-pwd { position: relative; }
.login .button.wp-hide-pwd {
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  height: 100%;
  color: #6b6b74;
}

/* Normalize the form's vertical rhythm — WP wrappers add extra margins. */
.login form > p,
.login form > .user-pass-wrap { margin: 0 0 0.875rem; }
.login .user-pass-wrap > label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1f;
  margin-bottom: 0.375rem;
}
.login .wp-pwd { margin: 0; }
.login .wp-pwd input[type=password] { margin: 0; }

/* Remember-me row — sits between the password field and the submit button */
.login .forgetmenot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #6b6b74;
  margin: 0 0 0.875rem;
  padding: 0;
  line-height: 1;
}
.login .forgetmenot label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-weight: 400;
  color: inherit;
  cursor: pointer;
  user-select: none;
}
.login .forgetmenot input[type=checkbox] {
  margin: 0;
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  accent-color: #e78aaf;
  cursor: pointer;
}

.login p.submit { margin: 0; padding: 0; }

/* Primary button */
.login .submit { text-align: center; }
.wp-core-ui .button-primary,
.login .button-primary {
  background: #e78aaf !important;
  color: #1a1a1f !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 0.7rem 1.75rem !important;
  font-weight: 700 !important;
  font-size: 0.9375rem !important;
  text-shadow: none !important;
  box-shadow: none !important;
  width: 100%;
  height: auto !important;
  line-height: 1.4 !important;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.wp-core-ui .button-primary:hover,
.login .button-primary:hover { filter: brightness(0.95); transform: translateY(-1px); }
.wp-core-ui .button-primary:focus,
.login .button-primary:focus {
  outline: 2px solid #e78aaf !important;
  outline-offset: 3px !important;
}

/* Below-form links */
#nav, #backtoblog {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.875rem;
}
#nav a, #backtoblog a {
  color: #6b6b74;
  text-decoration: none;
  transition: color 0.2s ease;
}
#nav a:hover, #backtoblog a:hover { color: #e78aaf; }

/* Error / message blocks */
.login .message,
.login .notice,
.login #login_error {
  background: #fff;
  border: none;
  border-inline-start: 3px solid #e78aaf;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px -8px rgba(0, 0, 0, 0.12);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  color: #1a1a1f;
}
.login #login_error { border-inline-start-color: #d04a4a; }

/* Privacy policy footer link injected by WP */
.privacy-policy-page-link { text-align: center; margin-top: 1rem; }
.privacy-policy-page-link a { color: #9a9aa3; font-size: 0.8125rem; }
.privacy-policy-page-link a:hover { color: #e78aaf; }

@media (prefers-reduced-motion: reduce) {
  .wp-core-ui .button-primary:hover,
  .login .button-primary:hover { transform: none; }
}
