/*
 * BioPaw admin sign-in: orange full-bleed backdrop with drifting light,
 * a giant "bp" watermark, walking paw prints (see login-backdrop.blade.php)
 * and a cream card. Everything is scoped to pages using Filament's simple layout.
 */
.fi-body:has(.fi-simple-layout) {
    background-color: #fc6800;
    overflow: hidden;
}

/* ---------- Backdrop ---------- */
.bp-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 85% 10%, #ff8a2b 0%, transparent 55%),
        radial-gradient(90% 80% at 0% 100%, #d94f00 0%, transparent 60%),
        #fc6800;
}

.bp-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
}

.bp-blob-1 {
    width: 46vmax; height: 46vmax; top: -14vmax; left: -8vmax;
    background: #ffa24d; opacity: .55;
    animation: bp-drift-a 22s ease-in-out infinite alternate;
}

.bp-blob-2 {
    width: 38vmax; height: 38vmax; bottom: -16vmax; right: -6vmax;
    background: #ffd27a; opacity: .35;
    animation: bp-drift-b 28s ease-in-out infinite alternate;
}

.bp-blob-3 {
    width: 30vmax; height: 30vmax; top: 35%; left: 40%;
    background: #c94400; opacity: .35;
    animation: bp-drift-c 34s ease-in-out infinite alternate;
}

@keyframes bp-drift-a { to { transform: translate(14vmax, 10vmax) scale(1.15); } }
@keyframes bp-drift-b { to { transform: translate(-16vmax, -8vmax) scale(1.2); } }
@keyframes bp-drift-c { to { transform: translate(-12vmax, 12vmax) scale(.85); } }

.bp-giant-mark {
    position: absolute;
    width: 90vmin;
    right: -20vmin;
    bottom: -34vmin;
    opacity: .08;
    rotate: 14deg;
    animation: bp-float 16s ease-in-out infinite alternate;
}

@keyframes bp-float { to { translate: -2vmin -3vmin; rotate: 10deg; } }

/* ---------- Paw prints ---------- */
.bp-trail { position: absolute; inset: 0; }

.bp-paw {
    position: absolute;
    fill: #fffddc;
    translate: -50% -50%;
    rotate: var(--r);
    opacity: 0;
    animation: bp-step 7s ease-out forwards;
}

.bp-paw-tap { animation-duration: 2.4s; }
.bp-paw-static { animation: none; opacity: .22; }

@keyframes bp-step {
    0%   { opacity: 0;   scale: 1.35; }
    5%   { opacity: .62; scale: .94; }
    9%   { opacity: .55; scale: 1; }
    55%  { opacity: .38; }
    100% { opacity: 0;   scale: 1; }
}

/* ---------- Left hero (desktop) ---------- */
.bp-hero { display: none; }

@media (min-width: 1024px) {
    .bp-hero {
        position: absolute;
        inset: 0 50% 0 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        animation: bp-rise .9s cubic-bezier(.2, .8, .2, 1) both;
    }

    .bp-hero img {
        width: min(24vw, 360px);
        filter: drop-shadow(0 18px 30px rgb(120 40 0 / .28));
    }

    .bp-hero span {
        padding: .4rem 1.1rem;
        border: 1.5px solid rgb(255 253 220 / .7);
        border-radius: 999px;
        color: #fffddc;
        font-size: .75rem;
        font-weight: 700;
        letter-spacing: .28em;
        text-transform: uppercase;
    }

    .fi-simple-layout .fi-simple-main-ctn {
        justify-content: flex-end;
        padding-inline-end: clamp(3rem, 11vw, 12rem);
    }

    /* the hero already shows the logo, so the card doesn't repeat it */
    .fi-simple-main .fi-simple-header .fi-logo { display: none; }
}

/* ---------- Card ---------- */
.fi-simple-layout { position: relative; }
.fi-simple-layout .fi-simple-main-ctn { position: relative; z-index: 1; }

.fi-simple-layout .fi-simple-main {
    position: relative;
    margin-block: 4rem;
    padding: 3.75rem 2.75rem 2.75rem;
    background: #fffddc;
    border: 0;
    border-radius: 2rem;
    box-shadow:
        0 50px 90px -30px rgb(110 35 0 / .55),
        0 18px 36px -18px rgb(110 35 0 / .35),
        inset 0 1px 0 rgb(255 255 255 / .7);
    animation: bp-rise .7s .1s cubic-bezier(.2, .8, .2, 1) both;
}

/* No opacity here on purpose: the sign-in form must never depend on an animation to be visible. */
@keyframes bp-rise {
    from { translate: 0 28px; }
}

/* "bp" badge sitting on the top edge of the card */
.fi-simple-layout .fi-simple-main::before {
    content: "";
    position: absolute;
    top: -2.4rem;
    left: 50%;
    width: 4.8rem;
    height: 4.8rem;
    translate: -50% 0;
    border: 5px solid #fffddc;
    border-radius: 1.5rem;
    background: #fc6800 url("favicon.svg") center / 108% no-repeat;
    box-shadow: 0 14px 24px -10px rgb(110 35 0 / .6);
    animation: bp-badge .9s .35s cubic-bezier(.3, 1.6, .5, 1) both;
}

@keyframes bp-badge {
    from { opacity: 0; scale: .4; rotate: -25deg; }
}

.fi-simple-main .fi-simple-header-heading {
    color: #2b1200;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.fi-simple-main .fi-simple-header-subheading {
    color: #9a4a12;
    font-size: .95rem;
}

/* ---------- Fields ---------- */
.fi-simple-main .fi-fo-field-label-content {
    color: #5a2a06;
    font-weight: 600;
}

.fi-simple-main .fi-input-wrp {
    background: #fff;
    border-radius: .95rem;
    box-shadow: 0 0 0 1px rgb(252 104 0 / .22), 0 2px 6px -2px rgb(110 35 0 / .12);
    transition: box-shadow .2s ease;
}

.fi-simple-main .fi-input-wrp:focus-within {
    box-shadow: 0 0 0 2px #fc6800, 0 0 0 6px rgb(252 104 0 / .18);
}

.fi-simple-main .fi-input {
    padding-block: .8rem;
    padding-inline: 1rem;
    font-size: 1rem;
}

.fi-simple-main .fi-checkbox-input { accent-color: #fc6800; }
.fi-simple-main .fi-checkbox-input:checked { background-color: #fc6800; }

/* ---------- Button ---------- */
.fi-simple-main .fi-btn.fi-color-primary {
    position: relative;
    min-height: 3.25rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff7a1a, #fc6800 55%, #ec5f00);
    color: #fffddc;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: 0 14px 24px -12px rgb(252 104 0 / .9), inset 0 1px 0 rgb(255 255 255 / .35);
    transition: translate .18s ease, box-shadow .18s ease, padding .25s ease;
}

.fi-simple-main .fi-btn.fi-color-primary:hover {
    translate: 0 -2px;
    padding-inline-end: 2.6rem;
    background: linear-gradient(180deg, #ff7a1a, #fc6800 55%, #ec5f00);
    color: #fff;
    box-shadow: 0 20px 30px -12px rgb(252 104 0 / .95), inset 0 1px 0 rgb(255 255 255 / .35);
}

.fi-simple-main .fi-btn.fi-color-primary:active { translate: 0 0; }

/* a paw slides in next to the label on hover */
.fi-simple-main .fi-btn.fi-color-primary::after {
    content: "";
    position: absolute;
    right: calc(50% - 4.4rem);
    width: 1.25rem;
    height: 1.25rem;
    background: url("paw.svg") center / contain no-repeat;
    opacity: 0;
    translate: -10px 0;
    transition: opacity .25s ease, translate .25s ease;
}

.fi-simple-main .fi-btn.fi-color-primary:hover::after {
    opacity: 1;
    translate: 0 0;
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
    .fi-simple-layout .fi-simple-main {
        margin-inline: 1rem;
        padding: 3.5rem 1.5rem 2rem;
        border-radius: 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bp-blob, .bp-giant-mark, .bp-hero,
    .fi-simple-layout .fi-simple-main,
    .fi-simple-layout .fi-simple-main::before { animation: none; }
}
