/* ==== Анімований задній фон ==== */
body {
    margin: 0;
    overflow: hidden;
    font-family: "Segoe UI", sans-serif;
    background: linear-gradient(-45deg, #0f2f25, #14382c, #0d231d, #05110e);
    background-size: 300% 300%;
    animation: bgmove 12s 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%; }
}

/* ==== Хвилі на фоні ==== */
.wave {
    position: absolute;
    width: 200%;
    height: 250px;
    left: -50%;
    bottom: 0;
    background: rgba(0, 255, 140, 0.05);
    border-radius: 43%;
    animation: waveMove 14s infinite linear;
    filter: blur(45px);
}

.wave:nth-child(2) {
    bottom: -40px;
    animation-duration: 20s;
    opacity: 0.4;
}

@keyframes waveMove {
    from { transform: translateX(-50%) rotate(0deg); }
    to   { transform: translateX(-50%) rotate(360deg); }
}

/* ==== Дощ із доларів і Tlod ==== */
.float-item {
    position: absolute;
    color: #4be68c;
    font-weight: 700;
    animation: floatUp 7s linear infinite;
    filter: drop-shadow(0 0 6px rgba(0, 255, 150, 0.7));
    white-space: nowrap;

    transform: translateY(110vh);
    opacity: 0;
}

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

/* ==== Картка логіну ==== */
.login-card {
    position: relative;
    z-index: 2;
    width: 380px;
    padding: 40px;
    border-radius: 20px;
    background: rgba(10, 16, 12, 0.88);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 0 25px rgba(64, 255, 180, 0.25);
    animation: cardIn 0.7s ease-out;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

@keyframes cardIn {
    0% { opacity: 0; transform: scale(0.88); }
    100% { opacity: 1; transform: scale(1); }
}

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

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

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 18px rgba(0,255,160,0.7);
    }
    50% {
        transform: scale(1.07);
        box-shadow: 0 0 28px rgba(0,255,200,1);
    }
}

/* ==== Текст ==== */
.login-title {
    color: #eafff6;
    text-align: center;
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 1px;
}

label {
    color: #e0f7eb;
}

.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: #4be68c;
    box-shadow: 0 0 12px rgba(75,230,140,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, #28a745, #00c776);
    border: none;
    transition: 0.3s;
    box-shadow: 0 0 12px rgba(40,167,69,0.5);
    cursor: pointer;
}

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

/* Стан при disabled (анти-дабл-клік) */
.btn-login.disabled,
.btn-login:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: translateY(0);
    box-shadow: 0 0 8px rgba(40,167,69,0.3);
}

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

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

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

/* Невелика адаптивність */
@media (max-width: 480px) {
    .login-card {
        width: 90%;
        padding: 30px 20px;
    }
}
