@import url("/rewards-auth.css");
@import url('/home-footer.css') screen and (min-width:1024px);
@import url('/art/match/type.css') screen and (min-width: 768px);
/* The desktop capture uses three weights of the same public Proxima Nova face as Match. */
#page-dialog:has(#layer > .auth-entry) {
  padding: 0; width: 100%; max-width: none; height: 100dvh; max-height: 100dvh;
  border: 0; border-radius: 0; background: #111129; color: #fbfaff; scrollbar-width: none;
}
#page-dialog[data-native-presentation=full] #layer > .page.auth-entry {
  max-width: none; margin: 0;
}
/* A public account page scrolls as a document, including below the login card. */
body:has(#page-dialog[open] #layer > .auth-entry:not([data-native-stack])) { overflow: auto; background: #111129; }
body:has(#page-dialog[open] #layer > .auth-entry) > :is(.mast,.frame,.bottom-nav,.guest-shell) { display: none; }
#page-dialog[open]:has(#layer > .auth-entry:not([data-native-stack])) {
  position: absolute; inset: 0 0 auto; margin: 0;
  height: auto; min-height: 100dvh; max-height: none; overflow: visible;
}
#page-dialog[open]:has(#layer > .auth-entry[data-native-stack]) {
  position: fixed; inset: 0; margin: 0; overflow-y: auto; overscroll-behavior: contain;
}
.auth-entry {
  --ae-muted: #a5a4c2; --ae-button: linear-gradient(#3612ae,#613af1);
  min-height: 100dvh; color: white; background: #111129;
  font-family: 'Proxima Nova', Manrope, system-ui, sans-serif; font-kerning: normal; font-feature-settings: 'salt'; -webkit-font-smoothing: antialiased;
}
.ae-main { display: flow-root; min-height: 60vh; padding-bottom: 96px; }
.ae-missing .ae-main { padding-bottom: 128px; }
.ae-site-footer { display: none; }
.ae-header {
  display: grid; grid-template: "logo account" 76px "nav nav" 49px / 1fr auto;
  align-items: center;
}
.ae-header .ae-logo { grid-area: logo; margin-left: 20px; }
.ae-account { grid-area: account; display: flex; gap: 10px; margin-right: 20px; }
.ae-account .ae-login, .ae-illustration { display: none; }
.ae-logo, #page-dialog #layer > .auth-entry > .close-layer {
  width: 44px; height: 44px; border: 0; border-radius: 8px;
  background: transparent url('/art/rarelatch/mark.png') 1px center / 29px auto no-repeat;
}
#page-dialog .auth-entry > .close-layer {
  position: absolute; top: 16px; left: max(20px,calc((100% - 1140px)/2)); right: auto;
  font-size: 0; z-index: 1;
}
.auth-entry:has(> .close-layer) .ae-logo { visibility: hidden; }
.ae-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; min-height: 48px; border-radius: 12px; padding: 8px 18px;
  font-size: 14px; line-height: 20px; font-weight: 800; color: white; text-align: center;
}
.ae-primary { background: var(--ae-button); box-shadow: inset 0 0 0 2px #9473ff4d,inset 0 -2px 0 #a389ff80; }
.ae-alt, .ae-google { background: #302f54; color: #d1cee2; }
.ae-signup { min-width: 112px; min-height: 40px; font-size: 13px; border-radius: 10px; }
.ae-nav { grid-area: nav; display: flex; justify-content: center; height: 49px; }
.ae-tab { display: flex; flex: 1 1 25%; flex-direction: column; align-items: center; justify-content: center; gap: 6px; max-width: 115px; color: var(--ae-muted); font-weight: 700; font-size: 10px; line-height: 15px; }
.ae-tab::before { content: ''; width: 18px; height: 18px; background: var(--ae-nav-icon) center / contain no-repeat; opacity: .4; }
.ae-panel {
  width: min(440px,calc(100% - 40px)); margin: 40px auto 0; padding: 28px;
  background: #1c1c3b; border-radius: 24px; box-shadow: 0 40px 100px -40px rgb(0 0 0 / 90%);
}
.ae-kicker { color: #9699be; font-size: 12px; line-height: 18px; font-weight: 800; letter-spacing: .08em; }
.ae-panel h1 { margin: 8px 0 0; font-size: 26px; line-height: 1.12; letter-spacing: -.015em; font-weight: 800; }
.ae-phone-form { margin-top: 24px; }
.ae-phone-controls { display: contents; margin: 0; padding: 0; border: 0; }
.ae-phone-form .form-status:empty { display: none; }
.rewards-auth :is(.ra-disclosure,.ae-consent) a { white-space: nowrap; }
.ae-resume { display: inline-block; padding-block: 8px; font-size: 14px; text-decoration: underline; }
.ae-panel:has(.ae-email[open]) .ae-phone-form, .ae-country-menu[hidden] { display: none; }
.ae-label { display: block; color: #9699be; font-size: 12px; line-height: 16px; font-weight: 700; margin-bottom: 8px; }
.ae-phone-row { display: flex; align-items: center; height: 48px; min-width: 0; border: 1px solid #6545d9; border-radius: 11px; background: #0c0c20; }
.ae-phone-row:focus-within { outline: 2px solid #a98dfd; }
.ae-phone-row :is(select,input) { background: transparent; color: #c6c4e2; border: 0; font: inherit; outline: none; }
.ae-picker { position: relative; flex: none; }
.ae-phone-row .ae-country {
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px 0 16px; color: #9699be;
  font: inherit; font-size: 14px; font-variant-numeric: tabular-nums; border: 0; background: transparent;
}
.ae-country .ae-flag { font-size: 17px; line-height: 1; }
.ae-country::after { content: ''; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%239699be' stroke-width='1.5'/%3E%3C/svg%3E") center no-repeat; }
.ae-country-menu { position: absolute; z-index: 4; top: 100%; left: 0; width: min(284px,70vw); padding: 8px; border: 1px solid #555474; border-radius: 12px; background: #20203f; box-shadow: 0 10px 24px #08081688; }
.ae-country-menu input[type=search] { width: 100%; height: 40px; padding: 0 10px; border: 1px solid #66637e; border-radius: 8px; color: white; font-size: 14px; }
.ae-countries { max-height: min(230px,34dvh); overflow: auto; overscroll-behavior: contain; margin-top: 6px; }
.ae-country-choice { display: block; width: 100%; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 6px; background: none; text-align: left; color: white; font: inherit; font-size: 14px; }
.ae-country-choice:is(:hover,:focus-visible,[aria-selected=true]) { background: #383557; }
.ae-phone-row .ae-phone { flex: 1; width: 0; min-width: 0; margin-left: 8px; border-left: 1px solid #34324d; padding: 0 16px; font-size: 16px; line-height: 24px; font-weight: 600; }
.ae-phone::placeholder { color: #a2a0bf; opacity: 1; }
.ae-password-tabs { margin: 20px 0 0; }
.ae-password-field { display: block; }
.ae-password-field + .ae-password-field { margin-top: 12px; }
.ae-password-field input { min-width: 0; width: 100%; height: 100%; padding: 0 16px; font-size: 16px; }
.ae-password-error { margin: 8px 0 0; color: #ff9caa; font-size: 13px; line-height: 18px; font-weight: 600; }
.ae-password-form .ae-primary { width: 100%; font-size: 15px; }
.ae-password-username { margin: 16px 0; overflow-wrap: anywhere; }
.ae-consent { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0; color: #abadcc; font-size: 13px; line-height: 1.625; font-weight: 500; }
.ae-consent input { appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1px solid #585772; border-radius: 6px; background: #17172e; cursor: pointer; }
.ae-consent input:checked { background: #7141ee; }
.ae-consent input:checked::after { content: '✓'; display: grid; place-content: center; height: 100%; color: white; font-weight: 800; }
.ae-consent a { color: #fff; font-weight: 600; }
.ae-phone-controls > .ae-button { width: 100%; font-size: 15px; }
.ae-button:disabled { opacity: .52; cursor: default; }
.ae-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--ae-muted); font-size: 11px; line-height: 18px; font-weight: 650; }
.ae-divider::before, .ae-divider::after { content: ''; flex: 1; height: 1px; background: #31314b; }
.ae-google-icon { width: 22px; height: 22px; background: url('/art/guest-home/google-pay.svg') left center / auto 100% no-repeat; }
.ae-benefits { list-style: none; padding: 0; display: grid; gap: 10px; margin: 28px 0 24px; color: #abadcc; font-size: 14px; line-height: 20px; font-weight: 600; }
.ae-benefits li { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 10px; }
.ae-benefits li::before { content: '✓'; width: 15px; height: 15px; margin: 3px 0 0 2px; border-radius: 50%; color: #20203e; background: #a6a5c1; font: 700 10px/15px system-ui; text-align: center; }
.ae-footer { display: grid; grid-template-columns: 1fr auto; align-items: start; column-gap: 8px; }
.ae-footer :is(.ae-back,summary,.ae-text-link) { cursor: pointer; font-size: 13px; font-weight: 600; line-height: 19.5px; color: #9699be; }
.ae-email[open] { grid-column: 1/-1; padding-top: 10px; }
.ae-email > summary { list-style: none; }
.ae-email > summary::-webkit-details-marker { display: none; }
.ae-email .model-form { margin: 12px 0; }
.ae-help { margin: 9px 0; color: var(--ae-muted); font-size: 12px; line-height: 1.55; }
.ae-missing .ae-panel { width: min(100% - 40px,1216px); margin-top: 96px; padding: 0; background: transparent; box-shadow: none; text-align: center; }
.ae-missing h1 { width: fit-content; max-width: 100%; margin: 12px auto 0; font-size: 36px; line-height: 1.12; letter-spacing: -.015em; }
.ae-description { max-width: 448px; margin: 12px auto 0; color: #abadcc; font-size: 16px; font-weight: 500; line-height: 24px; }
.ae-request { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 20px 0 32px; color: #9699be; font-size: 12px; line-height: 18px; font-weight: 600; }
.ae-request code { padding: 4px 10px; color: #fff; border-radius: 16px; background: #171732; font: inherit; }
.ae-error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ae-error-actions .ae-button { min-height: 44px; padding-inline: 20px; font-size: 14px; font-weight: 900; }
@media (min-width:640px) { .ae-missing h1 { font-size: 48px; } }

@media (min-width: 768px) {
  .auth-entry { font-family: 'Match Proxima',Manrope,system-ui,sans-serif; -webkit-font-smoothing: antialiased; }
  .ae-card {
    display: grid; grid-template-columns: 1fr 1.1fr; align-items: stretch;
    width: min(880px,calc(100% - 64px)); margin: 40px auto 0;
    overflow: hidden; border-radius: 24px; background: #1c1c3b;
    box-shadow: 0 40px 100px -40px #000e;
  }
  .ae-illustration {
    display: block; position: relative; isolation: isolate; overflow: hidden; min-height: 480px; margin: 0;
    background: linear-gradient(rgb(124 77 255 / 10%),rgb(124 77 255 / 34%));
  }
  .ae-illustration::before {
    content: ''; position: absolute; inset: 0; opacity: .6; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
  .ae-illustration img { display: block; position: absolute; width: 34%; top: 22%; height: auto; }
  .ae-illustration .card-gholdengo-ex, .ae-illustration .card-gengar-mimikyu-gx {
    border-radius: 10px; box-shadow: 0 20px 40px -16px #000c;
  }
  .ae-illustration .card-gholdengo-ex { left: 10%; transform: rotate(-12deg); }
  .ae-illustration .card-gengar-mimikyu-gx { right: 10%; transform: rotate(12deg); }
  .ae-illustration .pack-gold {
    top: 14%; left: 50%; width: 42%; transform: translateX(-50%); filter: drop-shadow(0 24px 30px #000a);
  }
  .ae-illustration figcaption {
    position: absolute; inset: auto 0 32px; color: #fffc; text-align: center; font-size: 14px; line-height: 20px; font-weight: 700;
  }
  .ae-card .ae-panel { width: auto; min-width: 0; margin: 0; padding: 36px; background: transparent; border-radius: 0; box-shadow: none; }
  .ae-consent input { width: 20px; height: 20px; }
}
@media (min-width: 1024px) {
  .ae-site-footer.hf-footer { display: block; margin-top: 24px; padding: 0; background: #171732; color: white; border-top: 1px solid #2f2f59; font: 400 16px/24px 'Match Proxima',system-ui,sans-serif; }
  .ae-header {
    display: flex; gap: 24px; height: 76px; max-width: 1280px; margin-inline: auto; padding-inline: 32px;
  }
  .ae-header .ae-logo, #page-dialog #layer > .auth-entry > .close-layer {
    width: 224px; margin-left: 0; background-image: url('/art/rarelatch/mark.png'),url('/art/rarelatch/suffix-dark.png');
    background-position: 1px center,40px 10.5px; background-size: 28px auto,auto 17px;
  }
  #page-dialog .auth-entry > .close-layer { left: max(32px,calc((100% - 1216px)/2)); }
  .ae-nav { height: 40px; gap: 4px; }
  .ae-tab { flex: none; max-width: none; flex-direction: row; gap: 8px; padding: 0 14px; font-size: 15px; font-weight: 600; }
  .ae-tab::before { content: ''; width: 20px; height: 20px; background: var(--ae-nav-icon) center / contain no-repeat; opacity: .4; }
  .ae-account { margin: 0 0 0 auto; }
  .ae-account .ae-login { display: inline-flex; }
  .ae-account .ae-button { min-width: 112px; min-height: 40px; border-radius: 11px; font-size: 14px; }
}
