/* ==== Анімований синій фон ==== */
body {
    margin: 0;
    overflow: hidden;
    font-family: "Segoe UI", sans-serif;
    background: linear-gradient(-45deg, #0b1430, #0f1d3f, #050713, #101437);
    background-size: 300% 300%;
    animation: bgmove 14s ease infinite;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes bgmove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==== Логотип TLod з м’яким пульсуванням (синя версія) ==== */
.login-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin: 0 auto 12px;
    background: radial-gradient(circle at 30% 30%, #ffffff, #3da6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: #06132f;
    box-shadow: 0 0 18px rgba(60,150,255,0.7);
    text-shadow: 0 0 6px rgba(255,255,255,0.9);
    animation: logoPulse 2.6s ease-in-out infinite;
}

.login-logo span {
    letter-spacing: 1px;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 16px rgba(60,150,255,0.7);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 26px rgba(80,170,255,1);
    }
}

/* ==== Літаючі кубки, графіки, %, TOP-3 ==== */
.float-item {
    position: absolute;
    pointer-events: none;
    white-space: nowrap;
    animation: floatUp 9s linear infinite;
    filter: drop-shadow(0 0 8px rgba(120,160,255,0.9));

    /* одразу сховані і за межами екрану */
    transform: translateY(110vh) translateX(0);
    opacity: 0;
}

@keyframes floatUp {
    0% {
        transform: translateY(110vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) translateX(-25px);
        opacity: 0;
    }
}

/* ==== КАРТКА ЛОГІНУ ==== */
.login-card {
    position: relative;
    z-index: 2;
    width: 380px;
    padding: 40px;
    border-radius: 20px;
    background: rgba(10, 12, 30, 0.88);
    backdrop-filter: blur(14px);
    box-shadow: 0 0 30px rgba(0, 140, 255, 0.35);
    animation: card-pop 0.7s ease-out;
    border: 1px solid rgba(255,255,255,0.12);
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.15s ease-out;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 22px;
    background: linear-gradient(135deg,
    rgba(0, 225, 255, 0.6),
    rgba(0, 123, 255, 0.3),
    rgba(125, 60, 255, 0.4)
    );
    filter: blur(10px);
    z-index: -1;
    animation: glowPulse 5s ease-in-out infinite;
}

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

@keyframes card-pop {
    0%   { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1);    opacity: 1; }
}

.login-title {
    color: #ffffff;
    text-align: center;
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 1px;
    animation: glow-text 2.5s ease-in-out infinite;
}

@keyframes glow-text {
    0%, 100% { text-shadow: 0 0 8px #007bff; }
    50%      { text-shadow: 0 0 18px #3da6ff; }
}

label {
    color: #e6e6e6;
}

.form-control {
    height: 46px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    transition: 0.2s;
}

.form-control::placeholder {
    color: rgba(255,255,255,0.7);
}

.form-control:focus {
    background: rgba(0,0,0,0.4);
    border-color: #3da6ff;
    box-shadow: 0 0 12px rgba(61,166,255,0.8);
}

/* ==== КНОПКА LOGIN ==== */
.btn-login {
    position: relative;
    overflow: hidden;
    height: 48px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #007bff, #0040ff);
    border: none;
    transition: 0.3s;
    box-shadow: 0 0 12px rgba(0,123,255,0.4);
}

.btn-login:hover {
    box-shadow: 0 0 22px rgba(0,153,255,0.8);
    transform: translateY(-2px);
}

.btn-login span.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background: rgba(255,255,255,0.6);
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==== FOOTER ==== */
.login-footer {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    color: #dbe7ff;
    opacity: 0.95;
}

.login-footer a {
    color: #7fb3ff;
    font-weight: 600;
    margin-left: 6px;
    text-decoration: none;
}

.login-footer a:hover {
    color: #b8d4ff;
    text-shadow: 0 0 6px rgba(150,190,255,0.8);
}
