body {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top, rgba(56, 255, 152, 0.12), transparent 28%),
        linear-gradient(135deg, rgba(2, 13, 9, 0.98), rgba(5, 22, 16, 0.94)),
        repeating-linear-gradient(
            0deg,
            rgba(72, 255, 165, 0.06) 0,
            rgba(72, 255, 165, 0.06) 1px,
            transparent 1px,
            transparent 42px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(72, 255, 165, 0.06) 0,
            rgba(72, 255, 165, 0.06) 1px,
            transparent 1px,
            transparent 42px
        );
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 16%),
        radial-gradient(circle at 20% 20%, rgba(87, 255, 168, 0.1), transparent 24%);
    opacity: 0.8;
}

body::after {
    background-image: linear-gradient(rgba(255, 255, 255, 0.018) 50%, transparent 50%);
    background-size: 100% 4px;
    opacity: 0.2;
}

.overlay {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.68), rgba(3, 28, 19, 0.44)),
        radial-gradient(circle at center, transparent 0, rgba(0, 0, 0, 0.46) 100%);
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 1;
    max-width: 430px;
    margin: 9vh auto;
    padding: 38px 34px 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: linear-gradient(180deg, rgba(6, 24, 18, 0.92), rgba(3, 14, 10, 0.97));
    border: 1px solid rgba(80, 255, 165, 0.22);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 24px rgba(45, 255, 155, 0.08);
    backdrop-filter: blur(8px);
}

.login-container::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(96, 255, 178, 0.12);
    border-radius: 12px;
    pointer-events: none;
}

.login-subtitle {
    color: #8ef7bf;
    font-size: 0.92rem;
    line-height: 1.55;
    text-align: center;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    text-shadow: 0 0 10px rgba(76, 255, 164, 0.18);
}

.login-label {
    color: #7ce9b0;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
}

.login-input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 2px;
    padding: 13px 14px;
    border: 1px solid rgba(78, 255, 166, 0.28);
    border-radius: 10px;
    background: rgba(0, 10, 7, 0.82);
    color: #cffff0;
    font-size: 0.98rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-input:focus {
    border-color: #6dffb0;
    background: rgba(2, 18, 13, 0.94);
    box-shadow: 0 0 0 3px rgba(72, 255, 165, 0.14), 0 0 18px rgba(72, 255, 165, 0.12);
}

.login-input::placeholder {
    color: #61b98a;
}

.login-btn {
    width: 100%;
    margin-top: 10px;
    padding: 13px 16px;
    border-radius: 10px;
    background: linear-gradient(180deg, #1ecf7b, #0f8d52);
    color: #02150e;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(14, 155, 90, 0.3), 0 0 14px rgba(49, 255, 147, 0.2);
}

.login-btn:hover {
    background: linear-gradient(180deg, #46e797, #11a964);
}

.login-error {
    color: #ffd6d6;
    background: rgba(70, 23, 23, 0.82);
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(224, 101, 101, 0.5);
    font-size: 0.93rem;
}

.app-version {
    color: #66d69d;
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(62, 255, 146, 0.16);
}

@media (max-width: 640px) {
    .login-container {
        margin: 5vh 16px;
        padding: 30px 22px 24px;
    }

    .login-subtitle {
        font-size: 0.84rem;
        letter-spacing: 0.08rem;
    }
}
