/* Authentication uses the site's existing frame and wallpaper. */
.page-auth .auth-layout { display: grid; grid-template-columns: 1.06fr 1fr; align-items: stretch; gap: 0; margin: 24px 0 0; padding: 0; }
.page-auth .auth-art { position: relative; display: block; min-width: 0; min-height: 690px; overflow: hidden; border: 1px solid #e0f4ff; border-radius: 30px; background: #e9faff url('../images/auth-scene.svg') center / cover no-repeat; text-align: center; }
.page-auth .auth-art-copy { position: relative; z-index: 2; padding: 35px 18px 0; }
.page-auth .auth-kicker { display: inline-block; margin-bottom: 17px; padding: 6px 12px; border: 1px solid #d2efff; border-radius: 20px; background: #ffffffba; color: #3c89b0; font-size: 10px; font-weight: 900; letter-spacing: 1px; }
.page-auth .auth-art h2 { margin: 0 0 16px; color: #12335f; font-size: clamp(28px, 3vw, 36px); font-weight: 950; line-height: 1.12; letter-spacing: -1px; }
.page-auth .auth-art h2 span { color: #008dff; }
.page-auth .auth-art h2 em { color: #f32d82; font-style: normal; }
.page-auth .auth-art p { margin: 0; color: #345779; font-size: 15px; line-height: 1.5; }
.page-auth .auth-underline { display: block; width: 100px; height: 5px; margin: 10px auto 0; border-radius: 100%; background: #ffce32; transform: rotate(-3deg); }
.page-auth .auth-art .auth-girl { position: absolute; z-index: 1; left: -25px; bottom: 35px; width: 82%; height: auto; max-width: none; margin: 0; object-fit: contain; mix-blend-mode: normal; }
.page-auth .auth-materials { position: absolute; z-index: 2; top: 320px; right: 12px; display: grid; gap: 13px; width: 139px; }
.page-auth .auth-material { display: flex; align-items: center; gap: 7px; min-height: 62px; padding: 10px 8px; border: 2px solid white; border-radius: 16px; background: linear-gradient(125deg, #fff, #fff3f9); box-shadow: 0 5px 0 #e5e2f04a, 0 5px 15px #368cb51a; color: #173f67; text-align: left; font-size: 12px; font-weight: 850; line-height: 1.35; transform: rotate(-5deg); }
.page-auth .auth-material:nth-child(2) { background: linear-gradient(125deg, #fff, #fff8de); }
.page-auth .auth-material:nth-child(3) { background: linear-gradient(125deg, #fff, #f3edff); }
.page-auth .auth-material:nth-child(4) { background: linear-gradient(125deg, #fff, #e5fbf3); }
.page-auth .auth-material img { position: static; width: 32px; height: 34px; margin: 0; mix-blend-mode: normal; object-fit: contain; }
.page-auth .auth-art-note { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 70px; padding: 16px 20px; border-radius: 65% 30% 0 0 / 40% 30% 0 0; background: linear-gradient(110deg, #33beee, #86dcff); color: white; font-size: 13px; font-weight: 800; line-height: 1.5; transform: none; }
.page-auth .auth-art-note svg { width: 31px; height: 31px; stroke-width: 2.7; transform: rotate(12deg); }
.page-auth .auth-form-card { position: relative; align-self: center; min-width: 0; margin-left: -1px; padding: 36px 30px 30px; border: 1px solid #e4f0fc; border-radius: 30px; background: linear-gradient(145deg, #fff, #fbfdff); box-shadow: 0 10px 30px #247bb60a; text-align: center; }
.page-auth .auth-form-rays { position: absolute; top: 20px; right: 14px; width: 26px; height: 42px; background: url('../images/cta-rays.svg') center / contain no-repeat; transform: rotate(-35deg); }
.page-auth .auth-welcome-icon { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 17px; border: 1px solid #d9efff; border-radius: 22px; background: linear-gradient(135deg, #effaff, #fff); box-shadow: 0 4px 0 #e8f6ff; transform: rotate(-7deg); }
.page-auth .auth-welcome-icon img { transform: rotate(7deg); }
.page-auth .auth-form-card h1 { position: relative; margin: 0 0 12px; color: #15345f; font-size: 28px; font-weight: 950; line-height: 1.18; letter-spacing: -.8px; }
.page-auth .auth-intro { max-width: 350px; margin: 0 auto 27px; color: #63809e; font-size: 16px; line-height: 1.6; }
.page-auth .auth-form { width: 100%; max-width: none; margin: 0; padding: 0; text-align: left; }
.page-auth .auth-form>label:not(.terms-check) { display: block; margin: 0 0 9px; color: #183c65; font-size: 14px; font-weight: 850; line-height: 1.4; }
.page-auth .auth-input { position: relative; display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 54px; margin-bottom: 20px; padding: 0 14px; border: 1px solid #d6e6f4; border-radius: 14px; background: #fcfeff; transition: border-color .2s, box-shadow .2s; }
.page-auth .auth-input:focus-within { border-color: #0a9ce4; background: #fff; box-shadow: 0 0 0 4px #0a9ce412; }
.page-auth .auth-input>svg { width: 21px; height: 21px; color: #7797b4; stroke-width: 1.8; }
.page-auth .auth-input input { display: block; flex: 1; width: 0; min-width: 0; min-height: 52px; margin: 0; padding: 12px 0; border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none; color: #24425e; font-size: 16px; line-height: 1.4; }
.page-auth .auth-input input::placeholder { color: #8c9caf; font-size: 14px; opacity: 1; }
.page-auth .auth-password { padding-right: 5px; }
.page-auth .password-toggle { display: grid; flex-shrink: 0; place-items: center; width: 44px; height: 44px; margin: 0; padding: 10px; border: 0; border-radius: 12px; background: transparent; color: #7591ad; cursor: pointer; }
.page-auth .password-toggle:hover { background: #eaf6ff; color: #008cdd; }
.page-auth .password-toggle svg { width: 22px; height: 22px; }
.page-auth .password-toggle .eye-slash { display: none; }
.page-auth .password-toggle[aria-pressed='true'] .eye-slash { display: block; }
.page-auth .auth-form .auth-hint { margin: -10px 0 17px; color: #72869a; font-size: 12px; line-height: 1.5; }
.page-auth .auth-form .terms-check { display: flex; align-items: flex-start; gap: 10px; margin: 3px 0 22px; color: #607b96; font-size: 12px; font-weight: 600; line-height: 1.65; }
.page-auth .terms-check input { flex: 0 0 19px; width: 19px; height: 19px; min-height: 19px; margin: 3px 0 0; padding: 0; accent-color: #008feb; }
.page-auth .terms-check a { color: #087ac8; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.page-auth .auth-form .auth-submit { display: flex; align-items: center; justify-content: center; gap: 13px; width: 100%; min-height: 58px; margin: 7px 0 0; padding: 14px 18px; border: 1px solid #007fd1; border-radius: 16px; background: linear-gradient(120deg, #009cf6, #007de0); box-shadow: inset 0 1px 0 #ffffff3b, 0 4px 0 #c5e8ff, 0 8px 17px #0089de20; color: white; font-size: 18px; font-weight: 900; }
.page-auth .auth-submit:hover { background: linear-gradient(120deg, #0093eb, #006fc9); }
.page-auth .auth-switch { margin: 26px 0 20px !important; color: #69849e; font-size: 14px; line-height: 1.6; }
.page-auth .auth-switch a { display: inline-block; color: #9250f3; font-weight: 950; }
.page-auth .auth-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-auth .auth-reassurance { display: flex; align-items: center; justify-content: center; gap: 7px; padding-top: 17px; border-top: 1px solid #edf3fa; color: #8196aa; font-size: 11px; line-height: 1.5; }
.page-auth .auth-reassurance svg { width: 16px; height: 16px; color: #6db4b1; }
.page-auth .auth-form .error-message { margin: 0 0 20px; padding: 13px 15px; border: 1px solid #ffd0df; border-radius: 12px; background: #fff2f7; color: #ac2459; font-size: 14px; line-height: 1.5; }
.page-auth :focus-visible { outline: 3px solid #149cdd; outline-offset: 3px; }
.page-auth .auth-input input:focus-visible { outline: none; }
@media (min-width: 761px) and (max-width: 1000px) {
    .page-auth .auth-layout { grid-template-columns: 1fr 1fr; }
    .page-auth .auth-form-card { padding: 32px 22px 25px; }
    .page-auth .auth-art h2 { font-size: 29px; }
    .page-auth .auth-art p { font-size: 13px; }
    .page-auth .auth-materials { width: 117px; right: 8px; }
    .page-auth .auth-material { font-size: 10px; gap: 4px; padding-inline: 5px; }
    .page-auth .auth-art .auth-girl { width: 86%; left: -35px; bottom: 50px; }
    .page-auth .auth-form-card h1 { font-size: 26px; }
}
@media (max-width: 760px) {
    .page-auth .auth-layout { display: block; margin-top: 20px; }
    .page-auth .auth-art { min-height: 170px; border-radius: 24px; text-align: left; }
    .page-auth .auth-art-copy { width: 72%; padding: 21px 15px 22px; }
    .page-auth .auth-kicker { margin-bottom: 9px; padding: 4px 8px; font-size: 8px; letter-spacing: .6px; }
    .page-auth .auth-art h2 { margin-bottom: 8px; font-size: 24px; letter-spacing: -.6px; }
    .page-auth .auth-art p { max-width: 175px; font-size: 11px; line-height: 1.5; }
    .page-auth .auth-art p br { display: none; }
    .page-auth .auth-underline { width: 65px; height: 3px; margin: 9px 0 0 28px; }
    .page-auth .auth-art .auth-girl { left: auto; right: -25px; bottom: -7px; width: 150px; height: 150px; opacity: .98; }
    .page-auth .auth-materials,.page-auth .auth-art-note { display: none; }
    .page-auth .auth-form-card { margin: 16px 0 0; padding: 26px 20px 24px; border-radius: 24px; }
    .page-auth .auth-welcome-icon { width: 56px; height: 56px; margin-bottom: 18px; border-radius: 18px; }
    .page-auth .auth-welcome-icon img { width: 36px; height: 36px; }
    .page-auth .auth-form-card h1 { font-size: 28px; }
    .page-auth .auth-intro { max-width: 340px; margin-bottom: 25px; font-size: 15px; }
    .page-auth .auth-form-rays { top: 20px; right: 15px; width: 20px; height: 35px; }
    .page-auth .auth-form .auth-submit { min-height: 56px; }
    .page-auth .auth-switch { font-size: 14px; }
}
@media (max-width: 359px) {
    .page-auth .auth-art-copy { width: 75%; padding-left: 12px; }
    .page-auth .auth-art h2 { font-size: 21px; }
    .page-auth .auth-art .auth-girl { right: -23px; width: 120px; height: 120px; }
    .page-auth .auth-art p { max-width: 155px; }
    .page-auth .auth-form-card { padding: 24px 15px; }
    .page-auth .auth-form-card h1 { font-size: 25px; }
    .page-auth .auth-input { gap: 8px; padding-left: 10px; }
    .page-auth .auth-input input::placeholder { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .page-auth .auth-input { transition: none; } }

/* reCAPTCHA checkbox (fixed 304px wide): keep it inside narrow phone screens. */
.auth-captcha { display: flex; justify-content: center; margin: 4px 0 2px; min-height: 78px; }
@media (max-width: 380px) { .auth-captcha .g-recaptcha { transform: scale(.88); transform-origin: center top; } }
