:root {
    --ih-red: #e21b2d;
    --ih-red-bright: #ff3546;
    --ih-black: #07080b;
    --ih-line: rgba(255, 255, 255, 0.11);
    --ih-text: #f7f8fa;
    --ih-muted: #929baa;
    --ih-slide-duration: 6500ms;
}

html:has(body.ih-admin-auth),
body.login_admin.ih-admin-auth {
    width: 100%;
    min-width: 320px;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    background: var(--ih-black) !important;
    color: var(--ih-text);
}

body.login_admin.ih-admin-auth {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.login_admin.ih-admin-auth *,
body.login_admin.ih-admin-auth *::before,
body.login_admin.ih-admin-auth *::after {
    box-sizing: border-box;
}

.ih-admin-auth button,
.ih-admin-auth input,
.ih-admin-auth a {
    -webkit-tap-highlight-color: transparent;
}

.ih-admin-auth-shell {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.48fr) minmax(430px, 0.82fr);
    background: var(--ih-black);
}

.ih-admin-auth-showcase {
    --pointer-x: 50%;
    --pointer-y: 50%;
    position: relative;
    min-width: 0;
    overflow: hidden;
    isolation: isolate;
    background: #050507;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.ih-admin-auth-slides,
.ih-admin-auth-slide,
.ih-admin-auth-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ih-admin-auth-slide {
    z-index: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1), visibility 1.25s;
}

.ih-admin-auth-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.ih-admin-auth-slide img {
    object-fit: cover;
    object-position: center center;
    transform: scale(1.055);
    filter: saturate(0.92) contrast(1.04) brightness(0.78);
    will-change: transform, opacity;
}

.ih-admin-auth-slide.is-active img {
    animation: ih-admin-image-drift var(--ih-slide-duration) cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes ih-admin-image-drift {
    from { transform: scale(1.055) translate3d(0, 0, 0); }
    to { transform: scale(1.015) translate3d(-0.35%, 0.2%, 0); }
}

.ih-admin-auth-showcase__veil,
.ih-admin-auth-showcase__grid,
.ih-admin-auth-showcase__glow {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.ih-admin-auth-showcase__veil {
    background:
        linear-gradient(180deg, rgba(3, 4, 7, 0.62) 0%, rgba(3, 4, 7, 0.03) 32%, rgba(3, 4, 7, 0.2) 55%, rgba(3, 4, 7, 0.93) 100%),
        linear-gradient(90deg, rgba(3, 4, 7, 0.91) 0%, rgba(3, 4, 7, 0.56) 35%, rgba(3, 4, 7, 0.08) 72%, rgba(3, 4, 7, 0.35) 100%);
}

.ih-admin-auth-showcase__grid {
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 72%);
}

.ih-admin-auth-showcase__glow {
    z-index: 3;
    opacity: 0.5;
    background: radial-gradient(circle 220px at var(--pointer-x) var(--pointer-y), rgba(226, 27, 45, 0.12), transparent 72%);
}

.ih-admin-auth-showcase__header {
    position: absolute;
    z-index: 5;
    top: clamp(24px, 4.2vh, 48px);
    left: clamp(28px, 5vw, 76px);
    right: clamp(28px, 4vw, 62px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.ih-admin-auth .company-logo {
    padding: 0;
}

.ih-admin-auth .company-logo img {
    width: auto;
    max-width: 178px;
    max-height: 40px;
    margin: 0;
    object-fit: contain;
}

.ih-admin-auth-status,
.ih-admin-auth-access-label,
.ih-admin-auth-trust {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ih-admin-auth-status {
    padding: 10px 13px;
    color: rgba(255, 255, 255, 0.74);
    background: rgba(9, 11, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    backdrop-filter: blur(16px);
}

.ih-admin-auth-status span,
.ih-admin-auth-trust span {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #45d483;
    box-shadow: 0 0 0 4px rgba(69, 212, 131, 0.1), 0 0 14px rgba(69, 212, 131, 0.65);
}

.ih-admin-auth-route-switch {
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    color: #939cab !important;
    display: inline-flex;
    font-size: 9px !important;
    gap: 6px;
    letter-spacing: 0.025em;
    margin-left: 5px;
    padding-left: 13px;
    text-transform: none;
}

.ih-admin-auth-route-switch strong {
    color: var(--ih-red-bright);
    font-size: 12px;
}

.ih-admin-auth-route-switch:hover,
.ih-admin-auth-route-switch:focus-visible {
    color: #ffffff !important;
}

.ih-admin-auth-story {
    position: absolute;
    z-index: 5;
    left: clamp(28px, 5vw, 76px);
    bottom: clamp(116px, 15vh, 154px);
    width: min(610px, calc(100% - 82px));
}

.ih-admin-auth-story.is-changing > * {
    animation: ih-admin-copy-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ih-admin-copy-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.ih-admin-auth-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.19em;
}

.ih-admin-auth-eyebrow::before {
    content: "";
    width: 31px;
    height: 1px;
    background: var(--ih-red-bright);
    box-shadow: 0 0 12px rgba(255, 53, 70, 0.65);
}

.ih-admin-auth-story h2 {
    max-width: 590px;
    margin: 0;
    color: #fff !important;
    font-size: clamp(40px, 4.25vw, 70px);
    line-height: 0.98;
    font-weight: 650;
    letter-spacing: -0.052em;
    text-wrap: balance;
}

.ih-admin-auth-story__copy {
    max-width: 510px;
    margin: 20px 0 0;
    color: rgba(238, 241, 246, 0.73);
    font-size: clamp(14px, 1.1vw, 17px);
    line-height: 1.65;
}

.ih-admin-auth-metrics {
    display: flex;
    gap: clamp(22px, 4vw, 54px);
    margin-top: clamp(24px, 4vh, 42px);
}

.ih-admin-auth-metrics div {
    display: grid;
    gap: 5px;
}

.ih-admin-auth-metrics strong {
    color: #fff;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}

.ih-admin-auth-metrics span {
    color: rgba(255, 255, 255, 0.45);
    font-size: 9px;
    line-height: 1;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ih-admin-auth-slider-controls {
    position: absolute;
    z-index: 6;
    right: clamp(28px, 4vw, 62px);
    bottom: clamp(26px, 4vh, 42px);
    left: clamp(28px, 5vw, 76px);
    display: grid;
    grid-template-columns: auto minmax(120px, 210px) auto;
    align-items: center;
    gap: 24px;
}

.ih-admin-auth-slider-actions {
    display: flex;
    gap: 8px;
}

.ih-admin-auth-slider-actions button {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: rgba(255, 255, 255, 0.74);
    background: rgba(11, 13, 18, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    outline: none;
    backdrop-filter: blur(14px);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ih-admin-auth-slider-actions button:hover,
.ih-admin-auth-slider-actions button:focus-visible {
    color: #fff;
    background: rgba(226, 27, 45, 0.82);
    border-color: var(--ih-red-bright);
    transform: translateY(-2px);
}

.ih-admin-auth-pause {
    width: 8px;
    height: 11px;
    border-right: 2px solid currentColor;
    border-left: 2px solid currentColor;
}

.ih-admin-auth-play {
    display: none;
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid currentColor;
}

.ih-admin-auth-shell.is-paused .ih-admin-auth-pause { display: none; }
.ih-admin-auth-shell.is-paused .ih-admin-auth-play { display: block; }

.ih-admin-auth-slider-progress {
    display: grid;
    grid-template-columns: 20px 1fr 20px;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.09em;
}

.ih-admin-auth-slider-track {
    position: relative;
    height: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
}

.ih-admin-auth-slider-track i {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--ih-red), var(--ih-red-bright));
    transform: scaleX(0);
    transform-origin: left center;
}

.ih-admin-auth-shell.is-progressing .ih-admin-auth-slider-track i {
    animation: ih-admin-progress var(--ih-slide-duration) linear forwards;
}

@keyframes ih-admin-progress {
    to { transform: scaleX(1); }
}

.ih-admin-auth-slider-dots {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.ih-admin-auth-slider-dots button {
    width: 6px;
    height: 6px;
    padding: 0;
    background: rgba(255, 255, 255, 0.32);
    border: 0;
    border-radius: 999px;
    outline: none;
    transition: width 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.ih-admin-auth-slider-dots button.is-active {
    width: 24px;
    background: var(--ih-red-bright);
    box-shadow: 0 0 14px rgba(255, 53, 70, 0.58);
}

.ih-admin-auth-slider-dots button:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.ih-admin-auth-form-panel {
    position: relative;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: clamp(28px, 5vh, 54px) clamp(34px, 4.2vw, 72px);
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(226, 27, 45, 0.075), transparent 32%),
        linear-gradient(155deg, #11151c 0%, #090b10 58%, #07090d 100%);
}

.ih-admin-auth-form-panel::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -140px;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(226, 27, 45, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 48px rgba(255, 255, 255, 0.012), 0 0 0 96px rgba(255, 255, 255, 0.008);
    pointer-events: none;
}

.ih-admin-auth-form-wrap {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
}

.ih-admin-auth-form-brand {
    display: none;
    margin-bottom: 28px;
}

.ih-admin-auth-access-label {
    margin-bottom: 17px;
    color: #c6ccd5;
}

.ih-admin-auth-access-label > span {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    color: var(--ih-red-bright);
    background: rgba(226, 27, 45, 0.1);
    border: 1px solid rgba(226, 27, 45, 0.24);
    border-radius: 8px;
}

.ih-admin-auth-access-label svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.ih-admin-auth-form-heading h1 {
    margin: 0;
    color: #fff !important;
    font-size: clamp(30px, 2.45vw, 39px);
    line-height: 1.08;
    font-weight: 650;
    letter-spacing: -0.042em;
}

.ih-admin-auth-form-heading > p {
    max-width: 390px;
    margin: 12px 0 0;
    color: var(--ih-muted);
    font-size: 13px;
    line-height: 1.6;
}

.ih-admin-auth-form-card {
    margin-top: clamp(24px, 3.8vh, 37px);
}

.ih-admin-auth-form-card .alert {
    padding: 11px 13px;
    margin: 0 0 17px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    font-size: 12px;
}

.ih-admin-auth-form-card .alert-danger {
    color: #ffbbc1;
    background: rgba(226, 27, 45, 0.11);
    border-color: rgba(226, 27, 45, 0.25);
}

.ih-admin-auth-form-card .form-group {
    margin: 0 0 19px;
}

.ih-admin-auth-form-card .control-label,
.ih-admin-auth-label-row .control-label {
    display: inline-block;
    margin: 0 0 9px !important;
    color: #dce1e8;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 650;
    letter-spacing: 0.035em;
}

.ih-admin-auth-label-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

body.login_admin.ih-admin-auth a,
.ih-admin-auth-label-row a {
    color: #aeb6c2;
    font-size: 11px;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.login_admin.ih-admin-auth a:hover,
body.login_admin.ih-admin-auth a:focus-visible {
    color: var(--ih-red-bright);
}

.ih-admin-auth-form-card .form-control {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    color: #f8f9fb;
    caret-color: var(--ih-red-bright);
    background: rgba(4, 6, 10, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ih-admin-auth-form-card .form-control:hover {
    border-color: rgba(255, 255, 255, 0.23);
}

.ih-admin-auth-form-card .form-control:focus {
    background: rgba(6, 8, 12, 0.94);
    border-color: var(--ih-red-bright);
    box-shadow: 0 0 0 3px rgba(226, 27, 45, 0.13);
}

.ih-admin-auth-password-field {
    position: relative;
    display: block;
}

.ih-admin-auth-password-field .form-control {
    padding-right: 50px;
}

.ih-admin-auth-password-field button {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #828c9b;
    background: transparent;
    border: 0;
    border-radius: 8px;
    outline: none;
    transform: translateY(-50%);
}

.ih-admin-auth-password-field button:hover,
.ih-admin-auth-password-field button:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.ih-admin-auth-password-field svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.ih-admin-auth-password-field .ih-eye-off,
.ih-admin-auth-password-field button[aria-pressed="true"] .ih-eye-on {
    display: none;
}

.ih-admin-auth-password-field button[aria-pressed="true"] .ih-eye-off {
    display: block;
}

.ih-admin-auth-form-card .g-recaptcha {
    min-height: 78px;
    margin: 2px 0 15px;
}

.ih-admin-auth-remember {
    margin-bottom: 19px !important;
}

.ih-admin-auth-remember .checkbox {
    margin: 0;
}

.ih-admin-auth-remember .checkbox label {
    padding-left: 27px;
    color: #aeb6c2;
    font-size: 11px;
    line-height: 19px;
}

.ih-admin-auth-remember .checkbox label::before {
    width: 18px;
    height: 18px;
    background: rgba(4, 6, 10, 0.66);
    border-color: rgba(255, 255, 255, 0.17);
    border-radius: 5px;
}

.ih-admin-auth-remember .checkbox input[type="checkbox"]:checked + label::before {
    background: var(--ih-red);
    border-color: var(--ih-red);
}

.ih-admin-auth-submit.btn.btn-primary.btn-block {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 0 19px;
    color: #fff;
    background: linear-gradient(115deg, #bd1020, var(--ih-red) 56%, #f02a3d) !important;
    border: 1px solid rgba(255, 89, 104, 0.55);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(189, 16, 32, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.035em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ih-admin-auth-submit.btn.btn-primary.btn-block:hover,
.ih-admin-auth-submit.btn.btn-primary.btn-block:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(189, 16, 32, 0.31), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.ih-admin-auth-submit svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.ih-admin-auth-form-card .btn-default,
.ih-admin-auth-form-card a.btn-default,
.ih-admin-auth-form-card form > .form-group .btn:not(.btn-primary) {
    width: 100%;
    min-height: 42px;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c1c7d0;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: none;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
}

.ih-admin-auth-form-card .btn-default:hover,
.ih-admin-auth-form-card a.btn-default:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}

.ih-admin-auth-trust {
    justify-content: center;
    width: 100%;
    margin-top: clamp(20px, 3.2vh, 31px);
    color: #626c7b;
    font-size: 9px;
}

.ih-admin-auth-trust span {
    width: 5px;
    height: 5px;
    flex-basis: 5px;
    box-shadow: 0 0 9px rgba(69, 212, 131, 0.55);
}

@media (max-width: 1180px) {
    .ih-admin-auth-shell { grid-template-columns: minmax(0, 1fr) minmax(410px, 0.92fr); }
    .ih-admin-auth-metrics div:last-child { display: none; }
    .ih-admin-auth-slider-controls { grid-template-columns: auto minmax(90px, 1fr); }
    .ih-admin-auth-slider-dots { display: none; }
}

@media (max-width: 820px) {
    html:has(body.ih-admin-auth),
    body.login_admin.ih-admin-auth {
        height: auto;
        overflow: auto;
    }

    .ih-admin-auth-shell {
        min-height: 100vh;
        min-height: 100dvh;
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(200px, 27vh) auto;
    }

    .ih-admin-auth-showcase {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .ih-admin-auth-slide img { object-position: center 42%; }

    .ih-admin-auth-showcase__header {
        top: 22px;
        left: 24px;
        right: 24px;
    }

    .ih-admin-auth-status,
    .ih-admin-auth-eyebrow,
    .ih-admin-auth-story__copy,
    .ih-admin-auth-metrics,
    .ih-admin-auth-slider-progress { display: none; }

    .ih-admin-auth-story {
        left: 24px;
        bottom: 25px;
        width: calc(100% - 130px);
    }

    .ih-admin-auth-story h2 {
        font-size: clamp(25px, 5vw, 34px);
        line-height: 1.03;
    }

    .ih-admin-auth-slider-controls {
        right: 22px;
        bottom: 22px;
        left: auto;
        display: block;
    }

    .ih-admin-auth-slider-actions button {
        width: 34px;
        height: 34px;
    }

    .ih-admin-auth-slider-actions button:nth-child(2) { display: none; }

    .ih-admin-auth-form-panel {
        align-items: start;
        padding: 40px clamp(24px, 8vw, 72px) 32px;
        overflow: hidden;
    }

    .ih-admin-auth-form-wrap { width: min(100%, 440px); }
}

@media (max-width: 480px) {
    .ih-admin-auth-shell { grid-template-rows: 186px auto; }
    .ih-admin-auth .company-logo img { max-width: 145px; max-height: 34px; }
    .ih-admin-auth-status { display: none; }
    .ih-admin-auth-story { bottom: 22px; width: calc(100% - 126px); }
    .ih-admin-auth-story h2 { font-size: 24px; }
    .ih-admin-auth-form-panel { padding: 32px 22px 28px; }
    .ih-admin-auth-form-heading h1 { font-size: 29px; }
    .ih-admin-auth-form-card { margin-top: 25px; }
    .ih-admin-auth-form-card .g-recaptcha { transform-origin: left top; }
    .ih-admin-auth-trust { flex-wrap: wrap; line-height: 1.5; }
    .ih-admin-auth-route-switch { border-left: 0; flex-basis: 100%; justify-content: center; margin-left: 0; padding-left: 0; }
}

@media (min-width: 821px) and (max-height: 760px) {
    .ih-admin-auth-shell { min-height: 560px; }
    .ih-admin-auth-story { bottom: 104px; }
    .ih-admin-auth-story h2 { font-size: clamp(36px, 3.8vw, 55px); }
    .ih-admin-auth-story__copy { margin-top: 13px; }
    .ih-admin-auth-metrics { margin-top: 19px; }
    .ih-admin-auth-slider-controls { bottom: 27px; }
    .ih-admin-auth-form-panel { padding-top: 24px; padding-bottom: 24px; }
    .ih-admin-auth-access-label { margin-bottom: 11px; }
    .ih-admin-auth-form-heading > p { margin-top: 7px; }
    .ih-admin-auth-form-card { margin-top: 19px; }
    .ih-admin-auth-form-card .form-group { margin-bottom: 13px; }
    .ih-admin-auth-form-card .control-label,
    .ih-admin-auth-label-row .control-label { margin-bottom: 6px !important; }
    .ih-admin-auth-form-card .form-control,
    .ih-admin-auth-submit.btn.btn-primary.btn-block { height: 44px; }
    .ih-admin-auth-form-card .g-recaptcha { margin-bottom: 9px; }
    .ih-admin-auth-remember { margin-bottom: 12px !important; }
    .ih-admin-auth-trust { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .ih-admin-auth *,
    .ih-admin-auth *::before,
    .ih-admin-auth *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Final responsive guardrail: keep the authentication form inside the real
   visual viewport even when Bootstrap or module theme rules load first. */
@media (max-width: 820px) {
    html:has(body.ih-admin-auth),
    body.login_admin.ih-admin-auth {
        max-width: 100%;
        min-width: 0;
        overflow-x: clip;
        overflow-y: auto;
        width: 100%;
    }

    .ih-admin-auth-shell,
    .ih-admin-auth-showcase,
    .ih-admin-auth-form-panel,
    .ih-admin-auth-form-wrap,
    .ih-admin-auth-form-card,
    .ih-admin-auth-form-card form {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .ih-admin-auth-shell {
        display: block;
        height: auto;
        min-height: 100dvh;
    }

    .ih-admin-auth-showcase {
        height: 186px;
        min-height: 186px;
    }

    .ih-admin-auth-form-panel {
        align-items: flex-start;
        min-height: calc(100dvh - 186px);
        overflow: hidden;
        padding: 32px clamp(20px, 6vw, 42px);
    }

    .ih-admin-auth-form-heading > p,
    .ih-admin-auth-label-row,
    .ih-admin-auth-trust {
        max-width: 100%;
        min-width: 0;
    }

    .ih-admin-auth-form-card .form-control,
    .ih-admin-auth-form-card .btn,
    .ih-admin-auth-submit.btn.btn-primary.btn-block {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 380px) {
    .ih-admin-auth-form-panel {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ih-admin-auth-form-card .g-recaptcha {
        transform: scale(0.9);
        transform-origin: left top;
        width: 304px;
    }
}
