:root {
    --ig-navy: #07162f;
    --ig-navy-light: #102852;
    --ig-blue: #132f64;
    --ig-gold: #caa64d;
    --ig-gold-light: #f0d37d;
    --ig-white: #ffffff;
    --ig-muted: #8290a2;
    --ig-dark-text: #111b2d;
    --ig-card: rgba(255, 255, 255, .96);
    --ig-border: rgba(202, 166, 77, .28);
    --ig-shadow: 0 35px 90px rgba(0, 8, 25, .42);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Arial, Verdana, sans-serif;
    color: var(--ig-white);
    background: var(--ig-navy);
}

button,
input {
    font: inherit;
}

img {
    max-width: 100%;
}

.ig-login-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    background: var(--ig-navy);
}

/* =========================================================
   BACKGROUND VIDEO
========================================================= */

.ig-video-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #06132a;
    pointer-events: none;
}

.ig-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;

    width: 100vw;
    height: 56.25vw;

    min-width: 177.78vh;
    min-height: 100vh;

    border: 0;
    transform: translate(-50%, -50%) scale(1.12);
    transform-origin: center;
    pointer-events: none;
}

/* This remains behind the iframe and appears only while video loads */
.ig-video-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        radial-gradient(
            circle at 76% 32%,
            rgba(202, 166, 77, .25),
            transparent 30%
        ),
        linear-gradient(
            130deg,
            #07162f 0%,
            #0c2349 50%,
            #07162f 100%
        );
}

/* Premium dark tint above the video */
.ig-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(3, 12, 30, .95) 0%,
            rgba(5, 18, 42, .82) 44%,
            rgba(4, 14, 32, .64) 100%
        ),
        linear-gradient(
            180deg,
            rgba(1, 7, 18, .10),
            rgba(1, 7, 18, .65)
        );
}

.ig-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: .14;
    pointer-events: none;

    background:
        linear-gradient(
            rgba(255, 255, 255, .08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .08) 1px,
            transparent 1px
        );

    background-size: 90px 90px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

/* =========================================================
   MAIN PAGE
========================================================= */

.ig-login-shell {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding: 28px clamp(24px, 4vw, 68px) 22px;
}

.ig-topbar,
.ig-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ig-brand {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    border: 0;
    border-radius: 17px;
    text-decoration: none;
}

.ig-brand img {
    display: block;
    width: clamp(235px, 20vw, 320px);
    max-height: 86px;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .28));
}

.ig-secure-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;

    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;

    background: rgba(4, 16, 38, .48);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

    color: rgba(255, 255, 255, .86);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
}

.ig-secure-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64d899;
    box-shadow: 0 0 0 5px rgba(100, 216, 153, .13);
}

/* =========================================================
   HERO + LOGIN LAYOUT
========================================================= */

.ig-content {
    flex: 1;
    width: min(1450px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(410px, .62fr);
    align-items: center;
    gap: clamp(42px, 6vw, 110px);

    padding: 42px 0;
}

.ig-hero-copy {
    max-width: 810px;
}

.ig-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 13px;

    color: var(--ig-gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
}

.ig-eyebrow::before {
    content: "";
    width: 42px;
    height: 1px;
    background: currentColor;
}

.ig-hero-copy h1 {
    margin: 22px 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(52px, 5.2vw, 88px);
    line-height: .98;
    letter-spacing: -.045em;

    text-shadow: 0 14px 40px rgba(0, 0, 0, .28);
}

.ig-hero-copy h1 span {
    display: block;
    color: var(--ig-gold-light);
}

.ig-hero-copy > p {
    max-width: 700px;
    margin: 0;

    color: rgba(255, 255, 255, .74);
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.8;
}

.ig-benefits {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.ig-benefits article {
    min-height: 160px;
    padding: 20px;

    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .11),
            rgba(255, 255, 255, .045)
        );

    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);

    box-shadow: 0 18px 46px rgba(0, 0, 0, .12);
    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease;
}

.ig-benefits article:hover {
    transform: translateY(-6px);
    border-color: rgba(240, 211, 125, .38);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .15),
            rgba(255, 255, 255, .06)
        );
}

.ig-benefits article > span {
    display: block;
    margin-bottom: 27px;

    color: var(--ig-gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
}

.ig-benefits h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
}

.ig-benefits p {
    margin: 0;
    color: rgba(255, 255, 255, .60);
    font-size: 12px;
    line-height: 1.6;
}

/* =========================================================
   LOGIN CARD
========================================================= */

.ig-login-card-wrap {
    display: flex;
    justify-content: flex-end;
}

.ig-login-card {
    position: relative;
    width: min(100%, 490px);
    padding: clamp(28px, 3vw, 42px);
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 26px;

    background: var(--ig-card);
    color: var(--ig-dark-text);

    box-shadow: var(--ig-shadow);

    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

.ig-login-card::before {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    top: -145px;
    right: -90px;
    border-radius: 50%;
    background: rgba(202, 166, 77, .11);
}

.ig-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            var(--ig-navy),
            var(--ig-gold-light),
            var(--ig-navy)
        );
}

.ig-mobile-logo {
    display: none;
    position: relative;
    z-index: 1;
    width: fit-content;
    padding: 9px 13px;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(7, 22, 47, .16);
}

.ig-mobile-logo img {
    width: 230px;
    max-height: 78px;
    object-fit: contain;
}

.ig-form-heading,
.ig-login-form,
.ig-demo-box,
.ig-support,
.ig-alert {
    position: relative;
    z-index: 1;
}

.ig-form-heading > span {
    color: #9c782d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
}

.ig-form-heading h2 {
    margin: 12px 0 9px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 3vw, 46px);
    line-height: 1.06;
    letter-spacing: -.035em;

    color: var(--ig-navy);
}

.ig-form-heading p {
    margin: 0 0 29px;
    color: #697588;
    line-height: 1.65;
}

.ig-alert {
    border: 1px solid rgba(185, 56, 56, .16);
    border-radius: 13px;
    background: rgba(185, 56, 56, .08);
    color: #a93030;
}

.ig-login-form {
    display: grid;
    gap: 20px;
}

.ig-field {
    display: grid;
    gap: 9px;
}

.ig-field label {
    color: #2c3850;
    font-size: 13px;
    font-weight: 700;
}

.ig-input-wrap {
    position: relative;
}

.ig-input-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);

    display: grid;
    place-items: center;

    color: #7e8ba0;
    pointer-events: none;
}

.ig-input-icon svg,
.ig-password-toggle svg,
.ig-login-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.ig-input-wrap .form-control {
    min-height: 58px;

    border: 1px solid #d9dfe8;
    border-radius: 14px;

    padding: 0 52px;

    background: #ffffff;
    color: #172238;

    box-shadow: 0 9px 28px rgba(18, 41, 79, .055);

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.ig-input-wrap .form-control::placeholder {
    color: #a5aebb;
}

.ig-input-wrap .form-control:focus {
    border-color: var(--ig-gold);
    box-shadow: 0 0 0 5px rgba(202, 166, 77, .14);
}

.ig-password-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 10px;

    background: transparent;
    color: #7e8ba0;
    cursor: pointer;
}

.ig-password-toggle:hover,
.ig-password-toggle.is-active {
    background: rgba(202, 166, 77, .11);
    color: #987126;
}

.ig-login-button {
    position: relative;
    min-height: 61px;
    margin-top: 3px;

    border: 0;
    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    background:
        linear-gradient(
            135deg,
            #07162f 0%,
            #142f60 100%
        );

    color: #ffffff;
    font-weight: 700;
    cursor: pointer;

    box-shadow: 0 20px 38px rgba(7, 22, 47, .26);

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        filter .22s ease;
}

.ig-login-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 25px 46px rgba(7, 22, 47, .34);
}

.ig-login-button:active {
    transform: translateY(0);
}

.ig-demo-box {
    margin-top: 25px;
    padding: 13px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;

    border: 1px solid var(--ig-border);
    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            rgba(202, 166, 77, .11),
            rgba(255, 255, 255, .85)
        );
}

.ig-demo-symbol {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: var(--ig-navy);
    color: var(--ig-gold-light);

    font-size: 12px;
    font-weight: 800;
}

.ig-demo-box span,
.ig-demo-box small {
    display: block;
    color: #7d8898;
    font-size: 11px;
}

.ig-demo-box strong {
    display: block;
    margin: 2px 0;
    color: #1c2940;
    font-size: 13px;
}

.ig-demo-box button {
    border: 0;
    border-radius: 9px;
    padding: 9px 11px;

    background: var(--ig-gold);
    color: var(--ig-navy);

    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.ig-support {
    margin: 23px 0 0;
    text-align: center;
    color: #8b95a4;
    font-size: 12px;
}

.ig-support a {
    color: #987126;
    font-weight: 700;
    text-decoration: none;
}

.ig-footer {
    color: rgba(255, 255, 255, .50);
    font-size: 11px;
    letter-spacing: .04em;
}

/* =========================================================
   LOADER
========================================================= */

.ig-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: grid;
    place-items: center;
    align-content: center;
    gap: 20px;

    background: #000000;

    transition:
        opacity .5s ease,
        visibility .5s ease;
}

.ig-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ig-loader-logo {
    width: min(310px, 72vw);
    padding: 15px 24px;

    border-radius: 18px;
    background: rgba(255, 255, 255, .97);

    box-shadow: 0 25px 65px rgba(0, 0, 0, .28);
}

.ig-loader-logo img {
    width: 100%;
    display: block;
}

.ig-loader-line {
    width: 180px;
    height: 3px;
    overflow: hidden;

    border-radius: 20px;
    background: rgba(255, 255, 255, .13);
}

.ig-loader-line span {
    display: block;
    width: 55%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--ig-gold-light),
            transparent
        );

    animation: igLoaderMove 1.25s ease-in-out infinite;
}

.ig-loader p {
    margin: 0;

    color: rgba(255, 255, 255, .64);

    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

@keyframes igLoaderMove {
    from {
        transform: translateX(-120%);
    }

    to {
        transform: translateX(230%);
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1150px) {
    .ig-content {
        grid-template-columns: minmax(0, 1fr) 430px;
        gap: 48px;
    }

    .ig-benefits {
        grid-template-columns: 1fr;
    }

    .ig-benefits article {
        min-height: auto;
        display: flex;
        gap: 18px;
    }

    .ig-benefits article > span {
        margin: 3px 0 0;
    }
}

@media (max-width: 900px) {
    .ig-login-shell {
        padding: 20px;
    }

    .ig-topbar .ig-brand {
        display: none;
    }

    .ig-topbar {
        justify-content: flex-end;
    }

    .ig-content {
        display: block;
        width: min(100%, 550px);
        padding: 30px 0;
    }

    .ig-hero-copy {
        display: none;
    }

    .ig-login-card-wrap {
        justify-content: center;
    }

    .ig-login-card {
        width: 100%;
    }

    .ig-mobile-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
        padding: 10px;

        border-radius: 14px;
        background: #ffffff;
    }

    .ig-footer {
        justify-content: center;
    }

    .ig-footer span:last-child {
        display: none;
    }

    .ig-video-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(3, 12, 30, .72),
                rgba(3, 12, 30, .88)
            );
    }
}

@media (max-width: 600px) {
    /*
      Video mobile par ON rahegi.
      Agar performance issue aaye to display:none use kar sakte ho.
    */
    .ig-background-video {
        display: block;

        width: 177.78vh;
        height: 100vh;

        min-width: 100vw;
        min-height: 56.25vw;

        transform: translate(-50%, -50%) scale(1.42);
    }

    .ig-video-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(3, 12, 30, .72),
                rgba(3, 12, 30, .90)
            );
    }

    .ig-grid-overlay {
        background-size: 58px 58px;
    }

    .ig-login-shell {
        min-height: 100svh;
        padding: 14px;
    }

    .ig-topbar {
        min-height: 42px;
    }

    .ig-secure-chip {
        padding: 8px 11px;
        font-size: 10px;
    }

    .ig-content {
        padding: 14px 0 22px;
    }

    .ig-login-card {
        padding: 27px 20px 23px;
        border-radius: 22px;
    }

    .ig-mobile-logo img {
        width: min(230px, 80%);
    }

    .ig-form-heading h2 {
        font-size: 36px;
    }

    .ig-form-heading p {
        margin-bottom: 24px;
        font-size: 14px;
    }

    .ig-demo-box {
        grid-template-columns: auto 1fr;
    }

    .ig-demo-box button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .ig-footer {
        font-size: 10px;
        text-align: center;
    }
}

@media (max-width: 390px) {
    .ig-login-shell {
        padding: 10px;
    }

    .ig-login-card {
        padding: 24px 16px 20px;
    }

    .ig-form-heading h2 {
        font-size: 32px;
    }

    .ig-input-wrap .form-control {
        min-height: 54px;
        padding-left: 48px;
        padding-right: 48px;
    }

    .ig-login-button {
        min-height: 56px;
    }
}

@media (max-height: 760px) and (min-width: 901px) {
    .ig-login-shell {
        padding-top: 18px;
        padding-bottom: 14px;
    }

    .ig-content {
        padding: 20px 0;
    }

    .ig-hero-copy h1 {
        font-size: clamp(44px, 4.6vw, 70px);
    }

    .ig-benefits {
        margin-top: 28px;
    }

    .ig-benefits article {
        min-height: 130px;
    }

    .ig-login-card {
        padding-top: 30px;
        padding-bottom: 28px;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ===== Premium entrance animations ===== */
.ig-animate{opacity:0;will-change:transform,opacity;transition:opacity .85s cubic-bezier(.22,1,.36,1),transform .85s cubic-bezier(.22,1,.36,1)}
.ig-from-left{transform:translate3d(-72px,0,0)}
.ig-from-right{transform:translate3d(72px,0,0)}
.ig-from-top{transform:translate3d(0,-55px,0)}
.ig-from-bottom{transform:translate3d(0,55px,0)}
.ig-animate.is-visible{opacity:1;transform:translate3d(0,0,0)}
.ig-login-card.is-visible{animation:igCardFloat 6s ease-in-out 1.1s infinite}
.ig-secure-dot{animation:igPulse 2.2s ease-in-out infinite}
.ig-card-accent{background-size:200% 100%;animation:igGoldFlow 4s linear infinite}
.ig-login-button svg{transition:transform .22s ease}
.ig-login-button:hover svg{transform:translateX(5px)}
.ig-brand img{transition:transform .35s ease,filter .35s ease}
.ig-brand:hover img{transform:translateY(-2px) scale(1.015);filter:drop-shadow(0 14px 30px rgba(0,0,0,.38))}
.ig-demo-box{transition:transform .25s ease,box-shadow .25s ease}
.ig-demo-box:hover{transform:translateY(-3px);box-shadow:0 16px 32px rgba(7,22,47,.10)}
@keyframes igCardFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes igPulse{0%,100%{box-shadow:0 0 0 5px rgba(100,216,153,.13)}50%{box-shadow:0 0 0 10px rgba(100,216,153,0)}}
@keyframes igGoldFlow{0%{background-position:0 0}100%{background-position:200% 0}}
@media(max-width:900px){.ig-from-right{transform:translate3d(0,55px,0)}.ig-login-card.is-visible{animation:none}}
@media(prefers-reduced-motion:reduce){.ig-animate{opacity:1!important;transform:none!important;transition:none!important}.ig-login-card,.ig-secure-dot,.ig-card-accent{animation:none!important}}

/* Infra Guru animated logo loader */
.ig-loader-video-wrap{
    width:min(330px,76vw);
    aspect-ratio:9/16;
    max-height:420px;
    overflow:hidden;
    position:relative;
    border-radius:26px;
    background:#000;
    border:0;
    box-shadow:none;
}
.ig-loader-video-wrap video{
    position:relative;z-index:1;width:100%;height:100%;display:block;object-fit:cover;background:#000;
}
.ig-loader-fallback{
    position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:34px;background:#000;z-index:0;
}
@media(max-height:720px){.ig-loader-video-wrap{max-height:310px;width:min(245px,62vw)}}

/* =========================================================
   FINAL AUTHORITATIVE INFRA GURU VIDEO LOADER
========================================================= */
html.ig-loader-active,
body.ig-loader-active {
    overflow: hidden !important;
}

body.ig-loader-active .ig-login-shell {
    opacity: 0;
    visibility: hidden;
}

body:not(.ig-loader-active) .ig-login-shell {
    opacity: 1;
    visibility: visible;
    transition: opacity .35s ease;
}

.ig-loader {
    --ig-loader-duration: 7.4s;

    display: grid !important;
    place-items: center !important;
    align-content: center !important;
    gap: 20px !important;

    padding: 24px !important;

    background: #000000 !important;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transition: opacity .55s ease, visibility .55s ease !important;
}

.ig-loader.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.ig-loader .ig-loader-video-wrap {
    position: relative !important;

    width: clamp(330px, 34vw, 430px) !important;
    height: clamp(330px, 34vw, 430px) !important;
    max-width: 82vw !important;
    max-height: 82vw !important;
    aspect-ratio: 1 / 1 !important;

    overflow: hidden !important;

    border: 0 !important;
    border-radius: 50% !important;

    background: #000000 !important;

    box-shadow: none !important;
}

.ig-loader .ig-loader-video-wrap > video {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;

    display: block !important;
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    object-position: center !important;

    border: 0 !important;
    outline: 0 !important;
    background: #000000 !important;

    mix-blend-mode: normal;

    filter:
        contrast(1.08)
        saturate(1.08)
        brightness(1.05);

    pointer-events: none;
}

.ig-loader .ig-loader-line {
    width: min(340px, 76vw) !important;
    height: 4px !important;

    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14) !important;
}

.ig-loader .ig-loader-line span {
    display: block !important;
    width: 0 !important;
    height: 100% !important;

    border-radius: inherit;

    background: linear-gradient(90deg, #9f7625, #d4aa4d, #f3da8c, #d4aa4d) !important;
    box-shadow: 0 0 18px rgba(212, 170, 77, .70);

    animation: igVideoLoaderProgress var(--ig-loader-duration) linear forwards !important;
}

.ig-loader p {
    margin: 0 !important;

    color: rgba(255, 255, 255, .90) !important;

    font-family: Arial, Verdana, sans-serif;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1.6px !important;
    text-transform: uppercase;
}

@keyframes igVideoLoaderProgress {
    from { width: 0; }
    to { width: 100%; }
}

@media (max-width: 576px) {
    .ig-loader {
        padding: 18px !important;
    }

    .ig-loader .ig-loader-video-wrap {
        width: min(330px, 84vw) !important;
        height: min(330px, 84vw) !important;
    }

    .ig-loader p {
        font-size: 11px !important;
        letter-spacing: 1.2px !important;
    }
}

@media (max-height: 650px) {
    .ig-loader .ig-loader-video-wrap {
        width: min(290px, 67vh) !important;
        height: min(290px, 67vh) !important;
    }
}


/* =========================================================
   V13: mobile-safe black loader and optimised video paint
========================================================= */
html.ig-loader-active,
html.ig-loader-active body,
body.ig-loader-active {
    width: 100%;
    min-width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
    overscroll-behavior: none;
    background: #000000 !important;
    background-color: #000000 !important;
}

.ig-loader {
    --ig-loader-duration: 3.1s;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483646 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100svh !important;
    height: 100dvh !important;
    min-height: -webkit-fill-available !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: #000000 !important;
    background-color: #000000 !important;
    isolation: isolate;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    transition: opacity .30s ease, visibility .30s ease !important;
}

.ig-loader::before {
    content: "";
    position: absolute;
    inset: -12px;
    z-index: 0;
    background: #000000 !important;
    background-color: #000000 !important;
    pointer-events: none;
}

.ig-loader .ig-loader-video-wrap {
    position: relative !important;
    z-index: 1 !important;
    background: #000000 !important;
    background-color: #000000 !important;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);
}

.ig-loader .ig-loader-video-wrap > video {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #000000 !important;
    background-color: #000000 !important;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

@media (max-width: 576px) {
    .ig-loader {
        padding-top: max(18px, env(safe-area-inset-top)) !important;
        padding-right: max(18px, env(safe-area-inset-right)) !important;
        padding-bottom: max(18px, env(safe-area-inset-bottom)) !important;
        padding-left: max(18px, env(safe-area-inset-left)) !important;
    }

    .ig-loader .ig-loader-video-wrap {
        width: min(310px, 82vw) !important;
        height: min(310px, 82vw) !important;
    }
}

/* Keep loader borderless */
.ig-loader .ig-loader-video-wrap {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}


/* =========================================================
   FINAL LOGO FIX — LOGIN PAGE
   White logo, no white/black card background behind the logo.
   This block is intentionally last so older logo rules cannot override it.
========================================================= */

.ig-brand,
.ig-mobile-logo {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Make the complete existing logo artwork white */
.ig-brand img,
.ig-mobile-logo img {
    display: block !important;
    object-fit: contain !important;
    background: transparent !important;
    background-color: transparent !important;
    filter: brightness(0) invert(1) !important;
}

/* Desktop logo: full logo stays clearly visible */
.ig-brand img {
    width: clamp(235px, 20vw, 320px) !important;
    height: auto !important;
    max-height: 86px !important;
}

/* Do not change the white logo on hover */
.ig-brand:hover img {
    transform: translateY(-2px) scale(1.015);
    filter: brightness(0) invert(1) !important;
}

/* Mobile logo */
@media (max-width: 900px) {
    .ig-mobile-logo {
        width: 100% !important;
        padding: 8px 0 !important;
        justify-content: center !important;
    }

    .ig-mobile-logo img {
        width: min(260px, 82%) !important;
        height: auto !important;
        max-height: 82px !important;
    }
}
