/* =============================================================================
   Bembos Brand Hub — Login Page CSS
   ============================================================================= */

body.login {
  background-color: var(--bembos-blue, #1100CF);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0,0,0,0.1) 0%, transparent 50%);
  font-family: var(--font-duplicate-slab, serif);
  font-weight: 500;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.login::before {
  content: '';
  position: fixed;
  bottom: -50px;
  right: -50px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

/* Logo */
#login h1 a,
.login h1 a {
  background-image: none;
  background-color: transparent;
  width: auto;
  height: auto;
  text-indent: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 900;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

body.login.has-bembos-login-logo #login h1 a,
body.login.has-bembos-login-logo .login h1 a {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 220px;
  height: 84px;
  text-indent: -9999px;
  overflow: hidden;
  padding-bottom: 0;
  display: block;
}

body.login.has-bembos-login-logo #login h1 a::before,
body.login.has-bembos-login-logo #login h1 a::after {
  content: none;
}

#login h1 a::before {
  content: 'BEMBOS';
  font-size: 32px;
  font-weight: 900;
  color: white;
  letter-spacing: 0.1em;
}

#login h1 a::after {
  content: 'BRAND HUB';
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

/* Form */
#login {
  padding: 0;
  width: 360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#loginform,
#lostpasswordform {
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 18px 0 0;
  margin-top: 0;
  width: 100%;
  margin-bottom: 0;
}

#loginform > p,
#loginform .user-pass-wrap {
  margin-bottom: 16px;
}

#loginform p.forgetmenot {
  display: none;
}

.login form .input,
.login input[type="text"],
.login input[type="password"] {
  border-radius: 8px;
  border: 0;
  height: 50px;
  padding: 24px 14px 8px;
  font-family: var(--font-duplicate-slab, serif);
  font-size: 14px;
  font-weight: 500;
  font-synthesis: none;
  color: var(--bembos-login-input-color, #fff);
  transition: border-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  background: var(--bembos-login-input-bg, rgb(26 10 209));
  border: var(--bembos-login-input-border, 1px solid red);
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus {
  box-shadow: none;
  outline: none;
}

.login form .input::placeholder,
.login input[type="text"]::placeholder,
.login input[type="password"]::placeholder {
  color: rgba(255, 255, 255, 0.9);
}

.login input:-webkit-autofill,
.login input:-webkit-autofill:hover,
.login input:-webkit-autofill:focus,
.login input:-webkit-autofill:active {
  font-family: var(--font-duplicate-slab, serif);
  font-weight: 500;
  -webkit-text-fill-color: var(--bembos-login-input-color, #fff);
  -webkit-box-shadow: 0 0 0 1000px var(--bembos-login-input-bg, rgb(26 10 209)) inset;
  box-shadow: 0 0 0 1000px var(--bembos-login-input-bg, rgb(26 10 209)) inset;
  border: var(--bembos-login-input-border-filled, 1px solid #fff);
  transition: background-color 9999s ease-in-out 0s;
  animation-name: bembosLoginAutofill;
  animation-duration: 0.01s;
}

@keyframes bembosLoginAutofill {
  from {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
}

.login label {
  font-family: var(--font-duplicate-slab, serif);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.login .wp-pwd {
  position: relative;
}

.login .button.wp-hide-pw {
  position: absolute;
  top: 10px;
  right: 10px;
  transform: none;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login .button.wp-hide-pw:hover,
.login .button.wp-hide-pw:focus {
  background: transparent !important;
  color: #fff !important;
  box-shadow: none;
}

.login .button.wp-hide-pw .dashicons {
  color: currentColor;
}

.bembos-floating-field {
  position: relative;
}

.bembos-floating-field.has-value .input,
.bembos-floating-field.is-focused .input,
.bembos-floating-field .input:not(:placeholder-shown),
.bembos-floating-field .input:-webkit-autofill,
.bembos-floating-field .input:-webkit-autofill:hover,
.bembos-floating-field .input:-webkit-autofill:focus,
.bembos-floating-field .input:-webkit-autofill:active {
  border: var(--bembos-login-input-border-filled, 1px solid #fff);
}

.bembos-floating-field > label {
  position: absolute;
  top: 0;
  left: 14px;
  height: 50px;
  display: flex;
  align-items: center;
  transform: none;
  margin: 0;
  pointer-events: none;
  color: rgba(255,255,255,0.82);
  line-height: 1;
  font-weight: 500;
  font-synthesis: none;
  transition: top 0.18s ease, font-size 0.18s ease, opacity 0.18s ease, height 0.18s ease;
  z-index: 2;
}

.bembos-floating-field.is-focused > label,
.bembos-floating-field.has-value > label,
.bembos-floating-field:has(.input:not(:placeholder-shown)) > label,
.bembos-floating-field:has(.input:-webkit-autofill) > label,
.bembos-floating-field:has(.input:-webkit-autofill:hover) > label,
.bembos-floating-field:has(.input:-webkit-autofill:focus) > label,
.bembos-floating-field:has(.input:-webkit-autofill:active) > label {
  top: 9px;
  height: auto;
  font-size: 10px;
  opacity: 0.82;
}

/* Submit button */
.login .button-primary,
#wp-submit {
  background: var(--bembos-login-accent, var(--chapter-page-bg, #ffe100)) !important;
  border-color: var(--bembos-login-accent, var(--chapter-page-bg, #ffe100)) !important;
  border-radius: 8px !important;
  font-family: var(--font-duplicate-slab, serif) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  height: 50px !important;
  padding: 0 20px !important;
  letter-spacing: 0.04em !important;
  width: 100%;
  transition: background 0.2s ease, transform 0.15s ease !important;
  text-shadow: none !important;
  box-shadow: none !important;
  color: #1100CF !important;
}

.login .button-primary:hover,
#wp-submit:hover {
  background: #f3d600 !important;
  border-color: #f3d600 !important;
  box-shadow: 0 10px 24px rgba(255, 225, 0, 0.25) !important;
}

/* Links */
.login #nav a,
.login #backtoblog a {
  color: rgba(255,255,255,0.7) !important;
  font-family: var(--font-duplicate-slab, serif);
  font-size: 12px;
}

.login #nav a:hover,
.login #backtoblog a:hover { color: white !important; }

.login #nav,
.login #backtoblog {
  padding: 8px 0;
  text-align: center;
  margin: 0;
}

.bembos-login-intro {
  max-width: 360px;
  margin: 18px auto 0;
  text-align: center;
  color: #fff;
}

.bembos-login-intro h2 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 30px;
  font-weight: 500;
  color: #fff;
  font-family: var(--font-duplicate-slab, serif);
}

.bembos-login-intro p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.88);
  font-family: var(--font-duplicate-slab, serif);
}

.bembos-login-intro a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.bembos-login-intro a:hover {
  text-decoration: underline;
}

/* Error message */
.login .message,
.login .notice {
  border-left: 4px solid #1100CF;
  border-radius: 0 8px 8px 0;
  font-family: var(--font-duplicate-slab, serif);
  font-size: 13px;
}

/* Login footer */
.bembos-login-footer {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-duplicate-slab, serif);
  font-size: 12px;
  line-height: 1.6;
}
