* {
    box-sizing: border-box;
    margin: 0;
    -webkit-tap-highlight-color: transparent
}

:root {
    --bg: #000;
    --fg: #f5f5f7;
    --mute: rgba(235, 235, 245, .6);
    --glass: rgba(30, 30, 32, .72);
    --line: rgba(255, 255, 255, .1);
    --red: #ff375f;
    --ease: cubic-bezier(.2, .7, .2, 1);
    color-scheme: dark
}

html {
    background: #000
}

body {
    background: var(--bg);
    color: var(--fg);
    font: 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100dvh;
    display: flex;
    flex-direction: column
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0
}

:focus-visible {
    outline: 2px solid #0a84ff;
    outline-offset: 2px
}

.i {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
    transition: fill .2s
}

/* header */
#top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--glass);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    backdrop-filter: saturate(180%) blur(22px);
    border-bottom: 1px solid var(--line);
    padding-top: env(safe-area-inset-top);
    transition: transform .3s var(--ease)
}

#top.hide {
    transform: translateY(-100%)
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 14px 2px
}

h1 {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.02em
}

.acts {
    display: flex;
    gap: 8px;
    align-items: center
}

.btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .09);
    transition: background .15s, transform .15s var(--ease)
}

.btn:active {
    transform: scale(.92)
}

.btn:disabled {
    opacity: .25;
    pointer-events: none
}

@media(hover:hover) {
    .btn:hover {
        background: rgba(255, 255, 255, .18)
    }
}

.seg {
    display: flex;
    background: rgba(255, 255, 255, .09);
    border-radius: 19px;
    padding: 2px;
    position: relative
}

.seg button {
    width: 38px;
    height: 34px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: var(--mute);
    position: relative;
    z-index: 1;
    transition: color .2s
}

.seg button[aria-pressed=true] {
    color: #000
}

.seg i {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 38px;
    height: 34px;
    border-radius: 17px;
    background: #fff;
    transition: transform .28s var(--ease)
}

.seg[data-l=cozy] i {
    transform: translateX(38px)
}

.tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 6px 14px 9px;
    -webkit-overflow-scrolling: touch
}

.tabs::-webkit-scrollbar {
    display: none
}

.tab {
    flex: none;
    height: 36px;
    padding: 0 14px;
    border-radius: 18px;
    color: var(--mute);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background .2s, color .2s, transform .15s var(--ease)
}

.tab:active {
    transform: scale(.95)
}

.tab .i {
    width: 16px;
    height: 16px
}

.tab[aria-selected=true] {
    background: #fff;
    color: #000
}

.tab[data-c=favs] .i {
    color: var(--red)
}

.tab[aria-selected=true][data-c=favs] .i {
    fill: currentColor
}

.bd {
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .16)
}

.tab[aria-selected=true] .bd {
    background: rgba(0, 0, 0, .1)
}

#sb {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .25s var(--ease);
    padding: 0 14px
}

#sb.on {
    grid-template-rows: 1fr
}

#sb>div {
    overflow: hidden
}

.field {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    margin: 4px 0 8px;
    padding: 0 6px 0 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    color: var(--mute)
}

.field input {
    flex: 1;
    min-width: 0;
    background: none;
    border: 0;
    color: var(--fg);
    outline: 0;
    font: inherit;
    font-size: 16px
}

.field button {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center
}

@media(min-width:820px) {
    #top {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        padding: 6px 22px 6px
    }

    .row {
        display: contents
    }

    .brand {
        grid-column: 1
    }

    .tabs {
        grid-column: 2;
        grid-row: 1;
        padding: 0
    }

    .acts {
        grid-column: 3;
        justify-self: end
    }

    #sb {
        grid-column: 1/-1;
        padding: 0
    }
}

/* gallery */
main {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto
}

.meta {
    padding: 18px 16px 12px
}

.meta h2 {
    font-size: 28px;
    letter-spacing: -.02em;
    line-height: 1.15
}

#mc {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--mute);
    font-size: 13px;
    margin-top: 2px
}

#mc .i {
    width: 15px;
    height: 15px
}

#gal {
    padding: 0 2px
}

#gal.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 2px
}

#gal.cozy {
    columns: 1;
    column-gap: 14px;
    padding: 0 14px;
    max-width: 720px;
    margin: 0 auto
}

@media(min-width:760px) {
    #gal.grid {
        grid-template-columns: repeat(auto-fill, minmax(168px, 1fr))
    }

    #gal.cozy {
        columns: 2;
        max-width: none
    }
}

@media(min-width:1180px) {
    #gal.cozy {
        columns: 3
    }
}

.tile {
    position: relative;
    overflow: hidden;
    background: #1c1c1e;
    transition: opacity .2s, transform .2s var(--ease)
}

.grid .tile {
    aspect-ratio: 1
}

.cozy .tile {
    aspect-ratio: var(--ar, auto);
    margin-bottom: 14px;
    border-radius: 14px;
    break-inside: avoid
}

.tile .open {
    display: block;
    width: 100%;
    height: 100%
}

.tile img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0;
    transition: transform .5s var(--ease), opacity .4s
}

.tile img.ld {
    opacity: 1
}

@media(hover:hover) {
    .tile:hover img {
        transform: scale(1.04)
    }
}

.tile.leaving {
    opacity: 0;
    transform: scale(.92)
}

.fav {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    transition: transform .15s var(--ease), opacity .2s
}

.tile .fav {
    position: absolute;
    right: 5px;
    bottom: 5px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6));
    opacity: .9
}

.tile .fav .i {
    width: 18px;
    height: 18px
}

.fav:active {
    transform: scale(.86)
}

.fav[aria-pressed=true] {
    color: var(--red)
}

.fav[aria-pressed=true] .i {
    fill: currentColor
}

.tile .fav[aria-pressed=true] {
    opacity: 1
}

@media(hover:hover) {
    .tile .fav {
        opacity: 0
    }

    .tile:hover .fav,
    .tile .fav:focus-visible,
    .tile .fav[aria-pressed=true] {
        opacity: 1
    }
}

.pop .i {
    animation: pop .34s var(--ease)
}

@keyframes pop {
    45% {
        transform: scale(1.28)
    }
}

#empty {
    display: none;
    text-align: center;
    padding: 10vh 24px 8vh
}

#empty.on {
    display: block;
    animation: fade .4s var(--ease)
}

@keyframes fade {
    from {
        opacity: 0
    }
}

.orb {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .4)
}

.orb .i {
    width: 28px;
    height: 28px;
    stroke-width: 1.5
}

#et {
    font-size: 17px
}

#es {
    color: var(--mute);
    font-size: 14px;
    margin-top: 6px
}

/* signature */
.sig {
    display: flex;
    justify-content: center;
    padding: 56px 16px calc(40px + env(safe-area-inset-bottom));
    position: relative
}

.sig::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 50%;
    width: min(280px, 60%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent)
}

.sig a {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: .45em;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: var(--mute);
    font: italic 400 14px/1.2 ui-serif, "New York", Georgia, "Times New Roman", serif;
    text-decoration: none;
    transition: background .25s, border-color .25s, transform .25s var(--ease)
}

.sig .hrt {
    color: var(--red);
    font-style: normal;
    display: inline-block
}

.sig .nm {
    font-style: normal;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: .01em;
    color: var(--fg);
    background: linear-gradient(currentColor, currentColor) 0 100%/0 1px no-repeat;
    transition: background-size .35s var(--ease)
}

.sig .i {
    width: 13px;
    height: 13px;
    align-self: center;
    opacity: .45;
    transition: opacity .25s, transform .25s var(--ease)
}

.sig a:hover,
.sig a:focus-visible {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .07);
    transform: translateY(-1px)
}

.sig a:hover .nm,
.sig a:focus-visible .nm {
    background-size: 100% 1px
}

.sig a:hover .i,
.sig a:focus-visible .i {
    opacity: .9;
    transform: translate(1px, -1px)
}

.sig a:hover .hrt,
.sig a:focus-visible .hrt {
    animation: pop .8s var(--ease)
}

/* viewer */
#v {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: #000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s var(--ease), visibility 0s .22s
}

#v.open {
    opacity: 1;
    visibility: visible;
    transition: opacity .22s var(--ease)
}

.stage {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    touch-action: none;
    transform: scale(.97);
    transition: transform .28s var(--ease)
}

#v.open .stage {
    transform: none
}

#vi {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transform: translate(var(--x, 0), var(--y, 0)) scale(var(--z, 1));
    transition: transform .25s var(--ease)
}

#v.drag #vi {
    transition: none
}

.chrome {
    transition: opacity .22s, transform .22s var(--ease)
}

.hide-ui .chrome {
    opacity: 0 !important;
    pointer-events: none
}

.top {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: calc(env(safe-area-inset-top) + 8px) 10px 28px;
    background: linear-gradient(rgba(0, 0, 0, .65), transparent)
}

.hide-ui .top {
    transform: translateY(-10px)
}

#vt {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    padding-left: 4px
}

#vt b {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

#vt span {
    font-size: 12px;
    color: var(--mute)
}

.top .btn,
.zoom,
.nav {
    background: rgba(58, 58, 60, .55);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px)
}

.top .fav {
    width: 38px;
    height: 38px;
    background: rgba(58, 58, 60, .55);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px)
}

.top .fav .i {
    width: 20px;
    height: 20px
}

.dl {
    height: 40px;
    padding: 0 16px 0 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: background .25s, color .25s, box-shadow .25s, transform .15s var(--ease)
}

.dl:active {
    transform: scale(.95)
}

.dl .ic {
    position: relative;
    width: 20px;
    height: 20px;
    flex: none
}

.dl .ic>* {
    position: absolute;
    inset: 0;
    transition: opacity .2s, transform .28s var(--ease)
}

.dl .sp {
    inset: 1px;
    border: 2px solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    border-radius: 50%;
    opacity: 0;
    transform: scale(.6)
}

.dl .ok {
    opacity: 0;
    transform: scale(.5)
}

@media(hover:hover) {
    .dl:hover {
        background: rgba(255, 255, 255, .24);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3)
    }

    .dl:hover .a {
        transform: translateY(2px)
    }
}

.dl[data-s=load] .a,
.dl[data-s=done] .a {
    opacity: 0;
    transform: translateY(5px)
}

.dl[data-s=load] .sp {
    opacity: 1;
    transform: none;
    animation: spin .7s linear infinite
}

.dl[data-s=done] {
    background: rgba(48, 209, 88, .22);
    color: #30d158;
    box-shadow: inset 0 0 0 1px rgba(48, 209, 88, .5)
}

.dl[data-s=done] .ok {
    opacity: 1;
    transform: none
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@media(max-width:480px) {
    .dl {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        padding: 0;
        justify-content: center
    }

    .dl .lb {
        display: none
    }
}

#menu {
    position: absolute;
    right: 10px;
    top: calc(env(safe-area-inset-top) + 56px);
    min-width: 180px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(44, 44, 46, .92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    z-index: 3
}

#menu[hidden] {
    display: none
}

#menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 9px;
    font-size: 15px;
    text-align: left
}

@media(hover:hover) {
    #menu button:hover {
        background: rgba(255, 255, 255, .1)
    }
}

.nav {
    position: absolute;
    top: 50%;
    margin-top: -22px;
    width: 44px;
    height: 44px;
    display: none
}

@media(hover:hover) and (pointer:fine) {
    .nav {
        display: grid
    }
}

#vp {
    left: 16px
}

#vn {
    right: 16px
}

.zoom {
    position: absolute;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom) + 18px);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    border-radius: 22px;
    padding: 3px
}

.hide-ui .zoom {
    transform: translate(-50%, 10px)
}

.zoom .btn {
    background: none;
    width: 40px;
    height: 38px
}

#zl {
    min-width: 46px;
    text-align: center;
    font-size: 12px;
    color: var(--mute);
    font-variant-numeric: tabular-nums
}

#toast {
    position: fixed;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom) + 76px);
    transform: translate(-50%, 10px);
    z-index: 60;
    padding: 10px 16px;
    border-radius: 20px;
    background: rgba(58, 58, 60, .92);
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .25s var(--ease)
}

#toast.on {
    opacity: 1;
    transform: translate(-50%, 0)
}

/* intro / landing */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0
}

#intro {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: #000;
    color: #fff;
    overflow: hidden;
    display: grid;
    place-items: center;
    transition: opacity .7s var(--ease)
}

#intro.leaving {
    opacity: 0;
    pointer-events: none
}

#intro.gone {
    visibility: hidden;
    pointer-events: none
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--f, 50% 40%);
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.2s var(--ease), transform 2.4s var(--ease)
}

@media(max-aspect-ratio:1/1) {
    .hero-img {
        object-position: var(--fm, 50% 40%)
    }
}

.hero-img.ld {
    opacity: 1;
    transform: none
}

#intro.leaving .hero-img {
    transform: scale(1.08);
    transition: transform .8s var(--ease)
}

.shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 50% 40%, rgba(0, 0, 0, .12), rgba(0, 0, 0, .55)), linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .62))
}

.intro-in {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 760px;
    padding: calc(env(safe-area-inset-top) + 24px) 24px calc(env(safe-area-inset-bottom) + 40px);
    transition: opacity .5s, transform .7s var(--ease)
}

#intro.leaving .intro-in {
    opacity: 0;
    transform: translateY(-14px)
}

.lab {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .34em;
    padding-left: .34em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
    margin-bottom: 22px
}

.hd {
    font: 400 clamp(40px, 9vw, 92px)/1.04 ui-serif, "New York", Georgia, "Times New Roman", serif;
    letter-spacing: -.015em;
    text-wrap: balance;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .35)
}

.ev {
    margin-top: 20px;
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75)
}

.sub {
    margin-top: 20px;
    max-width: 30em;
    font-size: clamp(15px, 2.4vw, 18px);
    line-height: 1.55;
    color: rgba(255, 255, 255, .82)
}

.enter {
    margin-top: 34px;
    min-height: 52px;
    padding: 0 24px 0 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .02em;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .38);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transition: background .25s, border-color .25s, transform .2s var(--ease)
}

.enter .i {
    transition: transform .3s var(--ease)
}

.enter:active {
    transform: scale(.96)
}

@media(hover:hover) {
    .enter:hover {
        background: rgba(255, 255, 255, .22);
        border-color: rgba(255, 255, 255, .6);
        transform: translateY(-1px)
    }

    .enter:hover .i {
        transform: translateX(4px)
    }

    .enter:active {
        transform: scale(.96)
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px)
    }
}

#intro.play .x {
    animation: rise .8s var(--ease) both
}

#intro.play .lab {
    animation-delay: .35s
}

#intro.play .hd {
    animation-delay: .5s
}

#intro.play .ev {
    animation-delay: .65s
}

#intro.play .sub {
    animation-delay: .72s
}

#intro.play .enter {
    animation-delay: .95s
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important
    }

    #intro.play .x {
        animation-delay: 0s !important
    }
}

/* ===== AUTH SCREEN (new) ===== */
#auth {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #000;
    color: var(--fg);
    display: flex;
    justify-content: center;
    padding: 24px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch
}

body[data-auth="approved"] #auth {
    display: none !important
}

body[data-auth]:not([data-auth="approved"]) #auth {
    display: flex
}

body[data-auth]:not([data-auth="approved"]) #intro,
body[data-auth]:not([data-auth="approved"]) #top,
body[data-auth]:not([data-auth="approved"]) main,
body[data-auth]:not([data-auth="approved"]) .sig {
    display: none !important
}

.auth-wrapper {
    margin: auto;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px
}

.auth-card {
    background: rgba(28, 28, 30, .72);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 24px;
    padding: 28px 24px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    animation: authIn .4s var(--ease) both
}

@keyframes authIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98)
    }
}

.auth-brand {
    text-align: center;
    margin-bottom: 22px
}

.auth-brand-title {
    font: 400 26px/1.15 ui-serif, "New York", Georgia, "Times New Roman", serif;
    letter-spacing: -.015em;
    margin: 0 0 6px;
    color: var(--fg)
}

.auth-brand-sub {
    color: var(--mute);
    font-size: 13px;
    margin: 0
}

.auth-tabs {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, .06);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px
}

.auth-tabs button {
    flex: 1;
    height: 36px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    color: var(--mute);
    position: relative;
    z-index: 1;
    transition: color .25s var(--ease)
}

.auth-tabs button[aria-selected="true"] {
    color: #fff
}

.auth-tabs-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: 36px;
    background: rgba(255, 255, 255, .12);
    border-radius: 9px;
    transition: transform .3s var(--ease);
    pointer-events: none
}

.auth-tabs[data-active="signup"] .auth-tabs-indicator {
    transform: translateX(100%)
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.auth-form[hidden] {
    display: none
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative
}

.auth-field span {
    font-size: 12px;
    color: var(--mute);
    font-weight: 500;
    padding-left: 2px
}

.auth-field input {
    height: 44px;
    padding: 0 44px 0 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .05);
    color: var(--fg);
    font: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color .2s, background .2s
}

.auth-field input:focus {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .08)
}

.auth-field input:disabled {
    opacity: .55
}

.auth-field input::placeholder {
    color: rgba(235, 235, 245, .35)
}

.auth-eye {
    position: absolute;
    right: 8px;
    bottom: 7px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--mute);
    transition: color .2s, background .2s
}

.auth-eye:hover {
    color: var(--fg);
    background: rgba(255, 255, 255, .08)
}

.auth-eye .i {
    width: 16px;
    height: 16px
}

.auth-btn {
    min-height: 46px;
    padding: 0 20px;
    border-radius: 23px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    color: var(--fg);
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s, transform .15s var(--ease)
}

.auth-btn:active {
    transform: scale(.97)
}

.auth-btn:disabled {
    opacity: .5;
    pointer-events: none
}

.auth-btn.primary {
    background: #fff;
    color: #000;
    border-color: #fff;
    font-weight: 600
}

@media(hover:hover) {
    .auth-btn:hover {
        background: rgba(255, 255, 255, .18)
    }

    .auth-btn.primary:hover {
        background: #e8e8e8
    }
}

.auth-link {
    background: none;
    border: 0;
    color: var(--mute);
    font-size: 13px;
    padding: 6px;
    cursor: pointer;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s
}

.auth-link:hover {
    color: var(--fg)
}

.auth-inline-link {
    text-align: center;
    margin-top: 4px
}

.auth-error,
.auth-message {
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 10px;
    margin: 0;
    text-align: left;
    line-height: 1.4
}

.auth-error {
    color: #ff453a;
    background: rgba(255, 69, 58, .1);
    border: 1px solid rgba(255, 69, 58, .2)
}

.auth-message {
    color: #30d158;
    background: rgba(48, 209, 88, .1);
    border: 1px solid rgba(48, 209, 88, .2)
}

.auth-spinner {
    width: 36px;
    height: 36px;
    border: 2.5px solid rgba(255, 255, 255, .12);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto 16px
}

.auth-card-center {
    text-align: center
}

.auth-card-center .auth-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    color: rgba(255, 255, 255, .6)
}

.auth-card-center .auth-icon .i {
    width: 24px;
    height: 24px
}

.auth-card-center h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px;
    letter-spacing: -.01em
}

.auth-card-center p {
    color: var(--mute);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px
}

.auth-card-center .auth-actions {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.auth-card-center .auth-message {
    margin-bottom: 14px
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    padding: 0 20px;
    border-radius: 23px;
    background: rgba(37, 211, 102, .12);
    border: 1px solid rgba(37, 211, 102, .28);
    color: #25D366;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s, transform .15s var(--ease)
}

.whatsapp-btn:active {
    transform: scale(.97)
}

.whatsapp-btn .i {
    width: 18px;
    height: 18px
}

.whatsapp-btn .i,
.whatsapp-mini .i {
    fill: currentColor;
    stroke: none
}

@media(hover:hover) {
    .whatsapp-btn:hover {
        background: rgba(37, 211, 102, .2)
    }
}

.whatsapp-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #25D366;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 14px;
    background: rgba(37, 211, 102, .08);
    transition: background .2s
}

.whatsapp-mini:hover {
    background: rgba(37, 211, 102, .16)
}

.whatsapp-mini .i {
    width: 14px;
    height: 14px
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--mute);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin: 18px 0 14px;
    font-weight: 500
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line)
}

.auth-wa-row {
    display: flex;
    justify-content: center
}

.auth-sig {
    display: flex;
    justify-content: center;
    padding-bottom: env(safe-area-inset-bottom)
}

.auth-sig a {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: .4em;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: var(--mute);
    font: italic 400 13px/1.2 ui-serif, "New York", Georgia, "Times New Roman", serif;
    text-decoration: none;
    transition: background .25s, border-color .25s
}

.auth-sig .hrt {
    color: var(--red);
    font-style: normal;
    display: inline-block
}

.auth-sig .nm {
    font-style: normal;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .01em;
    color: var(--fg)
}

.auth-sig .i {
    width: 12px;
    height: 12px;
    opacity: .45;
    align-self: center
}

@media(hover:hover) {
    .auth-sig a:hover {
        border-color: rgba(255, 255, 255, .24);
        background: rgba(255, 255, 255, .06)
    }
}

.intro-logout {
    position: absolute;
    top: calc(env(safe-area-inset-top) + 16px);
    right: 16px;
    z-index: 5;
    padding: 8px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: background .2s
}

.intro-logout .i {
    width: 14px;
    height: 14px
}

.intro-logout:hover {
    background: rgba(255, 255, 255, .18)
}