/*
 * Architectural Sketch Reveal / Laravel Blade
 * A stationary architectural sketch gently fades between two opacity levels.
 * No SVG tracing, video, canvas, backdrop-filter, or animation library.
 */
:root {
    --sketch-paper: linear-gradient(180deg, #F0F0F0, #f5ffe5);
}

/* Background only. Never intercept form clicks or accessibility focus. */
.login-ambient-sketch {
    --sketch-opacity-min: .35;
    --sketch-opacity-max: .55;
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    background: var(--sketch-paper);
}

.login-ambient-sketch__scene {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-image: url('../images/login-background-desktop.avif');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% auto;
    opacity: var(--sketch-opacity-min);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
    will-change: opacity;
    animation: sketch-fade 12s ease-in-out infinite alternate;
}

@media (min-width: 1600px) {
    .login-ambient-sketch__scene {
        background-image: url('../images/login-background-desktop-hq.avif');
    }
}
@media (max-width: 1024px) {
    .login-ambient-sketch__scene {
        background-image: url('../images/login-background-desktop-hq.avif');
    }
}
@media (max-width: 767px) {
    .login-ambient-sketch__scene {
        background-image: url('../images/login-background-desktop-hq.avif');
        height: 100%;
        background-size: cover;
    }
}

@keyframes sketch-fade {
    from { opacity: var(--sketch-opacity-min); }
    to { opacity: var(--sketch-opacity-max); }
}

/* Keep the sketch visible at its quietest level when motion or data is reduced. */
@media (prefers-reduced-motion: reduce) {
    .login-ambient-sketch__scene { animation: none !important; will-change: auto; }
}
@media (prefers-reduced-data: reduce) {
    .login-ambient-sketch__scene { animation: none !important; will-change: auto; }
}

/* Optional script adds .sketch-ambient-paused when the tab is hidden. */
.sketch-ambient-paused .login-ambient-sketch__scene { animation-play-state: paused; }
