/* Kohzad KT Robot — adapted from https://kohzadict.com/ */
.auth-kt-robot-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    flex-shrink: 1;
    min-height: 0;
    transform: scale(0.68);
    transform-origin: center center;
    max-height: clamp(140px, 24vh, 210px);
}

.auth-kt-robot-caption {
    margin: 4px 0 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
}

.kt-robot {
    --kt-accent: #00c8ff;
    --kt-primary: #0099ff;
    --kt-glow: rgba(0, 153, 255, 0.5);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.5rem 0.5rem 0.25rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    animation: ktRobotFloat 4.5s ease-in-out infinite;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.kt-robot:hover {
    animation-play-state: paused;
    transform: translateY(-6px) scale(1.03);
    text-decoration: none;
}

.kt-robot:hover .kt-robot__halo {
    opacity: 1;
    transform: scale(1.05);
}

.kt-robot:hover .kt-robot__core {
    box-shadow: 0 0 32px rgba(0, 220, 255, 0.9), 0 0 64px rgba(0, 153, 255, 0.35);
}

.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;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    animation: ktRobotHalo 5s ease-in-out infinite;
}

.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;
}

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

.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;
}

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

.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));
}

.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;
}

.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);
}

.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;
}

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

.kt-robot__product-tag {
    position: relative;
    z-index: 5;
    max-width: 150px;
    margin-bottom: 6px;
    padding: 0.22rem 0.55rem;
    border-radius: 8px;
    font-size: 0.58rem;
    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;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.kt-robot__product-tag.is-visible {
    opacity: 1;
    transform: translateY(0);
}

[dir="rtl"] .kt-robot__product-tag {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 0.54rem;
}

.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), inset 0 -8px 20px rgba(0, 0, 0, 0.25);
}

.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);
}

.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), inset 0 0 8px rgba(0, 200, 255, 0.25);
    animation: ktRobotBlink 5s step-end infinite;
}

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

.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;
}

.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));
    box-shadow: 0 0 12px rgba(0, 153, 255, 0.35);
    animation: ktRobotTalk 2.4s ease-in-out infinite;
}

.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;
}

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

.kt-robot__badge {
    position: absolute;
    top: 52px;
    right: 8px;
    z-index: 6;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #00c8ff 0, var(--kt-primary) 100%);
    color: #001020;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 16px var(--kt-glow);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.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;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.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;
    box-shadow: inset 0 -12px 24px rgba(0, 0, 0, 0.2);
}

.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;
}

.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);
}

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

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

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

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

.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);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.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);
}

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

.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);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@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: translateX(0); }
    30% { transform: translateX(2px); }
    60% { transform: translateX(-2px); }
}

@keyframes ktRobotTalk {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.7); }
}

@keyframes ktRobotCheek {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

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

@keyframes ktRobotSpark {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

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

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

@media (max-height: 700px) {
    .auth-kt-robot-wrap {
        transform: scale(0.55);
        max-height: 130px;
    }
}

@media (max-width: 900px) {
    .auth-kt-robot-wrap {
        transform: scale(0.75);
        max-height: none;
        margin: 4px 0 12px;
    }

    .kt-robot__figure {
        width: 160px;
    }
}
