/* Original Ganamos artwork, with account actions served by Proveedor 2. */
#authModal.auth-dialog {
  display:grid;grid-template-columns:minmax(0,23.063rem) minmax(0,23.938rem);align-items:center;
  width:min(47.875rem,calc(100vw - 64px));max-height:calc(100dvh - 48px);padding:12px 7px;
  border:0;border-radius:0;background:transparent;box-shadow:none;overflow-y:auto;overscroll-behavior:contain;
}
.auth-desktop-art{position:relative;isolation:isolate;width:100%}
.auth-desktop-art:before{content:"";position:absolute;inset:14px 0 0 18px;z-index:-1;background:var(--gradient);filter:blur(24px);opacity:.8}
.auth-desktop-art>img{width:100%;height:auto}
.auth-panel{position:relative;isolation:isolate;padding:3.188rem 2.094rem 1.438rem;background:#130227;border-radius:.625rem;margin-left:-5px;box-shadow:5px 0 30px #b339e24d}
#authModal .auth-desktop-close{position:absolute;right:.5625rem;top:.3125rem;padding:0;width:2.688rem;height:2.688rem;background:transparent}
.auth-desktop-close>img{width:100%;height:100%}
#authModal h2{margin:0 0 1.875rem;font-size:1.625rem;line-height:1.1;font-weight:700;color:#fff}
#authModal #authForm{display:flex;flex-direction:column;gap:.875rem}
#authModal .auth-field{display:flex;flex-direction:column;gap:4px;min-width:0}
#authModal .auth-field>label{display:block;font-size:.875rem;font-weight:600;line-height:1.3;color:#fff}
#authModal .auth-star{color:#d31c32}
#authModal .auth-field input{display:block;width:100%;height:2.5rem;padding:0 1.25rem;border:1px solid transparent;border-radius:1.5rem;background:linear-gradient(180deg,#320548,#1f073a);font-size:.875rem;color:#fff}
#authModal .auth-field input::placeholder{color:#9583a0;opacity:1}
#authModal .auth-field input:focus{border-color:#b339e2}
#authModal .auth-field input:-webkit-autofill{-webkit-text-fill-color:#fff;box-shadow:0 0 0 100px #26073f inset;caret-color:#fff}
#authModal .auth-field .auth-hint{font-size:11px;font-weight:400;color:#ad98b9;line-height:1.4}
.auth-password-field{position:relative}
#authModal #authPassword,#authModal #authPasswordRepeat{padding-right:3.25rem}
#authPasswordToggle,#authPasswordRepeatToggle{position:absolute;right:4px;top:0;display:grid;place-items:center;width:2.75rem;height:2.5rem;padding:0;background:transparent;border-radius:12px}
#authPasswordToggle img,#authPasswordRepeatToggle img{width:1.5rem;height:1.5rem}
#authPasswordToggle .auth-eye-off,#authPasswordRepeatToggle .auth-eye-off,#authPasswordToggle[aria-pressed="true"] .auth-eye,#authPasswordRepeatToggle[aria-pressed="true"] .auth-eye{display:none}
#authPasswordToggle[aria-pressed="true"] .auth-eye-off,#authPasswordRepeatToggle[aria-pressed="true"] .auth-eye-off{display:block}
.auth-phone-field{position:relative;display:flex;align-items:center}
#authModal .auth-phone-field input{padding-left:4.35rem}
.auth-phone-prefix{position:absolute;left:1.25rem;z-index:1;padding-right:.7rem;border-right:1px solid #6c407f;color:#f1c9ff;font-weight:800}
#authModal .age-legal-notice{margin:0;color:#ad98b9;font-size:11px;line-height:1.45}
#authModal .form-submit{margin:0;min-height:2.5rem;height:2.5rem;padding:.5rem 1.25rem;font-size:.875rem}
#authModal .form-error{font-size:12px;line-height:1.5}
#authModal .age-confirmation{font-size:12px;color:#e5d7ee}
#authModal #ageConfirmed{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;opacity:0;pointer-events:none}
.auth-switch{margin:1rem 0 0;text-align:center;color:#bba6c6;font-size:max(10px,.75rem);line-height:1.6}
.auth-switch button{display:inline;background:transparent;padding:4px 3px;color:#dec2ed;text-decoration:underline;text-underline-offset:3px;font-weight:700}
.auth-operator{margin:.75rem 0 0;text-align:center;font-size:max(9px,.625rem);line-height:1.5;color:#9583a0}
.auth-mobile-header,.auth-mobile-back,.auth-mobile-mascot,.auth-name-mobile{display:none}

@media(max-width:950px){
  #authModal.auth-dialog{display:flex;flex-direction:column;position:fixed;inset:0;transform:none;width:100%;height:100dvh;max-height:none;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);border-radius:0;background:url('assets/ganamos/auth-mobile-stars.webp') no-repeat bottom center/100% auto,#130227;font-family:GanamosRoboto,Arial,sans-serif}
  .auth-mobile-header{display:flex;align-items:center;justify-content:space-between;flex:0 0 54px;min-height:54px;width:100%;padding:0 15px;background:#130227}
  .auth-mobile-header>img{width:150px;height:auto}
  .auth-mobile-header>button{width:44px;height:44px;padding:0;background:transparent}
  .auth-mobile-header>button>img{width:43px;height:43px}
  #authModal .auth-mobile-back{display:flex;align-items:center;gap:10px;flex:0 0 45px;min-height:45px;width:100%;padding:0 15px 0 5px;background:transparent;text-align:left;font-size:16px;font-weight:700}
  .auth-mobile-back>img{width:30px;height:31px;object-fit:contain}
  .auth-desktop-art,#authModal .auth-desktop-close,.auth-name-desktop{display:none}
  .auth-name-mobile{display:inline}
  .auth-panel{flex:0 0 auto;width:100%;max-width:540px;margin:0 auto;padding:10px 15px 20px;background:transparent;border-radius:0;box-shadow:none}
  #authModal h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}
  #authModal #authForm{gap:15px}
  #authModal .auth-field{gap:3px}
  #authModal .auth-field>label{font-size:12px;font-weight:400}
  #authModal .auth-field input{height:44px;border-radius:10px;font-size:16px;font-weight:400}
  #authModal .form-submit{height:44px;min-height:44px;border-radius:10px;font-size:14px}
  #authModal #authPassword,#authModal #authPasswordRepeat{padding-right:56px}
  #authPasswordToggle,#authPasswordRepeatToggle{width:44px;height:44px;right:8px}
  #authPasswordToggle img,#authPasswordRepeatToggle img{width:24px;height:24px}
  .auth-switch{margin-top:12px;font-size:12px}
  .auth-operator{margin-top:8px;font-size:10px}
  #authModal .auth-mobile-mascot{display:block;flex:0 0 auto;width:min(95%,400px);height:auto;max-width:none;margin:auto auto 0;object-fit:contain;pointer-events:none}
}
@media(max-width:950px) and (max-height:600px){
  #authModal .auth-mobile-mascot{width:min(65%,235px)}
  .auth-panel{padding-bottom:5px}
}
