
/* All My Logins - login styles */
body.login{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content: var(--aml-form-justify, center);
  padding: 48px 20px;
  position: relative;
  color: var(--aml-text, #fff);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

/*
  WordPress adds a language switcher element into the login body.
  Because we use flexbox on body.login for positioning, that switcher becomes a flex item
  and can push the #login box left.
  Fix: take it out of the layout flow.
*/
body.login .language-switcher,
body.login .language-switcher-container{
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 3;
}

body.login .language-switcher select,
body.login .language-switcher input[type="submit"],
body.login .language-switcher-container select,
body.login .language-switcher-container input[type="submit"]{
  height: 32px;
}

/* overlay */
body.login:before{
  content:"";
  position: fixed;
  inset: 0;
  background: var(--aml-overlay-color, rgba(0,0,0,0.45));
  opacity: var(--aml-overlay-opacity, 0.55);
  pointer-events:none;
  z-index: 0;
}

/* blurred background layer (uses same background via body) */
body.login:after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events:none;
}

#login{
  width: 100%;
  max-width: 420px;
  padding: 0;
  position: relative;
  z-index: 2;
  margin: 0;
}

body.login h1{
  margin: 0 0 18px 0;
  display:flex;
  justify-content:center;
}

body.login h1 a{
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 220px;
  height: 84px;
  margin: 0;
  padding: 0;
}

.aml-login-headline{
  text-align:center;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px 0;
  letter-spacing: 0.2px;
}

.aml-login-subtext{
  text-align:center;
  font-size: 13px;
  opacity: .88;
  margin: 0 0 14px 0;
  line-height: 1.35;
}

#loginform, #lostpasswordform, #registerform{
  background: var(--aml-card-bg, rgba(10,10,10,0.72));
  border: 1px solid var(--aml-card-border, rgba(212,175,55,0.55));
  border-radius: var(--aml-card-radius, 22px);
  padding: 22px 22px 18px;
  box-shadow: 0 18px 48px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}

body.login label{
  color: rgba(255,255,255,.86);
  font-size: 12px;
  letter-spacing: .2px;
}

body.login .input, body.login input[type="text"], body.login input[type="password"], body.login input[type="email"]{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--aml-text, #fff);
  padding: 12px 12px;
  box-shadow: none !important;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease, background .22s ease;
}

body.login input[type="text"]:hover, body.login input[type="password"]:hover, body.login input[type="email"]:hover{
  border-color: rgba(212,175,55,.45);
  background: rgba(255,255,255,.08);
}

body.login .input:focus{
  border-color: var(--aml-accent, #F5D77A);
  box-shadow: 0 0 0 3px rgba(212,175,55,.25) !important;
  outline: none;
}

/* aml-input-hover */

body.login .button-primary{
  width: 100%;
  border: none;
  border-radius: var(--aml-button-radius, 14px);
  padding: 10px 14px;
  height: auto;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: var(--aml-button-gradient, linear-gradient(135deg, var(--aml-primary, #D4AF37), var(--aml-accent, #F5D77A)));
  color: #0b0b0c;
  box-shadow: 0 12px 26px rgba(0,0,0,.32);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

body.login .button-primary:hover,
body.login .button-primary:focus{
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 16px 34px rgba(0,0,0,.38);
}

body.login .forgetmenot{
  margin-top: 10px;
}

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

body.login #nav a, body.login #backtoblog a{
  color: rgba(255,255,255,.85) !important;
  text-decoration: none;
  transition: opacity .18s ease, transform .18s ease;
}

body.login #nav a:hover, body.login #backtoblog a:hover{
  opacity: 1;
  transform: translateY(-1px);
}

/* extra actions injected by All My Logins */
.aml-login-actions{
  margin-top: 14px;
  width: 100%;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.aml-register-btn{
  width: 100%;
  display: block;
  box-sizing: border-box;
  text-align: center;
  border-radius: var(--aml-button-radius, 14px);
  padding: 11px 14px;
  height: auto;
  font-weight: 700;
  letter-spacing: 0.2px;
  /* iOS-style secondary button (bordered pill) */
  background: rgba(255,255,255,.04) !important;
  border: 1px solid var(--aml-accent, #007aff) !important;
  color: var(--aml-accent, #007aff) !important;
  box-shadow: none !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, border-color .18s ease, background .18s ease;
}

.aml-register-btn:hover,
.aml-register-btn:focus{
  transform: translateY(-2px);
  background: rgba(255,255,255,.09) !important;
  filter: brightness(1.02);
}

.aml-forgot-link{
  display:block;
  text-align:center;
  color: rgba(255,255,255,.88) !important;
  text-decoration: none;
  font-weight: 600;
  transition: opacity .18s ease, transform .18s ease;
}

.aml-forgot-link:hover{
  opacity: 1;
  transform: translateY(-1px);
  text-decoration: underline;
}

.aml-login-footer{
  text-align:center;
  margin-top: 16px;
  font-size: 12px;
  opacity: .82;
}

body.login .message, body.login .notice, body.login .success{
  border-left-color: var(--aml-accent, #F5D77A);
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  color: var(--aml-text, #fff);
}

body.login #login_error{
  border-left-color: #ffb4b4;
  border-radius: 14px;
  background: rgba(255, 50, 50, .08);
  color: var(--aml-text, #fff);
}

#loginform:hover, #lostpasswordform:hover, #registerform:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 46px rgba(0,0,0,.35), 0 0 18px rgba(212,175,55,.18);
  border-color: rgba(212,175,55,.65);
}

/* aml-form-hover */



@media (max-width: 782px){
  body.login{ justify-content: center !important; }
}
