/* Ryan J Banda account checkpoint. Kept isolated from game and editorial forms. */
.auth-scene {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(330px, .82fr) minmax(500px, 620px);
    align-items: center;
    gap: clamp(52px, 7vw, 108px);
    min-height: 780px;
    padding: clamp(68px, 7vw, 104px) max(32px, calc((100vw - 1240px) / 2));
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(4, 5, 29, .94) 0%, rgba(6, 13, 39, .72) 43%, rgba(10, 4, 38, .89) 100%),
        linear-gradient(180deg, rgba(8, 3, 34, .18), rgba(5, 3, 29, .82)),
        url('../images/coastal-observatory-game-room.png') center / cover no-repeat;
}

.auth-scene-signup {
    grid-template-columns: minmax(300px, .72fr) minmax(590px, 680px);
    min-height: 850px;
}

.auth-scene::before,
.auth-scene::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.auth-scene::before {
    inset: 8% auto auto 46%;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(105, 255, 226, .34);
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 0 34%, rgba(84, 43, 151, .32) 35% 37%, transparent 38% 55%, rgba(255, 194, 84, .24) 56% 58%, transparent 59%),
        conic-gradient(from 35deg, transparent, rgba(63, 238, 213, .18), transparent 42%, rgba(246, 86, 176, .2), transparent 78%);
    box-shadow: 0 0 80px rgba(67, 238, 213, .16);
    animation: auth-orbit-drift 13s ease-in-out infinite alternate;
}

.auth-scene::after {
    right: 5%;
    bottom: 8%;
    width: 180px;
    height: 180px;
    border-radius: 28%;
    transform: rotate(45deg);
    background: linear-gradient(135deg, rgba(255, 246, 184, .86), rgba(255, 187, 78, .7) 31%, rgba(239, 74, 162, .66) 61%, rgba(57, 220, 202, .38));
    box-shadow: inset 18px 18px 28px rgba(255, 255, 255, .38), inset -24px -24px 34px rgba(40, 8, 79, .6), 0 14px 0 rgba(66, 15, 86, .76), 0 0 55px rgba(239, 73, 169, .34);
    opacity: .38;
}

.auth-intro {
    position: relative;
    z-index: 1;
    max-width: 470px;
    padding-left: 3px;
    color: #eee8ff;
    text-shadow: 0 4px 24px rgba(2, 2, 20, .78);
}

.auth-intro::before {
    content: "J";
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 0 24px;
    border: 1px solid rgba(255, 240, 165, .84);
    border-radius: 15px;
    background: linear-gradient(145deg, #fff5b0, #ffc65c 42%, #ed62a8 72%, #552688);
    box-shadow: inset 0 2px rgba(255, 255, 255, .72), inset 0 -8px 15px rgba(74, 16, 92, .42), 0 7px 0 #5c205f, 0 0 30px rgba(255, 90, 178, .4);
    color: #2a0b46;
    font: 950 italic 24px/1 Inter, Arial, sans-serif;
}

.auth-intro .eyebrow {
    margin-bottom: 16px;
    color: #91ffe5;
    font-size: 10px;
    letter-spacing: .2em;
}

.auth-intro h1 {
    max-width: 450px;
    margin: 0 0 24px;
    color: #fff1bd;
    font-size: clamp(56px, 5.3vw, 82px);
    line-height: .84;
    letter-spacing: -.065em;
    text-wrap: balance;
    text-shadow: 0 5px 0 #49165d, 0 18px 38px rgba(0, 0, 0, .74);
}

.auth-intro > p:not(.eyebrow) {
    max-width: 450px;
    margin: 0;
    color: #e1daf1;
    font-size: 17px;
    line-height: 1.62;
}

.auth-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 27px;
}

.auth-points span {
    padding: 8px 11px;
    border: 1px solid rgba(115, 255, 226, .45);
    border-radius: 999px;
    background: rgba(12, 12, 55, .66);
    box-shadow: inset 0 1px rgba(255, 255, 255, .18), 0 8px 18px rgba(0, 0, 0, .22);
    color: #a5ffea;
    font: 900 9px/1 Inter, Arial, sans-serif;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.auth-panel,
.auth-panel.auth-panel-wide {
    position: relative;
    width: 100%;
    max-width: 680px;
    padding: clamp(28px, 3.2vw, 43px);
    overflow: hidden;
    border: 1px solid rgba(151, 255, 231, .42);
    border-radius: 28px;
    background:
        radial-gradient(circle at 93% 3%, rgba(243, 83, 177, .2), transparent 16rem),
        linear-gradient(145deg, rgba(61, 29, 130, .94), rgba(13, 7, 53, .965) 62%, rgba(7, 16, 49, .97));
    box-shadow: inset 0 1px rgba(255, 255, 255, .34), inset 0 -34px 70px rgba(3, 2, 26, .46), 0 12px 0 rgba(17, 4, 47, .76), 0 38px 90px rgba(0, 0, 0, .58), 0 0 54px rgba(45, 231, 205, .1);
    backdrop-filter: blur(19px) saturate(140%);
}

.auth-panel::before {
    content: "";
    position: absolute;
    inset: 0 11% auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, #72ffe2, #ffcf65 50%, #ff63b7, transparent);
    box-shadow: 0 0 20px rgba(90, 255, 224, .72);
}

.auth-panel::after {
    content: "";
    position: absolute;
    right: -58px;
    top: -68px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(255, 223, 122, .28);
    transform: rotate(45deg);
    border-radius: 25%;
    background: linear-gradient(145deg, rgba(255, 231, 143, .2), rgba(235, 80, 168, .14), rgba(55, 221, 202, .08));
    pointer-events: none;
}

.auth-panel-topline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 15px;
}

.auth-panel-topline span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(145deg, #fff2a8, #ffbd57 45%, #ed5ca8 75%);
    box-shadow: inset 0 1px rgba(255, 255, 255, .76), 0 4px 0 #60205d, 0 0 18px rgba(255, 91, 176, .36);
    color: #311047;
    font: 950 italic 16px/1 Inter, Arial, sans-serif;
}

.auth-panel-topline small {
    color: #9affe7;
    font: 900 9px/1 Inter, Arial, sans-serif;
    letter-spacing: .18em;
}

.auth-panel h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 9px;
    color: #fff2bd;
    font-size: clamp(38px, 3.2vw, 50px);
    line-height: .95;
    letter-spacing: -.045em;
    text-shadow: 0 4px #48155b, 0 13px 27px rgba(0, 0, 0, .45);
}

.auth-panel-lede {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 0 24px;
    color: #cfc7e7;
    font-size: 13px;
    line-height: 1.55;
}

.auth-form {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 15px;
}

.auth-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
}

.auth-form-grid .auth-confirmations,
.auth-form-grid > .button {
    grid-column: 1 / -1;
}

.auth-form .form-group {
    min-width: 0;
    margin: 0;
}

.auth-form .form-group:not(.auth-check-field) > label {
    display: block;
    margin: 0 0 8px;
    color: #acffea;
    font: 900 9px/1.2 Inter, Arial, sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.auth-form input:not([type="checkbox"]):not([type="hidden"]),
.auth-form select {
    width: 100%;
    height: 52px;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(116, 255, 226, .47);
    border-radius: 14px;
    outline: 0;
    background: linear-gradient(145deg, rgba(4, 5, 34, .86), rgba(13, 10, 59, .92));
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, .55), inset 0 1px rgba(255, 255, 255, .08), 0 7px 16px rgba(0, 0, 0, .12);
    color: #fff4d1;
    font-size: 15px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.auth-form input:not([type="checkbox"]):not([type="hidden"]):focus,
.auth-form select:focus {
    border-color: #8affe5;
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, .52), 0 0 0 3px rgba(72, 243, 210, .13), 0 0 24px rgba(66, 236, 209, .16);
    transform: translateY(-1px);
}

.auth-form input[type="hidden"] {
    display: none !important;
}

.auth-check-field {
    position: relative;
}

.auth-check-field > label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    margin: 0 !important;
    padding: 10px 13px;
    border: 1px solid rgba(153, 126, 232, .29);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(50, 26, 112, .52), rgba(10, 7, 46, .68));
    color: #e1dbef !important;
    font: 750 12px/1.35 Inter, Arial, sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.auth-check-field > label:hover {
    border-color: rgba(111, 255, 225, .56);
    background: linear-gradient(145deg, rgba(65, 34, 137, .7), rgba(12, 8, 52, .78));
    transform: translateY(-1px);
}

.auth-check-input,
.auth-form input.auth-check-input {
    appearance: none;
    -webkit-appearance: none;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    flex: 0 0 24px;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #81f9df !important;
    border-radius: 7px !important;
    background: linear-gradient(145deg, #18104f, #09062d) !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .66), 0 0 0 3px rgba(91, 239, 215, .06) !important;
    cursor: pointer;
}

.auth-check-input:checked,
.auth-form input.auth-check-input:checked {
    border-color: #fff0a7 !important;
    background-color: #ef66a9 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23290c42' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='m5 12 4 4L19 7'/%3E%3C/svg%3E"), linear-gradient(145deg, #fff2a4, #ffc150 46%, #ed5da8 78%) !important;
    background-position: center, center !important;
    background-repeat: no-repeat !important;
    background-size: 18px, cover !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, .78), 0 3px 0 #70215f, 0 0 16px rgba(255, 94, 178, .5) !important;
}

.auth-check-input:focus-visible {
    outline: 3px solid rgba(126, 255, 229, .76) !important;
    outline-offset: 3px !important;
}

.auth-confirmations {
    display: grid;
    gap: 8px;
    margin: 1px 0 0;
    padding: 14px;
    border: 1px solid rgba(255, 204, 98, .25);
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(75, 34, 126, .34), rgba(8, 6, 39, .54));
    box-shadow: inset 0 1px rgba(255, 255, 255, .09);
}

.auth-confirmations > p {
    margin: 0 0 3px;
    color: #ffdc7e;
    font: 900 9px/1 Inter, Arial, sans-serif;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.auth-form .help-block {
    min-height: 0;
    margin: 5px 2px 0;
    color: #ff9dbc;
    font: 750 11px/1.4 Inter, Arial, sans-serif;
}

.auth-form .help-block:empty {
    display: none;
}

.auth-form-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 2px;
}

.auth-form .button {
    width: auto;
    min-width: 210px;
    min-height: 52px;
    margin: 0;
    border-radius: 16px;
    font-size: 11px;
}

.auth-recovery {
    color: #a6ffe9;
    font: 850 12px/1.3 Inter, Arial, sans-serif;
    text-decoration-color: rgba(115, 255, 227, .48);
    text-underline-offset: 4px;
}

.auth-resend {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 15px;
    transition: border-color .18s ease, background .18s ease;
}

.auth-resend[open] {
    padding: 13px;
    border-color: rgba(158, 128, 237, .34);
    background: rgba(12, 8, 49, .42);
}

.auth-resend summary {
    width: fit-content;
    color: #dcd5ed;
    font: 800 12px/1.4 Inter, Arial, sans-serif;
    cursor: pointer;
}

.auth-resend[open] summary {
    margin-bottom: 12px;
    color: #9affe6;
}

.auth-resend-form {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
}

.auth-resend-form .button {
    min-width: 160px;
}

.auth-divider {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 23px 0 16px;
    color: #bdb4d7;
    font: 900 9px/1 Inter, Arial, sans-serif;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(159, 128, 237, .58));
}

.auth-divider::after {
    transform: scaleX(-1);
}

.google-auth-button {
    position: relative;
    z-index: 1;
    min-height: 49px;
    border: 1px solid rgba(139, 255, 230, .48);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(60, 33, 132, .78), rgba(17, 9, 61, .9));
    box-shadow: inset 0 1px rgba(255, 255, 255, .2), 0 5px 0 rgba(10, 3, 39, .82);
    color: #fff1bd;
    font-size: 10px;
}

.google-auth-button.is-unavailable {
    border-style: dashed;
    opacity: .67;
}

.auth-note,
.auth-switch {
    position: relative;
    z-index: 1;
    margin: 14px 0 0;
    color: #c7bfdc;
    font: 750 11px/1.5 Inter, Arial, sans-serif;
}

.auth-switch a {
    color: #9affe7;
    font-weight: 900;
    text-underline-offset: 3px;
}

@keyframes auth-orbit-drift {
    from { transform: translate3d(-12px, 8px, 0) rotate(-5deg); }
    to { transform: translate3d(14px, -10px, 0) rotate(5deg); }
}

@media (max-width: 980px) {
    .auth-scene,
    .auth-scene-signup {
        grid-template-columns: minmax(250px, .7fr) minmax(470px, 1fr);
        gap: 34px;
        padding-right: 24px;
        padding-left: 24px;
    }

    .auth-intro h1 {
        font-size: 55px;
    }
}

@media (max-width: 760px) {
    .auth-page .account-dock {
        display: none;
    }

    .auth-page .nav-shell {
        grid-template-columns: 40px 1fr 40px;
    }

    .auth-scene,
    .auth-scene-signup {
        display: grid;
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: auto;
        padding: 42px 16px 64px;
        background:
            linear-gradient(180deg, rgba(5, 5, 31, .83), rgba(6, 5, 34, .94)),
            url('../images/coastal-observatory-game-room.png') 50% center / auto 100% no-repeat;
    }

    .auth-scene::before {
        inset: 3% -75px auto auto;
        width: 230px;
        height: 230px;
        opacity: .7;
    }

    .auth-scene::after {
        right: -64px;
        bottom: 4%;
        width: 140px;
        height: 140px;
    }

    .auth-intro {
        max-width: 580px;
        padding: 0 5px;
    }

    .auth-intro::before {
        width: 40px;
        height: 40px;
        margin-bottom: 20px;
        border-radius: 13px;
        font-size: 20px;
    }

    .auth-intro h1 {
        max-width: 360px;
        margin-bottom: 18px;
        font-size: clamp(45px, 14vw, 60px);
        line-height: .86;
    }

    .auth-intro > p:not(.eyebrow) {
        font-size: 15px;
        line-height: 1.55;
    }

    .auth-points {
        margin-top: 20px;
    }

    .auth-panel,
    .auth-panel.auth-panel-wide {
        max-width: none;
        padding: 25px 19px 28px;
        border-radius: 23px;
        box-shadow: inset 0 1px rgba(255, 255, 255, .28), 0 8px 0 rgba(17, 4, 47, .72), 0 26px 56px rgba(0, 0, 0, .46);
    }

    .auth-panel h2 {
        font-size: 38px;
    }

    .auth-panel-lede {
        margin-bottom: 20px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-form-grid .auth-confirmations,
    .auth-form-grid > .button {
        grid-column: auto;
    }

    .auth-form input:not([type="checkbox"]):not([type="hidden"]),
    .auth-form select {
        height: 50px;
        min-height: 50px;
    }

    .auth-confirmations {
        padding: 11px;
    }

    .auth-check-field > label {
        min-height: 46px;
        padding: 9px 10px;
    }

    .auth-form-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 15px;
    }

    .auth-form .button {
        width: 100%;
    }

    .auth-recovery {
        text-align: center;
    }

    .auth-resend-form {
        grid-template-columns: 1fr;
    }

    .auth-resend-form .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-scene::before {
        animation: none;
    }

    .auth-check-field > label,
    .auth-form input,
    .auth-form select {
        transition: none;
        transform: none;
    }
}
