/* Állatokért.hu – Joomla login/registration CSS v1.0.6
   Targets com_users ONLY; existing login handlers unchanged. */
:root { --ak-auth-green:#245b43; --ak-auth-dark:#164730; }
.aer-auth-shell,
.com-users-login,
.com-users-registration,
.registration:not(.mod-login) {
  --ak-green:#245b43; --ak-deep:#174630; --ak-tint:#eaf4ed;
  --ak-border:#c6ddcd; --ak-text:#203f30;
  position:relative !important;
  display:block !important;
  width:min(100%,900px) !important;
  max-width:900px !important;
  margin:36px auto 52px !important;
  padding:121px clamp(21px,4vw,42px) 36px !important;
  box-sizing:border-box !important;
  background:#fff !important;
  border:1px solid #c6ddcd !important;
  border-radius:20px !important;
  box-shadow:0 17px 48px rgba(21,73,48,.11) !important;
  color:#203f30 !important;
  overflow:hidden !important;
}
.aer-auth-shell.aer-auth-register,
.com-users-registration {width:min(100%,980px) !important;max-width:980px !important;}
.aer-auth-shell::before,
.com-users-login::before,
.com-users-registration::before,
.registration:not(.mod-login)::before {
  content:'ÁLLATOKÉRT.HU  ·  Mert minden élet számít.';
  display:flex;align-items:center;position:absolute;left:0;right:0;top:0;
  min-height:88px;padding:17px clamp(21px,4vw,42px);
  color:#fff !important;background:linear-gradient(105deg,#174630 0%,#245b43 68%,#347558 100%);
  font-size:clamp(14px,2.2vw,19px);font-weight:750;letter-spacing:.015em;
  line-height:1.45;box-sizing:border-box;text-align:left;
}
.aer-auth-shell .aer-auth-title {color:#174630 !important;font-weight:800 !important;
  line-height:1.2 !important;font-size:clamp(24px,3vw,32px) !important;margin:0 0 21px !important;}
.aer-auth-shell :is(h1,h2,legend),.com-users-login :is(h1,h2,legend),.com-users-registration :is(h1,h2,legend){color:#174630 !important;}
.aer-auth-shell :is(form,fieldset),.com-users-login :is(form,fieldset),
.com-users-registration :is(form,fieldset){border:0 !important;box-shadow:none !important;background:transparent !important;}
.aer-auth-shell fieldset,.com-users-login fieldset,.com-users-registration fieldset{padding:0 !important;margin:0 !important;min-width:0 !important;}
.aer-auth-shell label,.com-users-login label,.com-users-registration label {
  color:#244535 !important;font-weight:600 !important;font-size:15px !important;margin-bottom:7px !important;
}
.aer-auth-shell .control-group,.com-users-login .control-group,.com-users-registration .control-group,
.aer-auth-shell .mb-3,.com-users-login .mb-3,.com-users-registration .mb-3{margin-bottom:19px !important;}
.aer-auth-shell :is(input[type="text"],input[type="password"],input[type="email"],select,.form-control),
.com-users-login :is(input[type="text"],input[type="password"],input[type="email"],.form-control),
.com-users-registration :is(input[type="text"],input[type="password"],input[type="email"],.form-control){
  box-sizing:border-box !important;width:100%;max-width:100%;min-height:48px;
  border:1px solid #bdd6c5 !important;background:#fbfefc !important;
  color:#163526 !important;border-radius:9px !important;
  padding:10px 13px !important;box-shadow:none !important;
}
.aer-auth-shell :is(input,.form-control):focus,.com-users-login :is(input,.form-control):focus,
.com-users-registration :is(input,.form-control):focus {
  border-color:#398864 !important;outline:none !important;
  box-shadow:0 0 0 3px rgba(44,134,85,.16) !important;
}
.aer-auth-shell .input-group,.com-users-login .input-group,.com-users-registration .input-group {
  width:100% !important;display:flex !important;flex-wrap:nowrap !important;
}
.aer-auth-shell .input-group>.form-control,.com-users-login .input-group>.form-control,
.com-users-registration .input-group>.form-control{flex:1 1 auto !important;width:1% !important;min-width:0 !important;border-radius:9px 0 0 9px !important;}
.aer-auth-shell .input-group>.btn,.com-users-login .input-group>.btn,
.com-users-registration .input-group>.btn{flex:0 0 auto !important;width:auto !important;min-width:48px !important;
  border-radius:0 9px 9px 0 !important;background:#e8f2ec !important;color:#245b43 !important;
  border:1px solid #bdd6c5 !important;}
.aer-auth-shell .form-check,.com-users-login .form-check,.com-users-registration .form-check{display:flex !important;align-items:center !important;gap:10px !important;}
.aer-auth-shell .form-check-input,.com-users-login .form-check-input,.com-users-registration .form-check-input{width:17px !important;height:17px !important;min-height:0 !important;accent-color:#245b43 !important;flex:0 0 auto !important;}
.aer-auth-shell button[type="submit"],.com-users-login button[type="submit"],.com-users-registration button[type="submit"]{
  display:flex !important;align-items:center !important;justify-content:center !important;
  width:100% !important;min-height:49px !important;margin:10px 0 !important;
  padding:10px 16px !important;border-radius:9px !important;
  border:1px solid #245b43 !important;color:#fff !important;background:#245b43 !important;
  font-weight:750 !important;font-size:16px !important;box-shadow:none !important;
}
.aer-auth-shell button[type="submit"]:hover,.com-users-login button[type="submit"]:hover,
.com-users-registration button[type="submit"]:hover{background:#174630 !important;border-color:#174630 !important;}
.aer-auth-shell .btn-secondary,.com-users-login .btn-secondary{width:100% !important;min-height:45px !important;
  border-radius:9px !important;background:#e4eee7 !important;border:1px solid #c6ddcd !important;color:#174630 !important;}
.aer-auth-shell .com-users-login__options,.com-users-login .com-users-login__options{
  display:grid !important;grid-template-columns:1fr !important;gap:9px !important;
  border:0 !important;margin-top:23px !important;padding:18px 0 0 !important;border-top:1px solid #dfebe2 !important;
}
.aer-auth-shell .com-users-login__options a,.com-users-login .com-users-login__options a{
  padding:12px 15px !important;min-height:40px;border-radius:8px !important;
  background:#f0f7f2 !important;color:#174630 !important;border:1px solid #d6e8dc !important;
  text-decoration:none !important;text-align:center !important;font-weight:600 !important;
}
.aer-auth-shell a:not(.btn),.com-users-login a:not(.btn),.com-users-registration a:not(.btn){color:#245b43;}
.aer-auth-shell :is(button,a,input):focus-visible{outline:3px solid #8bc9a5 !important;outline-offset:3px !important;}
.aer-auth-shell .alert,.com-users-login .alert,.com-users-registration .alert{border-radius:9px !important;}
@media(max-width:640px){
  .aer-auth-shell,.com-users-login,.com-users-registration,.registration:not(.mod-login){
    width:calc(100% - 16px) !important;max-width:none !important;margin:20px auto 32px !important;
    padding:104px 17px 25px !important;border-radius:14px !important;
  }
  .aer-auth-shell::before,.com-users-login::before,.com-users-registration::before,
  .registration:not(.mod-login)::before{min-height:82px;padding:13px 17px;font-size:14px;}
}

/* Keep the form content fluid on larger screens, without affecting site modules. */
.aer-auth-shell > form, .aer-auth-shell > .form-horizontal, .aer-auth-shell .com-users-login__form,
.com-users-login > form, .com-users-registration > form{width:100% !important;max-width:100% !important;}


/* v1.0.4 – A BELSŐ ÚRlap tényleges szélessége. A Joomla/Helix
   gyakran 250–400 px-ben korlátozza a form/fieldset/controls elemeket.
   Az előző verzió csak a külső kártyát szélesítette. */
.aer-auth-shell {
  --aer-inner-width: 700px;
}
.aer-auth-shell.aer-auth-register { --aer-inner-width: 780px; }

/* Közvetlen belső űrlap: nem szabad a külső 900/980 px-es kártyát újraméretezni. */
body .aer-auth-shell .aer-auth-inner,
body .aer-auth-shell form:not(.aer-auth-shell),
body .aer-auth-shell .com-users-login__form,
body .aer-auth-shell .com-users-registration__form {
  box-sizing: border-box !important;
  display: block !important;
  width: min(100%, var(--aer-inner-width)) !important;
  max-width: var(--aer-inner-width) !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
}
/* Ha maga a form az arculati kártya, a fieldset kapja a belső méretet. */
body form.aer-auth-shell > fieldset {
  width: min(100%, var(--aer-inner-width)) !important;
  max-width: var(--aer-inner-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* A teljes szélességnek az összes űrlapelemig le kell érnie. */
body .aer-auth-shell form :is(fieldset, .control-group, .controls, .control-label,
  .form-group, .form-control, .input-group, .mb-3, .form-check,
  .com-users-login__input, .com-users-registration__input),
body .aer-auth-shell fieldset :is(.control-group, .controls, .control-label,
  .form-group, .form-control, .input-group, .mb-3) {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
body .aer-auth-shell form :is(.row, .form-row) {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body .aer-auth-shell form [class*="col-"] {
  flex-basis: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}
body .aer-auth-shell form :is(input[type="text"], input[type="email"], input[type="password"], select, textarea) {
  box-sizing: border-box !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
/* A jelszó megjelenítése gomb a beviteli mező mellett marad. */
body .aer-auth-shell .input-group > :is(input, .form-control) {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: 1% !important;
}
body .aer-auth-shell .input-group > .btn {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 48px !important;
}
/* Bejelentkezés, hozzáférési kulcs, visszaállítás, regisztráció gombok. */
body .aer-auth-shell form :is(button[type="submit"], input[type="submit"], .btn-primary, .btn-secondary),
body .aer-auth-shell .aer-auth-inner :is(.passkey-login, [class*="passkey"] .btn, [class*="webauthn"] .btn) {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
body .aer-auth-shell form [class*="passkey"],
body .aer-auth-shell form [class*="webauthn"] {
  width: 100% !important;
  max-width: 100% !important;
}
/* A fenti általános gombszabály ne szélesítse a jelszó szem-ikonját. */
body .aer-auth-shell .input-group > .btn { width: auto !important; }
@media (max-width: 640px) {
  body .aer-auth-shell .aer-auth-inner,
  body .aer-auth-shell form:not(.aer-auth-shell),
  body .aer-auth-shell .com-users-login__form,
  body .aer-auth-shell .com-users-registration__form,
  body form.aer-auth-shell > fieldset {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* 1.0.5: Target actual Joomla 5 com_users markup, without JS-added classes.
   The template or other plugins can limit form/fieldset to 250px. */
body .com-users-login.login > form#com-users-login__form,
body .com-users-login > form#com-users-login__form,
body .com-users-login .com-users-login__form,
body .com-users-registration form#member-registration,
body .com-users-registration form#user-registration,
body .com-users-registration > form,
body .registration:not(.mod-login) form#member-registration {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 700px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}
body .com-users-registration form#member-registration,
body .com-users-registration form#user-registration,
body .com-users-registration > form,
body .registration:not(.mod-login) form#member-registration {
  max-width: 780px !important;
}
/* Main login fieldsets and Joomla's renderFieldset('credentials') output. */
body .com-users-login #com-users-login__form fieldset,
body .com-users-login #com-users-login__form .com-users-login__input,
body .com-users-registration #member-registration fieldset,
body .com-users-registration #user-registration fieldset,
body .com-users-registration form fieldset,
body .registration:not(.mod-login) #member-registration fieldset {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}
body .com-users-login #com-users-login__form :is(.control-group,.controls,.form-group,.form-field,.mb-3,.com-users-login__submit,.com-users-login__remember),
body .com-users-registration form :is(.control-group,.controls,.form-group,.form-field,.mb-3,.form-check,.input-group),
body .registration:not(.mod-login) #member-registration :is(.control-group,.controls,.form-group,.mb-3,.input-group) {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
}
body .com-users-login #com-users-login__form :is(input[type='text'],input[type='email'],input[type='password'],.form-control,select,textarea),
body .com-users-registration form :is(input[type='text'],input[type='email'],input[type='password'],.form-control,select,textarea),
body .registration:not(.mod-login) #member-registration :is(input[type='text'],input[type='email'],input[type='password'],.form-control,select,textarea) {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}
body .com-users-login #com-users-login__form .input-group,
body .com-users-registration form .input-group {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  flex-wrap: nowrap !important;
}
body .com-users-login #com-users-login__form .input-group > :is(input,.form-control),
body .com-users-registration form .input-group > :is(input,.form-control) {
  flex: 1 1 0% !important;
  width: 1% !important;
  min-width: 0 !important;
}
body .com-users-login #com-users-login__form .input-group > .btn,
body .com-users-registration form .input-group > .btn {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 48px !important;
}
body .com-users-login #com-users-login__form :is(button[type='submit'],.com-users-login__submit .btn,.com-users-login__submit button),
body .com-users-registration form button[type='submit'] {
  box-sizing: border-box !important;
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}
body .com-users-login > .com-users-login__options,
body .com-users-login .com-users-login__options {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 700px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 640px) {
  body .com-users-login #com-users-login__form,
  body .com-users-login .com-users-login__form,
  body .com-users-registration form,
  body .registration:not(.mod-login) #member-registration,
  body .com-users-login .com-users-login__options {
    width: 100% !important;
    max-width: none !important;
  }
}

/* v1.0.6 fallback: make input wrappers fill the actual form, not merely the outer card. */
body .com-users-login form#com-users-login__form,
body .com-users-registration form#member-registration,
body .com-users-registration form#user-registration {
  box-sizing:border-box !important;
  width:100% !important;
  max-width:700px !important;
  min-width:0 !important;
  margin:0 auto !important;
}
body .com-users-registration form#member-registration,
body .com-users-registration form#user-registration {max-width:780px !important;}
body .com-users-login form#com-users-login__form fieldset,
body .com-users-login form#com-users-login__form fieldset > *,
body .com-users-login form#com-users-login__form .control-group,
body .com-users-login form#com-users-login__form .controls,
body .com-users-registration form fieldset,
body .com-users-registration form .control-group,
body .com-users-registration form .controls {
  box-sizing:border-box !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
}
body .com-users-login form#com-users-login__form .input-group > button,
body .com-users-registration form .input-group > button {width:auto !important;flex:0 0 auto !important;}
@media(max-width:640px){
  body .com-users-login form#com-users-login__form,
  body .com-users-registration form#member-registration,
  body .com-users-registration form#user-registration {max-width:100% !important;}
}


/* v1.0.7: Actual, fixed desktop INNER width. A percentage inside a 250px
   Joomla/Helix column remains 250px, even with max-width: 700px. */
@media (min-width: 641px) {
 body .aer-auth-shell form#com-users-login__form,
 body .com-users-login form#com-users-login__form,
 body .com-users-login form.com-users-login__form,
 body .com-users-login form[action*="com_users"],
 body .aer-auth-shell .com-users-login__options {
   width:700px !important;
   max-width:700px !important;
   min-width:0 !important;
   box-sizing:border-box !important;
   position:relative !important;
   left:50% !important;
   transform:translateX(-50%) !important;
 }
 body .aer-auth-shell.aer-auth-register form,
 body .com-users-registration form#member-registration,
 body .com-users-registration form#user-registration,
 body .registration:not(.mod-login) form#member-registration {
   width:780px !important;
   max-width:780px !important;
   min-width:0 !important;
   box-sizing:border-box !important;
   position:relative !important;
   left:50% !important;
   transform:translateX(-50%) !important;
 }
}
/* Allow a 250px intermediary to contain the visually wider form. The outer
   green card is still the clipping boundary. */
body .aer-auth-shell :is(.row,.col,.form-horizontal,.com-users-login__form-wrapper,.com-users-login__form,.login-form,.form-container),
body .com-users-login :is(.row,.col,.form-horizontal,.com-users-login__form-wrapper,.login-form,.form-container) {
 overflow:visible !important;
}
body .aer-auth-shell form :is(fieldset,.control-group,.controls,.form-group,.form-field,.com-users-login__input,.input-group),
body .com-users-login form :is(fieldset,.control-group,.controls,.form-group,.form-field,.com-users-login__input,.input-group),
body .com-users-registration form :is(fieldset,.control-group,.controls,.form-group,.form-field,.input-group){
 width:100% !important;max-width:none !important;min-width:0 !important;box-sizing:border-box !important;
}
body .aer-auth-shell .input-group > :is(input.form-control,input[type="password"],input[type="text"]){
 flex:1 1 0% !important;width:1% !important;max-width:none !important;min-width:0 !important;
}
body .aer-auth-shell .input-group > :is(button,.btn){width:auto !important;min-width:48px !important;flex:0 0 auto !important;}
@media (max-width: 640px) {
 body .aer-auth-shell form#com-users-login__form,
 body .com-users-login form#com-users-login__form,
 body .com-users-login form.com-users-login__form,
 body .aer-auth-shell .com-users-login__options,
 body .aer-auth-shell.aer-auth-register form,
 body .com-users-registration form#member-registration,
 body .com-users-registration form#user-registration {
  position:static !important;left:auto !important;transform:none !important;
  width:100% !important;max-width:100% !important;min-width:0 !important;
 }
}
