/* Login v2 — keeps the original login-background.css image/drift as-is
   (the real wallpaper: login-graphite-v1.png, same silk/chrome concept as
   the logo). This file only layers a quiet starfield + card polish on top. */

:root {
    --lg-silver: #e8ecf2;
    --lg-silver-dim: #8b93a3;
}

body.smart-login-background {
    overflow-x: hidden;
}

/* faint grain so the wallpaper gradients don't band */
.smart-login-background .lg-grain {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: .04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* starfield + chrome light-sweep canvas, between the vignette and the card */
#lg-particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.smart-login-background.motion-paused::before { animation-play-state: paused; }

/* ---------- Card: still glass, no spinning border — a quiet static frame ---------- */
.login-card-frame {
    position: relative;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(155deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .02) 40%, rgba(255, 255, 255, .08));
    box-shadow: 0 24px 70px -28px rgba(0, 0, 0, .8);
}

.login-glass {
    position: relative;
    background: rgba(20, 22, 27, .6);
    border: 1px solid rgba(255, 255, 255, .07);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    border-radius: 17px;
    animation: fadeInUp .7s cubic-bezier(.16, 1, .3, 1);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* logo: quiet chrome glow pulse, matches the metallic artwork instead of adding color */
.login-glass img {
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, .18));
    animation: lg-logo-pulse 5s ease-in-out infinite;
}

@keyframes lg-logo-pulse {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 255, 255, .12)); }
    50%      { filter: drop-shadow(0 0 20px rgba(255, 255, 255, .28)); }
}

/* ---------- Inputs: silver glow-on-focus ---------- */
.login-glass .form-control {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #f2f4fb;
    transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.login-glass .form-control::placeholder { color: rgba(255, 255, 255, .35); }

.login-glass .form-control:focus {
    background: rgba(255, 255, 255, .07);
    border-color: var(--lg-silver);
    box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .12),
                0 0 20px -6px rgba(255, 255, 255, .5);
    color: #fff;
}

/* ---------- Button: quiet brushed-metal, only reacts on hover ---------- */
.login-glass #btn-login {
    position: relative;
    background: linear-gradient(135deg, #3a3f4b, #14161b);
    border: 1px solid rgba(255, 255, 255, .14);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.login-glass #btn-login:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .28);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6);
}

/* ---------- Respect reduced motion & keep it usable everywhere ---------- */
@media (prefers-reduced-motion: reduce) {
    .smart-login-background::before,
    .login-glass img {
        animation: none !important;
    }
    #lg-particles { display: none; }
}

@media (max-width: 480px) {
    #lg-particles { opacity: .7; }
}
