/* KT robot — adapted from https://kohzadict.com/ hero mascot (Ask KT) */
.login-modern {
    --kt-primary: #0099ff;
    --kt-accent: #33bbff;
    --kt-glow: rgba(0, 153, 255, 0.45);
}

.login-modern .login-kt-stage {
    position: absolute;
    right: clamp(2%, 6vw, 8%);
    bottom: clamp(8%, 12vh, 16%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.92;
}

.login-modern .login-kt-stage .kt-robot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 1.25rem 1rem 0.5rem;
    border: 0;
    background: transparent;
    animation: ktRobotFloat 4.5s ease-in-out infinite;
}

.login-modern .login-kt-stage .kt-robot__halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 220px;
    margin: -110px 0 0 -110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 153, 255, 0.22) 0, rgba(0, 153, 255, 0.06) 45%, transparent 70%);
    opacity: 0.75;
    animation: ktRobotHalo 5s ease-in-out infinite;
    pointer-events: none;
}

.login-modern .login-kt-stage .kt-robot__pedestal {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 120px;
    height: 14px;
    margin-left: -60px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 200, 255, 0.35) 0, transparent 70%);
    filter: blur(2px);
    pointer-events: none;
}

.login-modern .login-kt-stage .kt-robot__orbit {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.login-modern .login-kt-stage .kt-robot__spark {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--kt-accent);
    box-shadow: 0 0 12px var(--kt-glow);
    animation: ktRobotSpark 3s ease-in-out infinite;
}

.login-modern .login-kt-stage .kt-robot__spark--1 { top: 8%; left: 12%; }
.login-modern .login-kt-stage .kt-robot__spark--2 { top: 18%; right: 8%; animation-delay: 0.7s; width: 5px; height: 5px; }
.login-modern .login-kt-stage .kt-robot__spark--3 { bottom: 22%; left: 6%; animation-delay: 1.4s; }
.login-modern .login-kt-stage .kt-robot__spark--4 { bottom: 30%; right: 10%; animation-delay: 2.1s; width: 4px; height: 4px; }

.login-modern .login-kt-stage .kt-robot__figure {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 188px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}

.login-modern .login-kt-stage .kt-robot__antenna {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: -6px;
    animation: ktRobotAntenna 2.8s ease-in-out infinite;
}

.login-modern .login-kt-stage .kt-robot__antenna-rod {
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, #66ddff 0, var(--kt-primary) 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 200, 255, 0.4);
}

.login-modern .login-kt-stage .kt-robot__antenna-ball {
    width: 12px;
    height: 12px;
    margin-top: -3px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0, var(--kt-accent) 45%, var(--kt-primary) 100%);
    box-shadow: 0 0 18px rgba(0, 200, 255, 0.75);
    animation: ktRobotPulse 1.8s ease-in-out infinite;
}

.login-modern .login-kt-stage .kt-robot__head-stack {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-modern .login-kt-stage .kt-robot__product-tag {
    position: relative;
    z-index: 5;
    max-width: 140px;
    margin-bottom: 6px;
    padding: 0.22rem 0.55rem;
    border-radius: 8px;
    font-size: 0.54rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    color: #e8f8ff;
    background: rgba(0, 80, 140, 0.55);
    border: 1px solid rgba(0, 220, 255, 0.4);
    box-shadow: 0 0 16px rgba(0, 153, 255, 0.25);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.login-modern .login-kt-stage .kt-robot__head {
    position: relative;
    z-index: 2;
    width: 118px;
    height: 86px;
    border-radius: 28px 28px 24px 24px;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.12), transparent 40%),
        linear-gradient(160deg, #123a62, #081828 55%, #040c14);
    border: 2px solid rgba(0, 210, 255, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.12);
}

.login-modern .login-kt-stage .kt-robot__visor {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    height: 28px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(0, 200, 255, 0.08), transparent);
    border: 1px solid rgba(0, 200, 255, 0.12);
}

.login-modern .login-kt-stage .kt-robot__eye {
    position: absolute;
    top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, #0a2848 0, #020810 100%);
    border: 2px solid rgba(0, 220, 255, 0.7);
    box-shadow: 0 0 14px rgba(0, 153, 255, 0.55);
    animation: ktRobotBlink 5s step-end infinite;
}

.login-modern .login-kt-stage .kt-robot__eye--left { left: 26px; }
.login-modern .login-kt-stage .kt-robot__eye--right { right: 26px; }

.login-modern .login-kt-stage .kt-robot__pupil {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #a8f0ff 0, var(--kt-accent) 60%, var(--kt-primary) 100%);
    box-shadow: 0 0 10px rgba(0, 220, 255, 0.8);
    animation: ktRobotLook 6s ease-in-out infinite;
}

.login-modern .login-kt-stage .kt-robot__mouth {
    position: absolute;
    bottom: 18px;
    left: 50%;
    width: 32px;
    height: 9px;
    margin-left: -16px;
    border-radius: 0 0 14px 14px;
    background: linear-gradient(180deg, rgba(0, 200, 255, 0.15), rgba(0, 153, 255, 0.45));
    animation: ktRobotTalk 2.4s ease-in-out infinite;
}

.login-modern .login-kt-stage .kt-robot__cheek {
    position: absolute;
    bottom: 28px;
    width: 10px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 200, 255, 0.2);
    filter: blur(1px);
    animation: ktRobotCheek 3s ease-in-out infinite;
}

.login-modern .login-kt-stage .kt-robot__cheek--left { left: 16px; }
.login-modern .login-kt-stage .kt-robot__cheek--right { right: 16px; animation-delay: 0.5s; }

.login-modern .login-kt-stage .kt-robot__shoulders {
    position: relative;
    z-index: 1;
    width: 128px;
    height: 18px;
    margin-top: -6px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, #0e3050, #081828);
    border: 2px solid rgba(0, 180, 255, 0.3);
    border-bottom: none;
}

.login-modern .login-kt-stage .kt-robot__torso {
    position: relative;
    z-index: 1;
    width: 96px;
    height: 78px;
    margin-top: -2px;
    border-radius: 0 0 22px 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%),
        linear-gradient(180deg, #0c2848, #051018);
    border: 2px solid rgba(0, 153, 255, 0.32);
    border-top: none;
}

.login-modern .login-kt-stage .kt-robot__core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #e0f8ff 0, var(--kt-accent) 40%, var(--kt-primary) 100%);
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 24px var(--kt-glow);
    animation: ktRobotCore 2.2s ease-in-out infinite;
}

.login-modern .login-kt-stage .kt-robot__panel-line {
    position: absolute;
    left: 50%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.45), transparent);
}

.login-modern .login-kt-stage .kt-robot__panel-line--1 { bottom: 22px; width: 52px; margin-left: -26px; }
.login-modern .login-kt-stage .kt-robot__panel-line--2 { bottom: 12px; width: 36px; margin-left: -18px; opacity: 0.6; }

.login-modern .login-kt-stage .kt-robot__arms {
    position: absolute;
    top: 98px;
    left: 0;
    right: 0;
    height: 56px;
    pointer-events: none;
}

.login-modern .login-kt-stage .kt-robot__arm {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: top center;
}

.login-modern .login-kt-stage .kt-robot__arm--left { left: 4px; animation: ktRobotWaveLeft 2.8s ease-in-out infinite; }
.login-modern .login-kt-stage .kt-robot__arm--right { right: 4px; animation: ktRobotWaveRight 2.8s ease-in-out 0.4s infinite; }

.login-modern .login-kt-stage .kt-robot__arm::before {
    content: "";
    width: 16px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(180deg, #143a5c, #081828);
    border: 1px solid rgba(0, 200, 255, 0.28);
}

.login-modern .login-kt-stage .kt-robot__hand {
    width: 18px;
    height: 14px;
    margin-top: -2px;
    border-radius: 8px 8px 10px 10px;
    background: linear-gradient(180deg, #0e3050, #061428);
    border: 1px solid rgba(0, 180, 255, 0.25);
}

.login-modern .login-kt-stage .kt-robot__legs {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.login-modern .login-kt-stage .kt-robot__leg {
    width: 26px;
    height: 14px;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(180deg, #081828, #040c14);
    border: 1px solid rgba(0, 153, 255, 0.28);
}

@keyframes ktRobotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes ktRobotHalo {
    0%, 100% { opacity: 0.65; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.06); }
}

@keyframes ktRobotAntenna {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

@keyframes ktRobotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(0.88); }
}

@keyframes ktRobotBlink {
    0%, 94%, 100% { transform: scaleY(1); }
    96% { transform: scaleY(0.1); }
}

@keyframes ktRobotLook {
    0%, 100% { transform: translate(0); }
    30% { transform: translate(2px); }
    60% { transform: translate(-2px, 1px); }
}

@keyframes ktRobotTalk {
    0%, 100% { height: 9px; width: 32px; margin-left: -16px; }
    50% { height: 13px; width: 28px; margin-left: -14px; }
}

@keyframes ktRobotCheek {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.85; }
}

@keyframes ktRobotCore {
    0%, 100% { box-shadow: 0 0 20px var(--kt-glow); transform: scale(1); }
    50% { box-shadow: 0 0 36px rgba(0, 220, 255, 0.8); transform: scale(1.06); }
}

@keyframes ktRobotWaveLeft {
    0%, 100% { transform: rotate(22deg); }
    50% { transform: rotate(-8deg); }
}

@keyframes ktRobotWaveRight {
    0%, 100% { transform: rotate(-22deg); }
    50% { transform: rotate(28deg); }
}

@keyframes ktRobotSpark {
    0%, 100% { opacity: 0.25; transform: scale(0.7); }
    50% { opacity: 1; transform: scale(1.3); }
}

@media (max-width: 991px) {
    .login-modern .login-kt-stage {
        right: 50%;
        bottom: 4%;
        transform: translateX(50%) scale(0.72);
        opacity: 0.35;
    }
}

@media (max-width: 575px) {
    .login-modern .login-kt-stage {
        display: none;
    }
}
