:root {
  color-scheme: light;
  --ink: #392e3b;
  --muted: #817581;
  --orange: #ff6702;
  --pink: #ec008c;
  --display: jaf-domus-titling-web, Montserrat, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fffdf9; color: var(--ink); font-family: Montserrat, Arial, sans-serif; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #ffac57; outline-offset: 5px; }
:root { --page-fade: 280ms; --adopt-ease: cubic-bezier(.22, 1, .36, 1); }
.page-transition {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 42%, #ffe8b7, #f7b9e0 52%, #b0418a 100%);
  clip-path: circle(0% at 50% 50%); transform: scale(1.06);
  transition: opacity var(--page-fade) var(--adopt-ease), transform var(--page-fade) var(--adopt-ease);
}
body.page-enter .page-transition {
  opacity: 1; transform: scale(1); clip-path: circle(150% at 50% 50%);
  animation: pageReveal .58s var(--adopt-ease) both;
}
@keyframes pageReveal {
  from { clip-path: circle(150% at 50% 50%); opacity: 1; }
  70% { opacity: 1; }
  to { clip-path: circle(0% at 50% 50%); opacity: 0; }
}
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px; background: #fff; z-index: 100; }
.skip-link:focus { top: 16px; }
.login-header { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 42px; color: #fff; background: #2e2e2e; position: relative; z-index: 2; }
.brand { display: flex; flex-direction: column; gap: 5px; }
.brand > span { font: 800 29px/.95 var(--display); letter-spacing: -.035em; white-space: nowrap; }
.brand small { font-size: 8px; font-weight: 700; letter-spacing: .16em; color: #efc6e1; }
.back-link { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; }
.back-link span { font-size: 21px; }
.back-link:hover { color: #ffb774; }
.login-layout { display: grid; grid-template-columns: 1.04fr 1fr; min-height: calc(100svh - 82px); }
.welcome { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; isolation: isolate; color: white; padding: 50px clamp(28px,5vw,82px) 27px; background: #8b0bba; }
.welcome::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(155deg,#8709bdf2 5%,#a01bcdd9 40%,#bd3ddb99 100%),url("/assets/adopt-me/Forest.webp") center/cover; }
.welcome::after { content: ""; position: absolute; width: 600px; height: 600px; top: 38%; left: -4%; border: 1px solid #ffffff20; border-radius: 50%; box-shadow: 0 0 0 70px #ffffff07,0 0 0 145px #ffffff05; z-index: -1; }
.eyebrow { display: block; font-size: 9px; font-weight: 800; letter-spacing: .16em; line-height: 1.5; }
.welcome-copy { animation: slideInFromLeft 1s cubic-bezier(0.22, 1, 0.36, 1) backwards; position: relative; z-index: 2; }
.welcome-copy .eyebrow { animation: fadeInUp 0.8s 0.3s cubic-bezier(0.22, 1, 0.36, 1) backwards; color: #ffd0f0; margin-bottom: 17px; }
.welcome h1 { animation: fadeInUp 1s 0.4s cubic-bezier(0.22, 1, 0.36, 1) backwards; margin: 0; font: 800 clamp(43px,4.6vw,72px)/.94 var(--display); letter-spacing: -.025em; text-shadow: 0 4px 0 #6e079346; }
.welcome h1 > span { color: #ffe77c; }
.welcome-copy p { animation: fadeInUp 0.9s 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards; font-size: 12px; line-height: 1.8; color: #f4dbfe; margin: 19px 0 0; }
.welcome-art { position: relative; flex: 1; display: grid; place-items: center; min-height: 285px; margin-top: -25px; }
#welcome-pet { animation: scaleIn 1.2s 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards, floatPet 4s 1.7s ease-in-out infinite; position: relative; z-index: 1; display: block; width: min(440px,100%); height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 17px 10px #54005a33); }
.art-orbit { animation: pulseOrbit 4s ease-in-out infinite; position: absolute; width: 76%; aspect-ratio: 1; border: 1px solid #ffffff30; border-radius: 50%; background: radial-gradient(circle,#e992f555,transparent 70%); }
.spark { position: absolute; color: #ffe988; z-index: 2; font-size: 36px; }
.spark-one { animation: rotateSpark 4s ease-in-out infinite; top: 23%; right: 3%; transform: rotate(10deg); }.spark-two { animation: rotateSpark 5s 1s ease-in-out infinite; top: 62%; left: 4%; font-size: 28px; transform: rotate(-12deg); }
.pet-sticker { animation: stickerPop 0.8s 1.2s cubic-bezier(0.22, 1, 0.36, 1) backwards; position: absolute; left: 4%; bottom: 1%; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 15px 21px; border: 3px solid white; border-radius: 18px; background: #fffaf3; color: #50295e; box-shadow: 0 6px 0 #69207860; transform: rotate(-5deg); max-width: 94%; }
.sticker-star { font-size: 26px; color: #ff9700; }
.pet-sticker small { display: block; color: #a16995; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.pet-sticker strong { display: block; font: 800 24px/1.1 var(--display); margin-top: 4px; }
.welcome-bottom { animation: fadeInUp 1s 1.3s cubic-bezier(0.22, 1, 0.36, 1) backwards; display: flex; gap: 9px; align-items: center; font-size: 10px; color: #ecd6f6; line-height: 1.5; padding-top: 28px; }
.welcome-bottom > span { font-size: 22px; color: #ffe6a0; }
.login-panel { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 42px clamp(28px,5vw,90px) 23px; min-width: 0; background: #fffdf9; }
.login-content { animation: slideInFromRight 1s cubic-bezier(0.22, 1, 0.36, 1) backwards; width: min(385px,100%); margin: auto; padding: 20px 0; }
.key-illustration { animation: scaleIn 0.8s 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards, keyGlow 3s 2s ease-in-out infinite; position: relative; width: 72px; height: 72px; display: grid; place-items: center; background: #fff0d6; border: 1px solid #ffe6ba; border-radius: 22px; color: #f89113; transform: rotate(-8deg); margin-bottom: 27px; }
.key-illustration svg { width: 44px; height: 44px; }
.key-illustration span { position: absolute; right: -9px; top: -6px; color: #e50087; font-size: 24px; }
.panel-eyebrow { animation: fadeInUp 0.8s 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards; margin: 0 0 9px; color: #b33c87; font-size: 9px; }
.login-content h2 { animation: fadeInUp 0.9s 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards; font: 800 59px/.95 var(--display); margin: 0 0 17px; color: #ff6702; letter-spacing: -.015em; }
.login-intro { animation: fadeInUp 0.9s 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards; font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0 0 29px; }
.selected-pet-summary { display: grid; grid-template-columns: 82px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 15px; border: 1px solid #efd2e6; border-radius: 20px; background: linear-gradient(125deg,#fff1f8,#fff9ef); margin: -4px 0 26px; box-shadow: 0 5px 0 #f5e8ef; }
.selected-pet-thumbnail { width: 82px; height: 82px; display: grid; place-items: center; background: #ffffffcc; border-radius: 16px; border: 1px solid #f2e3ed; }
.selected-pet-thumbnail img { width: 74px; height: 74px; object-fit: contain; }
.selected-pet-copy { min-width: 0; }
.selected-pet-copy small { display: block; font-size: 8px; color: #a66b91; font-weight: 800; letter-spacing: .08em; margin-bottom: 5px; }
.selected-pet-copy strong { display: block; font: 800 19px/1.1 var(--display); color: #4c3350; overflow-wrap: anywhere; }
.variant-badge { align-self: center; padding: 5px 7px; border-radius: 6px; background: #e5f1ff; color: #27669b; font-size: 9px; font-weight: 900; letter-spacing: .025em; }
.variant-badge[data-variant="NFR"] { background: #def5e9; color: #207650; }
.variant-badge[data-variant="MFR"] { background: #efdef9; color: #833fad; }
#login-form label { display: block; margin-bottom: 10px; font-size: 10px; font-weight: 800; letter-spacing: .055em; }
.key-input-wrap { position: relative; }
.key-input-wrap > svg { position: absolute; left: 16px; top: 19px; width: 20px; height: 20px; color: #b597ad; pointer-events: none; }
#giveaway-key { display: block; width: 100%; height: 57px; border: 1.5px solid #dfd2dc; border-radius: 12px; padding: 0 15px 0 46px; font-family: inherit; font-size: 13px; letter-spacing: normal; background: #fff; color: #1f1621; transition: border-color .15s,box-shadow .15s; }
#giveaway-key::selection { color: #3b2e3b; background: #ffd9b8; }
#giveaway-key::placeholder { color: #a391a0; opacity: 1; }
#giveaway-key:focus { border-color: #fa924d; outline: 0; box-shadow: 0 0 0 4px #ff670217; }
#giveaway-key[aria-invalid="true"] { border-color: #cd3769; }
.key-help { font-size: 10px; color: #9b8c98; margin: 10px 0 23px; line-height: 1.5; }
.key-help:first-of-type { margin-top: -18px; }
#login-submit { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 19px; width: 100%; min-height: 57px; border: 0; border-radius: 14px; color: #fff; background: #ff6702; box-shadow: 0 5px 0 #d84a05; font: 800 22px/1 var(--display); transition: background .15s; }
#login-submit::before { content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); animation: buttonShine 1.5s ease-in-out infinite; } #login-submit:hover { background: #ff7a1d; }
#login-submit:disabled { cursor: not-allowed; background: #cebcc9; box-shadow: 0 4px 0 #b29cac; transform: none; }
#login-submit:active { box-shadow: 0 2px 0 #d84a05; transform: translateY(3px); }
#login-submit span { font-family: Arial,sans-serif; font-size: 24px; }
#login-status { min-height: 24px; font-size: 11px; line-height: 1.6; margin: 15px 0 13px; color: #a53176; }
.key-faq { border-top: 1px solid #ede3e9; border-bottom: 1px solid #ede3e9; padding: 18px 0; }
.key-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 11px; font-weight: 700; list-style: none; color: #6e5b6b; }
.key-faq summary::-webkit-details-marker { display: none; }
.key-faq summary span { font-size: 18px; font-weight: 500; color: #cf498e; }
.key-faq[open] summary span { transform: rotate(45deg); }
.key-faq p { font-size: 11px; line-height: 1.8; color: var(--muted); margin: 13px 0 0; }
.login-footer { display: flex; justify-content: space-between; gap: 12px; width: 100%; color: #a396a0; font-size: 8px; line-height: 1.5; padding-top: 20px; }
.login-footer > span:first-child { font-weight: 800; letter-spacing: .08em; }
.noscript-note { font-size: 12px; line-height: 1.7; color: #a53176; }
@media (min-width: 1500px) { .login-content { animation: slideInFromRight 1s cubic-bezier(0.22, 1, 0.36, 1) backwards; width: 410px; }.welcome { padding-top: 70px; }.welcome-art { margin-top: -40px; } }
@media (max-width: 900px) {
  .login-layout { grid-template-columns: .92fr 1fr; }
  .welcome { padding: 39px 25px 24px; }
  .welcome h1 { animation: fadeInUp 1s 0.4s cubic-bezier(0.22, 1, 0.36, 1) backwards; font-size: 46px; }
  .login-panel { padding: 25px 28px; }
  .welcome-art { min-height: 270px; }
  .pet-sticker { animation: stickerPop 0.8s 1.2s cubic-bezier(0.22, 1, 0.36, 1) backwards; padding: 12px; }.pet-sticker strong { font-size: 22px; }
}
@media (max-width: 650px) {
  .login-header { height: 72px; padding: 0 18px; gap: 14px; }
  .brand > span { font-size: 22px; }.brand small { font-size: 6px; }
  .back-link { font-size: 10px; gap: 6px; }.back-link span { font-size: 18px; }
  .login-layout { display: flex; flex-direction: column; min-height: calc(100svh - 72px); }
  .login-panel { order: -1; padding: 32px 25px 22px; }
  .login-content { animation: slideInFromRight 1s cubic-bezier(0.22, 1, 0.36, 1) backwards; padding: 0; width: min(400px,100%); }
  .key-illustration { animation: scaleIn 0.8s 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards, keyGlow 3s 2s ease-in-out infinite; width: 55px; height: 55px; border-radius: 17px; margin-bottom: 24px; }.key-illustration svg { width: 34px; height: 34px; }
  .login-content h2 { animation: fadeInUp 0.9s 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards; font-size: 49px; }
  .login-intro { animation: fadeInUp 0.9s 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards; margin-bottom: 24px; }
  .login-footer { padding-top: 28px; }
  .welcome { min-height: 460px; padding: 32px 27px 22px; }
  .welcome h1 { animation: fadeInUp 1s 0.4s cubic-bezier(0.22, 1, 0.36, 1) backwards; font-size: 40px; }.welcome h1 > span { display: block; }
  .welcome-copy p { animation: fadeInUp 0.9s 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards; font-size: 11px; margin-top: 14px; }
  .welcome-art { min-height: 280px; margin-top: -40px; }
  #welcome-pet { animation: scaleIn 1.2s 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards, floatPet 4s 1.7s ease-in-out infinite; width: 300px; max-width: 100%; }
  .pet-sticker { animation: stickerPop 0.8s 1.2s cubic-bezier(0.22, 1, 0.36, 1) backwards; left: 4%; bottom: 0; }
  .spark-one { animation: rotateSpark 4s ease-in-out infinite; right: 7%; }.welcome-bottom { animation: fadeInUp 1s 1.3s cubic-bezier(0.22, 1, 0.36, 1) backwards; padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition: none !important; } }

@media (prefers-reduced-motion: reduce) {
  .page-transition { display: none; }
}
@media (max-width: 360px) {
  .login-header { padding-inline: 14px; gap: 10px; }
  .brand > span { font-size: 20px; }
  .back-link { font-size: 9px; gap: 4px; }
}

.account-preview { display: flex; align-items: center; gap: 8px; margin-left: auto; color: #fff; font-size: 11px; font-weight: 800; }
.account-preview img { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; border: 2px solid #ffb365; background: #ffffff33; }
.account-preview[hidden] { display: none; }
.login-required { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 10px; }
.username-row { display: flex; align-items: stretch; gap: 8px; }
#roblox-username { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border: 1.5px solid #dfd2dc; border-radius: 12px; color: #3b2e3b; background: #fff; font-size: 13px; }
#roblox-username:focus { outline: 0; border-color: #fa924d; box-shadow: 0 0 0 4px #ff670217; }
#load-profile { flex: 0 0 auto; padding: 0 13px; border: 0; border-radius: 12px; color: white; background: #8c46b4; font-size: 10px; font-weight: 800; }
#load-profile:disabled { opacity: .55; }
.discord-step { padding: 24px; border: 1px solid #ecd8e8; border-radius: 18px; background: linear-gradient(140deg,#fff7fb,#fffdf9); text-align: center; }
.discord-check { display: grid; place-items: center; width: 45px; height: 45px; margin: 0 auto 13px; border-radius: 50%; background: #48b981; color: white; font-size: 25px; font-weight: 800; }
.discord-step h3 { margin: 0 0 8px; color: #f06b1b; font: 800 29px/1 var(--display); }
.discord-step p { color: #837582; font-size: 11px; line-height: 1.65; }
.join-discord { display: flex; justify-content: center; align-items: center; min-height: 48px; margin: 15px 0; border-radius: 13px; background: #5865f2; color: white; font: 800 15px/1 var(--display); }
.join-discord:hover { filter: brightness(1.08); }
.saved-home-link { display: inline-block; color: #a35f8b; font-size: 10px; font-weight: 800; text-decoration: underline; }
@media (max-width: 650px) { .account-preview { font-size: 9px; } .account-preview img { width: 30px; height: 30px; } .username-row { gap: 5px; } #load-profile { padding-inline: 9px; } }

.account-preview [data-profile-name] { max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 650px) { .account-preview [data-profile-name] { max-width: 60px; } .login-header .back-link { font-size: 9px; } }


/* Login Page Animations */
@keyframes slideInFromLeft {
  0% { opacity: 0; transform: translateX(-60px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
  0% { opacity: 0; transform: translateX(60px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes floatPet {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

@keyframes rotateSpark {
  0% { transform: rotate(0deg) scale(1); opacity: 0.8; }
  50% { transform: rotate(180deg) scale(1.3); opacity: 1; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.8; }
}

@keyframes pulseOrbit {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.5; }
}

@keyframes stickerPop {
  0% { opacity: 0; transform: rotate(-5deg) scale(0.7); }
  60% { transform: rotate(-5deg) scale(1.08); }
  100% { opacity: 1; transform: rotate(-5deg) scale(1); }
}

@keyframes keyGlow {
  0%, 100% { box-shadow: 0 0 0 0 #ff670200; }
  50% { box-shadow: 0 0 20px 4px #ff670233; }
}

@keyframes buttonShine {
  0% { left: -100%; }
  100% { left: 200%; }
}