.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    position: relative;
    overflow: hidden;
    animation: mysticalGlow 20s infinite alternate;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/magical-forest.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    animation: backgroundFloat 20s ease-in-out infinite alternate;
}

@keyframes backgroundFloat {
    0% {
        transform: scale(1) rotate(0deg);
    }

    100% {
        transform: scale(1.1) rotate(3deg);
    }
}

.login-content {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: contentAppear 1s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes contentAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-title {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.login-subtitle {
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 2rem;
}

.login-form .form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.login-form .form-control {
    padding-left: 2.5rem;
    border: none;
    border-bottom: 2px solid #ddd;
    border-radius: 0;
    transition: border-color 0.3s;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.login-form .form-control:focus {
    box-shadow: none;
    border-color: #764ba2;
}

.login-form .input-icon {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
}

.login-form .btn-primary {
    background: linear-gradient(135deg, #6e48aa, #9d50bb);
    border: none;
    padding: 0.75rem;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.login-form .btn-primary:hover {
    background: linear-gradient(135deg, #9d50bb, #6e48aa);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.error-message,
.success-message {
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
}

.error-message {
    background-color: #ffe5e5;
    color: #d63031;
}

.success-message {
    background-color: #e5ffe5;
    color: #00b894;
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
}

.forgot-password {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 0.9rem;
}

.login-quote {
    margin-top: 1rem;
    font-style: italic;
    color: #f0f0f0;
    font-size: 0.9rem;
}

.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

// Dodaj nową animację dla tła
@keyframes mysticalGlow {
    0% {
        filter: hue-rotate(0deg) brightness(1);
    }

    50% {
        filter: hue-rotate(180deg) brightness(1.2);
    }

    100% {
        filter: hue-rotate(360deg) brightness(1);
    }
}