/*
 * Sign-in / sign-up screen.
 * Loaded after login/assets/css/style.css, so it owns the whole auth layout.
 *
 * Rule of the screen: it never scrolls. Every vertical value is tied to the
 * viewport height with clamp(), so the page fits from a 4K monitor down to a
 * small phone (and to a landscape phone, where the extras drop away).
 */
:root {
    --auth-text: #0f172a;
    --auth-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-brand: #1d7bf0;
    --auth-surface: #ffffff;

    /* vertical rhythm */
    --auth-gap-xs: clamp(3px, 0.5vh, 6px);
    --auth-gap-sm: clamp(5px, 0.9vh, 9px);
    --auth-gap-md: clamp(9px, 1.5vh, 15px);
    --auth-gap-lg: clamp(12px, 2vh, 20px);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body.auth-body,
body {
    margin: 0;
    font-family: "Inter", "Vazirmatn", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--auth-text);
    background: #f4f8ff;
}

/* ------------------------------------------------------------------ */
/* Shell                                                               */
/* ------------------------------------------------------------------ */
.auth-shell {
    display: grid;
    grid-template-columns: 56% 44%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    /* One wash across both columns: the sign-in card sits on the same light the
       artwork does, instead of on a white slab pasted beside it. */
    background: linear-gradient(160deg, #eaf3ff 0%, #f3f8ff 45%, #e9f2ff 100%);
}

/* ---- left / hero ---- */
.auth-hero {
    position: relative;
    /* keeps the decorative circles inside this column */
    overflow: hidden;
    background: transparent;
}

.auth-hero::before,
.auth-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.09);
    pointer-events: none;
}

/* Both discs sit entirely inside the column: they used to hang off the edges and
   the column's overflow cut them into half moons with a hard straight edge. */
.auth-hero::before {
    width: min(38vw, 38vh);
    height: min(38vw, 38vh);
    max-width: 420px;
    max-height: 420px;
    top: clamp(12px, 3vh, 36px);
    right: clamp(12px, 3vw, 44px);
}

.auth-hero::after {
    width: min(26vw, 26vh);
    height: min(26vw, 26vh);
    max-width: 300px;
    max-height: 300px;
    bottom: clamp(12px, 4vh, 48px);
    left: clamp(12px, 3vw, 40px);
    background: rgba(59, 130, 246, 0.07);
}

.auth-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: clamp(18px, 3.4vh, 34px) clamp(20px, 2.8vw, 40px) clamp(14px, 2.4vh, 26px);
}

/* the copy sits as one centred block; everything inside stays left aligned */
.auth-hero-copy {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
}

.auth-hero-brand {
    display: block;
}

.auth-hero-brand img {
    display: block;
    width: clamp(150px, 15vw, 240px);
    height: auto;
}

.auth-hero-title {
    margin: clamp(14px, 3.4vh, 34px) 0 0;
    font-size: clamp(24px, 3vw + 0.4vh, 46px);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -1px;
    color: #0b1b33;
}

.auth-hero-text {
    margin: clamp(8px, 1.6vh, 16px) 0 0;
    max-width: 480px;
    font-size: clamp(14px, 0.5vw + 0.6vh, 17px);
    line-height: 1.6;
    color: #475569;
}

.auth-features {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(12px, 1.6vw, 30px);
    margin: clamp(14px, 3vh, 30px) 0 0;
    padding: 0;
    list-style: none;
}

.auth-features li {
    display: grid;
    min-width: 96px;
}

.auth-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(40px, 3.4vw, 52px);
    height: clamp(40px, 3.4vw, 52px);
    margin-bottom: clamp(6px, 1.2vh, 12px);
    border-radius: 14px;
    font-size: clamp(16px, 1.3vw, 20px);
}

.auth-feature-icon.is-blue   { background: #dbeafe; color: #2563eb; }
.auth-feature-icon.is-green  { background: #d6f5e3; color: #16a34a; }
.auth-feature-icon.is-purple { background: #ece5fe; color: #7c3aed; }
.auth-feature-icon.is-orange { background: #ffe8d4; color: #ea580c; }

.auth-feature-title {
    font-size: clamp(13px, 0.9vw, 15px);
    font-weight: 700;
    color: #0b1b33;
}

.auth-feature-text {
    font-size: clamp(11px, 0.8vw, 13px);
    color: var(--auth-muted);
}

.auth-script {
    position: relative;
    align-self: flex-start;
    margin: clamp(14px, 3vh, 30px) 0 0 6px;
    font-family: "Caveat", "Inter", cursive;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 700;
    line-height: 1.1;
    color: #0b1b33;
    transform: rotate(-6deg);
}

.auth-script svg {
    display: block;
    width: clamp(110px, 10vw, 150px);
    height: 12px;
    margin-top: 2px;
    color: var(--auth-brand);
}

.auth-hero-image {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    /* soaks up the remaining height; the artwork scales, never crops.
       The negative top margin lets it grow up behind the script line — that
       part of the box is empty, so nothing is covered. */
    flex: 1 1 auto;
    min-height: 0;
    margin: clamp(-80px, -7vh, -18px) clamp(-40px, -2.8vw, -20px) 0;
}

.auth-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
}

.auth-dots {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: clamp(4px, 1vh, 10px);
}

.auth-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c7d7ee;
}

.auth-dots span.is-active {
    width: 22px;
    border-radius: 6px;
    background: var(--auth-brand);
}

/* ---- right / form panel ---- */
.auth-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* never clip the card when the content is taller than the panel (browser
       zoom, odd window sizes) — it fits by design, this is only a safety net */
    justify-content: safe center;
    height: 100%;
    min-height: 0;
    /* fits by design; the hidden scrollbar only keeps the card reachable if a
       browser zoom pushes it past the viewport */
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: clamp(12px, 2.4vh, 26px) clamp(16px, 2.6vw, 40px) clamp(14px, 2.6vh, 30px);
    background: transparent;
}

.auth-panel::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.auth-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    width: 100%;
    max-width: 560px;
    margin-bottom: var(--auth-gap-md);
}

.auth-version {
    font-size: 14px;
    color: var(--auth-muted);
}

.auth-topbar-sep {
    width: 1px;
    height: 20px;
    background: var(--auth-border);
}

.auth-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: clamp(36px, 5vh, 42px);
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--auth-border);
    background: var(--auth-surface);
    font-size: 14px;
    font-weight: 500;
    color: var(--auth-text);
    cursor: pointer;
}

.auth-lang-btn img {
    width: 24px;
    height: 17px;
    border-radius: 3px;
    object-fit: cover;
}

.auth-lang-btn i {
    font-size: 12px;
    color: var(--auth-muted);
}

.auth-lang-menu {
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    padding: 6px;
}

.auth-lang-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
}

.auth-lang-menu .dropdown-item img {
    width: 22px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
}

.auth-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 560px;
    padding: clamp(16px, 2.6vh, 26px) clamp(20px, 2.6vw, 46px) clamp(14px, 2.2vh, 22px);
    border-radius: clamp(16px, 2vh, 24px);
    background: var(--auth-surface);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

/* ------------------------------------------------------------------ */
/* Card content                                                        */
/* ------------------------------------------------------------------ */
.auth-card-brand {
    text-align: center;
    margin-bottom: var(--auth-gap-md);
}

.auth-card-logo {
    /* the default logo file carries a wide transparent margin, so the box is
       about twice the size of the artwork you actually see */
    width: clamp(88px, 12vh, 138px);
    height: auto;
}

.auth-card-logo.is-wide {
    width: auto;
    max-width: 230px;
    max-height: clamp(48px, 8vh, 84px);
    object-fit: contain;
}

.auth-card-name {
    margin-top: var(--auth-gap-xs);
    font-size: clamp(19px, 2.5vh, 26px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0b1b33;
}

.auth-card-tagline {
    font-size: clamp(11px, 1.6vh, 13px);
    color: var(--auth-muted);
}

.auth-title {
    margin: 0;
    font-size: clamp(19px, 2.8vh, 27px);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.4px;
    text-align: center;
    color: var(--auth-text);
}

.auth-subtitle {
    margin: var(--auth-gap-xs) 0 var(--auth-gap-md);
    font-size: clamp(12px, 1.7vh, 14px);
    text-align: center;
    color: var(--auth-muted);
}

.auth-form .form-group {
    margin-bottom: var(--auth-gap-md);
}

.auth-form label {
    display: block;
    margin-bottom: var(--auth-gap-sm);
    font-size: clamp(12px, 1.7vh, 14px);
    font-weight: 600;
    color: var(--auth-text);
}

.auth-input {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input > i {
    position: absolute;
    left: 16px;
    font-size: 15px;
    color: #94a3b8;
    pointer-events: none;
}

.auth-form .form-control,
.auth-card .form-control {
    width: 100%;
    height: clamp(42px, 5.6vh, 50px);
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid var(--auth-border);
    background: var(--auth-surface);
    font-size: clamp(13px, 1.9vh, 15px);
    color: var(--auth-text);
    box-shadow: none;
    outline: none;
    transition: 0.2s ease-in-out;
}

.auth-input .form-control {
    padding-left: 46px;
}

.auth-input:has(.auth-eye) .form-control {
    padding-right: 48px;
}

.auth-form .form-control:focus {
    border-color: var(--auth-brand);
    box-shadow: 0 0 0 3px rgba(29, 123, 240, 0.15);
}

.auth-form .form-control::placeholder {
    color: #9aa7b8;
}

.auth-form .form-control.is-invalid {
    border-color: #ef4444;
}

.auth-eye {
    position: absolute;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.auth-form .error,
.auth-form .text-danger {
    display: block;
    margin-top: 5px;
    font-size: 12.5px;
    color: #dc2626;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 var(--auth-gap-md);
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: clamp(12px, 1.8vh, 14px);
    font-weight: 500;
    color: var(--auth-text);
    cursor: pointer;
}

.auth-check input {
    width: clamp(17px, 2.6vh, 20px);
    height: clamp(17px, 2.6vh, 20px);
    margin: 0;
    border-radius: 6px;
    accent-color: var(--auth-brand);
    cursor: pointer;
}

.auth-link {
    font-size: clamp(12px, 1.8vh, 14px);
    font-weight: 500;
    color: var(--auth-brand);
    text-decoration: none;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: clamp(44px, 5.8vh, 52px);
    border: 0;
    border-radius: 14px;
    background: linear-gradient(90deg, #3b8ef7 0%, #1d7bf0 55%, #0f6ae0 100%);
    color: #fff;
    font-size: clamp(14px, 2vh, 16px);
    font-weight: 600;
    box-shadow: 0 14px 26px -12px rgba(29, 123, 240, 0.9);
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.auth-submit:hover {
    filter: brightness(1.04);
}

.auth-submit i {
    font-size: 14px;
}

.auth-or {
    position: relative;
    margin: var(--auth-gap-md) 0;
    text-align: center;
}

.auth-or::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--auth-border);
}

.auth-or span {
    position: relative;
    padding: 4px 16px;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 13px;
    color: var(--auth-muted);
}

.auth-demo {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: clamp(10px, 1.7vh, 14px) 16px;
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
}

.auth-demo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--auth-brand);
    color: #fff;
    font-size: 12px;
}

.auth-demo-title {
    font-size: clamp(12px, 1.8vh, 14px);
    font-weight: 600;
    color: var(--auth-brand);
}

.auth-demo.is-chips {
    display: block;
    padding: clamp(10px, 1.6vh, 14px) clamp(12px, 1.4vw, 16px);
}

.auth-demo-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 9px;
}

.auth-demo.is-chips .auth-demo-icon {
    width: 20px;
    height: 20px;
    font-size: 10px;
}

.auth-demo-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    height: clamp(26px, 3.6vh, 32px);
    padding: 0 clamp(9px, 1vw, 13px);
    border: 1px solid #c7ddfb;
    border-radius: 999px;
    background: var(--auth-surface);
    color: #1b62c9;
    font-size: clamp(11px, 1.5vh, 12.5px);
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.15s ease-in-out;
}

.auth-chip:hover {
    border-color: var(--auth-brand);
    background: #eaf3ff;
}

.auth-chip.is-active {
    border-color: var(--auth-brand);
    background: var(--auth-brand);
    color: #fff;
    box-shadow: 0 6px 14px -8px var(--auth-brand);
}

.auth-demo-note {
    margin-left: auto;
    font-size: clamp(10px, 1.4vh, 11.5px);
    font-weight: 500;
    color: #94a3b8;
}

.auth-demo-body {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 22px;
    margin-top: 2px;
    font-size: clamp(12px, 1.7vh, 13.5px);
    color: #334155;
}

.auth-demo-body strong {
    font-weight: 600;
}

.auth-signup {
    /* the demo box used to sit straight on top of this line while the footer had a
       gap of its own: one rhythm down the tail of the card instead */
    margin: var(--auth-gap-md) 0 0;
    font-size: clamp(12px, 1.8vh, 14px);
    text-align: center;
    color: var(--auth-muted);
}

.auth-signup a,
.auth-footer a {
    color: var(--auth-brand);
    font-weight: 500;
    text-decoration: none;
}

.auth-footer {
    margin-top: var(--auth-gap-sm);
    font-size: clamp(11px, 1.5vh, 12.5px);
    line-height: 1.55;
    text-align: center;
    color: var(--auth-muted);
}

/* registration form reuses the same look */
.auth-form .auth-logo {
    max-width: 210px;
    max-height: clamp(44px, 7vh, 72px);
    height: auto;
}

.auth-form .welcome {
    font-size: clamp(18px, 2.8vh, 24px);
    font-weight: 700;
    color: var(--auth-text);
}

.auth-form .welcome span {
    color: var(--auth-brand);
}

.auth-form .subtitle {
    font-size: clamp(12px, 1.8vh, 15px);
    color: var(--auth-muted);
}

.auth-form .password-wrap {
    position: relative;
}

.auth-form .password-wrap .form-control {
    padding-right: 46px;
}

.auth-form .toggle-eye {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
}

.auth-form select.form-control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.auth-form .form-control[type="file"] {
    padding: 0;
    line-height: clamp(42px, 6.2vh, 52px);
}

.auth-form .form-control[type="file"]::file-selector-button {
    height: clamp(42px, 6.2vh, 52px);
    margin-right: 14px;
    padding: 0 16px;
    border: 0;
    border-right: 1px solid var(--auth-border);
    background: #f1f5f9;
    color: var(--auth-text);
    font-weight: 500;
    cursor: pointer;
}

/* the signup form is the one screen that may need its own scroll area */
.auth-card:has(> .auth-form select[name="shop_category_id"]) {
    max-height: calc(100dvh - clamp(80px, 12vh, 130px));
    overflow-y: auto;
}

.version-text {
    display: none;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 1400px) {
    .auth-shell {
        grid-template-columns: 54% 46%;
    }
}

@media (max-width: 1199px) {
    .auth-shell {
        grid-template-columns: 46% 54%;
    }

    .auth-hero-brand img {
        width: clamp(130px, 17vw, 200px);
    }
}

/* one column: the artwork cannot share the screen without scrolling */
@media (max-width: 991px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        display: none;
    }

    .auth-topbar {
        max-width: 520px;
    }

    .auth-card {
        max-width: 520px;
    }
}

@media (max-width: 575px) {
    .auth-panel {
        padding: 10px 14px 16px;
    }

    .auth-topbar {
        margin-bottom: var(--auth-gap-md);
    }

    .auth-version,
    .auth-topbar-sep {
        display: none;
    }

    .auth-card {
        padding: 18px 18px 16px;
    }

    .auth-demo-body {
        flex-direction: column;
        gap: 1px;
    }
}

/* compact phones with the demo chips: strip the divider and tighten the box */
@media (max-height: 700px) {
    .auth-card:has(.auth-demo-chips) .auth-or,
    .auth-card:has(.auth-demo-chips) .auth-demo-icon {
        display: none;
    }

    .auth-card:has(.auth-demo-chips) .auth-demo {
        margin-top: var(--auth-gap-md);
        padding: 9px 11px;
    }

    .auth-card:has(.auth-demo-chips) .auth-demo-head {
        margin-bottom: 7px;
    }

    .auth-card:has(.auth-demo-chips) .auth-chip {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* compact phones: tighten the lockup so the card still clears the fold */
/* the demo chips add a block of height — trim the extras only on that variant */
@media (max-height: 1080px) {
    .auth-card:has(.auth-demo-chips) .auth-card-tagline {
        display: none;
    }

    .auth-card:has(.auth-demo-chips) .auth-card-logo {
        width: clamp(82px, 10.5vh, 120px);
    }

    .auth-card:has(.auth-demo-chips) .auth-subtitle {
        margin-bottom: var(--auth-gap-md);
    }
}

@media (max-height: 880px) {
    .auth-card:has(.auth-demo-chips) .auth-demo-note,
    .auth-card:has(.auth-demo-chips) .auth-card-tagline,
    .auth-card:has(.auth-demo-chips) .auth-footer {
        display: none;
    }

    .auth-card:has(.auth-demo-chips) .auth-demo-head {
        margin-bottom: 7px;
    }

    .auth-card:has(.auth-demo-chips) .auth-or {
        margin: var(--auth-gap-md) 0;
    }

    .auth-card:has(.auth-demo-chips) .auth-card-logo {
        width: clamp(74px, 9.5vh, 104px);
    }
}

@media (max-height: 720px) {
    :root {
        --auth-gap-md: clamp(8px, 1.4vh, 14px);
        --auth-gap-lg: clamp(10px, 1.9vh, 18px);
    }

    .auth-card-tagline {
        display: none;
    }

    .auth-card-logo {
        width: clamp(70px, 9vh, 96px);
    }

    .auth-card-name {
        font-size: clamp(18px, 2.7vh, 24px);
    }

    .auth-title {
        font-size: clamp(18px, 2.9vh, 24px);
    }

    .auth-topbar {
        margin-bottom: var(--auth-gap-sm);
    }
}

/* short screens (landscape phones): drop the extras so it still fits */
@media (max-height: 640px) {
    .auth-card-tagline,
    .auth-footer,
    .auth-or,
    .auth-demo,
    .auth-demo.is-chips,
    .auth-signup {
        display: none;
    }

    .auth-card-brand {
        margin-bottom: var(--auth-gap-sm);
    }
}

@media (max-height: 470px) {
    .auth-card-logo,
    .auth-card-name,
    .auth-subtitle {
        display: none;
    }

    .auth-topbar {
        display: none;
    }
}

/* ---- sign-in slider ----------------------------------------------------
   Two shapes share this block. With no uploads the original artwork keeps its
   old treatment: it bleeds past the panel edges on purpose, because that PNG is
   mostly transparent. Uploaded photos are opaque and any shape, so they get a
   fixed frame instead — same size for every slide, corners rounded, nothing
   spilling out of the hero. */
.auth-slider {
    position: relative;
    /* a sideways swipe drives the slider; up and down still scroll the page */
    touch-action: pan-y;
    outline: none;
}

/* the picture is dragged, not selected, when someone swipes with a mouse */
.auth-slider img {
    user-select: none;
    -webkit-user-drag: none;
}

.auth-slider:focus-visible {
    outline: 2px solid var(--auth-brand);
    outline-offset: 6px;
    border-radius: 12px;
}

/* Every slide fills the hero image box, which already has a definite height from
   the column flex layout. Leaving a slide in normal flow instead would give the
   <figure> an auto height, the image's height:100% would resolve to auto, and the
   artwork would render at its natural 1536x1024 and swamp the panel on wide screens. */
.auth-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease;
}

.auth-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.auth-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
}

/* ---- uploaded images ---- */
.auth-slider.has-uploads {
    /* no negative bleed: that was tuned for the transparent default artwork */
    flex: 0 1 auto;
    width: min(100%, 760px);
    margin: clamp(4px, 1vh, 12px) auto 0;
    aspect-ratio: 3 / 2;
    max-height: min(52vh, 470px);
    /* no plate and no shadow: the artwork sits straight on the hero background */
    background: none;
}

/* contain, not cover: an uploaded photo or the shipped artwork is shown whole.
   Cropping to fill would cut the edges off whatever the admin chose. */
.auth-slider.has-uploads .auth-slide img {
    object-fit: contain;
    object-position: center;
}

.auth-dots span {
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

@media (max-width: 991px) {
    .auth-slider.has-uploads {
        max-height: 44vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-slide {
        transition: none;
    }
}
