.auth-body {
    background:
        radial-gradient(circle at 16% 14%, rgba(255, 238, 221, .34), transparent 18rem),
        radial-gradient(circle at 38% 84%, rgba(215, 170, 134, .24), transparent 20rem),
        linear-gradient(135deg, rgba(34, 27, 24, .86), rgba(113, 70, 53, .76)),
        linear-gradient(135deg, #f7f1eb, #eadbd0);
    color: var(--app-text);
    min-height: 100vh;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(24rem, .98fr);
    min-height: 100vh;
}

.auth-shell-centered {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 1.5rem;
}

.auth-visual {
    color: #fffaf5;
    display: grid;
    gap: clamp(1.35rem, 2.5vh, 2.4rem);
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 100vh;
    overflow: hidden;
    padding: clamp(2.45rem, 4.7vw, 4.75rem);
    position: relative;
}

.auth-visual::before {
    background:
        linear-gradient(135deg, rgba(255, 250, 245, .14), rgba(255, 250, 245, .04)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .075) 0 1px, transparent 1px 17px);
    background-position: 0 0, 0 0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 1.6rem;
    bottom: clamp(1.85rem, 3.2vw, 3rem);
    content: "";
    left: clamp(1.85rem, 3.2vw, 3rem);
    position: absolute;
    right: clamp(1.85rem, 3.2vw, 3rem);
    top: clamp(1.85rem, 3.2vw, 3rem);
    animation: textileDrift 18s linear infinite;
}

.auth-visual::after {
    background:
        radial-gradient(circle, rgba(255, 250, 245, .18), transparent 64%),
        linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    content: "";
    height: min(28vw, 19rem);
    position: absolute;
    right: 8%;
    top: 14%;
    width: min(28vw, 19rem);
    animation: softFloat 7s ease-in-out infinite;
}

.auth-brand,
.auth-copy,
.auth-showcase {
    position: relative;
    z-index: 1;
}

.auth-brand {
    align-items: center;
    animation: authRise .7s ease both;
    display: flex;
    gap: .85rem;
    position: relative;
}

.auth-brand-mark {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: .85rem;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
    display: inline-flex;
    flex: 0 0 auto;
    height: 3.35rem;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    width: 3.35rem;
}

.auth-brand-mark img {
    border-radius: .85rem;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.auth-brand span:last-child,
.auth-card-header div,
.auth-session-note {
    display: flex;
    flex-direction: column;
}

.auth-brand small,
.auth-copy p {
    color: rgba(255, 250, 245, .74);
}

.auth-kicker {
    color: #f3d4bf;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.auth-copy {
    align-self: end;
    animation: authRise .82s .08s ease both;
    max-width: min(35rem, 88%);
}

.auth-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 4.2vw, 4.25rem);
    line-height: .98;
    margin-bottom: clamp(.75rem, 1.8vh, 1.1rem);
}

.auth-copy p {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 31rem;
}

.auth-showcase {
    animation: authRise .84s .18s ease both;
    display: grid;
    gap: .9rem;
    position: relative;
    width: min(31rem, 88%);
}

.auth-showcase-card {
    align-items: center;
    backdrop-filter: blur(14px);
    background: rgba(255, 250, 245, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 1rem;
    display: flex;
    gap: .75rem;
    padding: .8rem .9rem;
    transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.auth-showcase-card:hover {
    background: rgba(255, 250, 245, .17);
    border-color: rgba(255, 255, 255, .24);
    box-shadow: 0 18px 34px rgba(34, 27, 24, .18);
    transform: translateX(.35rem);
}

.auth-showcase-card i {
    align-items: center;
    background: rgba(255, 250, 245, .16);
    border-radius: .8rem;
    color: #f4cfb6;
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.auth-showcase-card span {
    display: flex;
    flex-direction: column;
    line-height: 1.22;
}

.auth-showcase-card small {
    color: rgba(255, 250, 245, .68);
    margin-top: .15rem;
}

.auth-panel {
    align-items: center;
    background: rgba(255, 253, 250, .92);
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 1.25rem;
    box-shadow: 0 28px 70px rgba(49, 36, 29, .18);
    max-width: 29rem;
    padding: 1.5rem;
    width: 100%;
}

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

.auth-card-header {
    align-items: center;
    display: flex;
    gap: .9rem;
    margin-bottom: 1.4rem;
}

.auth-lock {
    align-items: center;
    background: var(--app-accent-soft);
    border: 1px solid #e6cbbb;
    border-radius: .9rem;
    color: var(--app-accent-dark);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.25rem;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.auth-card h1,
.auth-card h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin: 0;
}

.auth-card p {
    color: var(--app-muted);
    margin: .2rem 0 0;
}

.auth-card .input-icon-field {
    position: relative;
}

.auth-card .input-icon-field > i {
    color: var(--app-muted);
    left: 1rem;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.auth-card .input-icon-field .form-control {
    padding-left: 2.65rem;
}

.auth-card .password-field .form-control {
    padding-right: 3.25rem;
}

.password-toggle {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: .72rem;
    color: var(--app-muted);
    display: inline-flex;
    height: 2.25rem;
    justify-content: center;
    position: absolute;
    right: .48rem;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
    width: 2.25rem;
    z-index: 2;
}

.password-toggle:hover {
    background: var(--app-accent-soft);
    border-color: #e6cbbb;
    box-shadow: 0 10px 22px rgba(112, 77, 61, .14);
    color: var(--app-accent-dark);
    transform: translateY(-50%) scale(1.03);
}

.password-toggle:active {
    transform: translateY(-50%) scale(.97);
}

.password-toggle:focus-visible {
    outline: 0;
    box-shadow: var(--control-focus-shadow);
}

.password-toggle i {
    pointer-events: none;
}

.auth-validation:empty {
    display: none;
}

.auth-submit {
    min-height: 3rem;
    width: 100%;
}

.auth-session-note {
    align-items: center;
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border);
    border-radius: .85rem;
    color: var(--app-muted);
    flex-direction: row;
    font-size: .86rem;
    gap: .55rem;
    margin-top: 1rem;
    padding: .75rem;
}

.auth-session-note i {
    color: var(--app-accent-dark);
}

@keyframes authRise {
    from {
        opacity: 0;
        transform: translateY(.9rem);
    }

    to {
        opacity: 1;
    }
}

@keyframes softFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(-.8rem, .65rem, 0) scale(1.035);
    }
}

@keyframes textileDrift {
    from {
        background-position: 0 0, 0 0;
    }

    to {
        background-position: 0 0, 34px 34px;
    }
}

@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 32rem;
        padding: 1.2rem;
    }

    .auth-visual::before {
        inset: 1rem;
    }

    .auth-panel {
        padding: 1rem;
    }

    .auth-copy {
        max-width: 40rem;
    }

    .auth-showcase {
        width: 100%;
    }
}

@media (min-width: 992px) and (max-height: 860px) {
    .auth-visual {
        gap: clamp(1rem, 1.8vh, 1.45rem);
        padding: clamp(2rem, 3.5vw, 3.25rem);
    }

    .auth-visual::before {
        inset: clamp(1.5rem, 2.8vw, 2.4rem);
    }

    .auth-copy {
        max-width: min(32rem, 88%);
    }

    .auth-copy h1 {
        font-size: clamp(2.4rem, 3.75vw, 3.65rem);
        line-height: .98;
    }

    .auth-copy p {
        font-size: .95rem;
        line-height: 1.55;
        max-width: 30rem;
    }

    .auth-showcase {
        gap: .7rem;
        width: min(30rem, 88%);
    }

    .auth-showcase-card {
        padding: .65rem .75rem;
    }
}

@media (max-width: 575.98px) {
    .auth-visual {
        min-height: auto;
        padding: 6.25rem 1rem 1rem;
    }

    .auth-visual::before {
        inset: .75rem;
    }

    .auth-visual::after,
    .auth-showcase {
        display: none;
    }

    .auth-brand {
        left: auto;
        top: auto;
    }

    .auth-copy {
        max-width: none;
    }

    .auth-copy h1 {
        font-size: 2.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-brand,
    .auth-copy,
    .auth-showcase,
    .auth-visual::before,
    .auth-visual::after {
        animation: none;
    }
}
