/* ==== Анімований фіолетовий фон ==== */
body {
    margin: 0;
    overflow: hidden;
    font-family: "Segoe UI", sans-serif;
    background: linear-gradient(
        -45deg,
        #1a0b2e,
        #2a145a,
        #12071f,
        #2e136b
    );
    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, #b66cff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: #2b0a4a;
    box-shadow: 0 0 18px rgba(182,108,255,0.75);
    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(182,108,255,0.7);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 28px rgba(200,140,255,1);
    }
}

/* ==== Літаючі елементи ==== */
.float-item {
    position: absolute;
    pointer-events: none;
    white-space: nowrap;
    animation: floatUp 9s linear infinite;
    filter: drop-shadow(0 0 8px rgba(190,140,255,0.9));
    transform: translateY(110vh);
    opacity: 0;
}

@keyframes floatUp {
    0% {
        transform: translateY(110vh);
        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(18, 10, 36, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 0 34px rgba(150,90,255,0.45);
    animation: card-pop 0.7s ease-out;
    border: 1px solid rgba(255,255,255,0.14);
    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(200,140,255,0.7),
        rgba(150,80,255,0.45),
        rgba(90,40,200,0.6)
    );
    filter: blur(12px);
    z-index: -1;
    animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.45; }
    50%      { opacity: 0.9; }
}

@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 #9b5cff; }
    50%      { text-shadow: 0 0 20px #cfa3ff; }
}

/* ==== INPUTS ==== */
label {
    color: #e9dcff;
}

.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.45);
    border-color: #b66cff;
    box-shadow: 0 0 14px rgba(182,108,255,0.9);
}

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

.btn-login:hover {
    box-shadow: 0 0 28px rgba(190,130,255,0.9);
    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.65);
    pointer-events: none;
}

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

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

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

.login-footer a:hover {
    color: #f0ddff;
    text-shadow: 0 0 8px rgba(200,150,255,0.9);
}
