/* P-Magazine authentication dialogs: Mediakit 2026 palette and typography.
   Scope deliberately excludes polls and other .login-container components. */
:is(#login-form,#register-form,#forgot-password-form){
  background:rgba(22,22,22,.55);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
  overflow-y:auto;overscroll-behavior:contain;padding:24px 16px;box-sizing:border-box;
  font-family:Arial,Helvetica,sans-serif;color:#161616;
}
:is(#login-form,#register-form,#forgot-password-form) *,
:is(#login-form,#register-form,#forgot-password-form) *::before,
:is(#login-form,#register-form,#forgot-password-form) *::after{box-sizing:border-box}
:is(#login-form,#register-form,#forgot-password-form) .login{
  position:relative;top:auto;left:auto;right:auto;transform:none;margin:0 auto;
  width:100%;max-width:540px;padding:32px 36px 30px;background:#fff;color:#161616;
  border:1px solid #dedede;border-top:6px solid #c92925;border-radius:10px;
  overflow:visible;box-shadow:0 20px 70px rgba(0,0,0,.2);
}
#register-form .login{max-width:640px}
:is(#login-form,#register-form,#forgot-password-form) .pm-auth-brand{
  display:flex;align-items:center;gap:14px;margin:0 42px 24px 0;
}
:is(#login-form,#register-form,#forgot-password-form) .pm-auth-brand img{
  display:block;width:52px;height:52px;object-fit:contain;flex:none;visibility:visible;
}
:is(#login-form,#register-form,#forgot-password-form) .pm-auth-brand span{
  font:700 12px/1.4 Arial,Helvetica,sans-serif;letter-spacing:.06em;color:#c92925;
}
:is(#login-form,#register-form,#forgot-password-form) .login .title{
  font:700 clamp(26px,4vw,34px)/1.15 Arial,Helvetica,sans-serif;color:#161616;
  padding:0;margin:0 0 12px;text-align:left;overflow-wrap:anywhere;
}
:is(#login-form,#register-form,#forgot-password-form) .login .title:focus{outline:none}
:is(#login-form,#register-form,#forgot-password-form) .info{
  font:400 15px/1.55 Arial,Helvetica,sans-serif;color:#5d5d5d;margin:0 0 22px;
}
:is(#login-form,#register-form,#forgot-password-form) .row-form{margin-bottom:18px;min-width:0}
:is(#login-form,#register-form,#forgot-password-form) .row-form label{
  position:static;top:auto;left:auto;right:auto;transform:none;pointer-events:auto;
  display:block;margin:0 0 7px;font:700 14px/1.4 Arial,Helvetica,sans-serif;color:#161616;
}
:is(#login-form,#register-form,#forgot-password-form) .row-form label span{color:#a51c19}
:is(#login-form,#register-form,#forgot-password-form) input,
:is(#login-form,#register-form,#forgot-password-form) select{
  width:100%;min-width:0;min-height:48px;border:1px solid #8a8a8a;border-radius:5px;
  padding:11px 12px;background:#fff;color:#161616;font:400 16px/1.4 Arial,Helvetica,sans-serif;
}
:is(#login-form,#register-form,#forgot-password-form) input:focus,
:is(#login-form,#register-form,#forgot-password-form) select:focus{
  outline:2px solid #161616;outline-offset:2px;border-color:#161616;box-shadow:none;
}
:is(#login-form,#register-form,#forgot-password-form) .btn-default{
  display:block;width:100%;min-height:48px;padding:13px 20px;background:#c92925;
  border:1px solid #c92925;border-radius:5px;color:#fff;font:700 16px/1.4 Arial,Helvetica,sans-serif;
  text-align:center;text-transform:none;letter-spacing:0;
  box-shadow:none;
}
:is(#login-form,#register-form,#forgot-password-form) .btn-default:hover{background:#a51c19;border-color:#a51c19;color:#fff}
:is(#login-form,#register-form,#forgot-password-form) a:focus-visible,
:is(#login-form,#register-form,#forgot-password-form) button:focus-visible{
  outline:3px solid #161616;outline-offset:3px;
}
:is(#login-form,#register-form,#forgot-password-form) .link{
  color:#a51c19;font:400 14px/1.5 Arial,Helvetica,sans-serif;text-decoration:underline;
  text-underline-offset:3px;padding:4px 0;overflow-wrap:anywhere;
}
:is(#login-form,#register-form,#forgot-password-form) .btn-close-login{
  position:absolute;top:15px;right:14px;display:flex;align-items:center;justify-content:center;
  width:44px;height:44px;min-height:44px;padding:10px;border-radius:5px;color:#161616;
  background:#f3f3f3;text-decoration:none;font-size:19px;line-height:1;
}
:is(#login-form,#register-form,#forgot-password-form) .btn-close-login:hover{background:#e5e5e5;color:#161616}
#login-form .social_login{margin-left:0;margin-right:0;padding-top:20px;border-top:1px solid #dedede}
#login-form .social_login>div{padding-left:0;padding-right:0}
#login-form .btn_social_login{
  display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;
  width:100%;padding:12px;border:1px solid #8a8a8a;border-radius:5px;background:#fff;
  color:#161616;text-decoration:none;font:700 14px/1.4 Arial,Helvetica,sans-serif;
}
#login-form .btn_social_login span{display:flex;align-items:center;flex:none}
#login-form .btn_social_login img{width:22px;height:22px;object-fit:contain}
#login-form .btn_social_login:hover{background:#f3f3f3}
@media(max-width:575px){
  :is(#login-form,#register-form,#forgot-password-form){padding:12px}
  :is(#login-form,#register-form,#forgot-password-form) .login{padding:24px 20px;max-width:100%;margin:0 auto}
  :is(#login-form,#register-form,#forgot-password-form) .pm-auth-brand{gap:10px;margin-bottom:20px}
  :is(#login-form,#register-form,#forgot-password-form) .pm-auth-brand img{width:44px;height:44px}
  :is(#login-form,#register-form,#forgot-password-form) .pm-auth-brand span{font-size:10px;letter-spacing:.04em}
}
@media(prefers-reduced-motion:reduce){
  :is(#login-form,#register-form,#forgot-password-form) *{scroll-behavior:auto;transition:none}
}
