/* Modernizovan login page sa futurističkim pristupom */
.login-page .auth-wrapper {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 2rem 1rem;
    position: relative;

    /* Modernizovana pozadina sa gradijentom */
    background:
            radial-gradient(circle at 20% 80%, rgba(110, 168, 254, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(32, 201, 151, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
            linear-gradient(135deg, #0a0e15 0%, #101419 25%, #161b23 50%, #0f1419 100%),
            #0a0e15 url("/public/assets/images/login_bg.jpg") center / cover no-repeat;

    /* Animiran grid pattern overlay */
    background-size:
            600px 600px,
            800px 800px,
            400px 400px,
            100% 100%,
            cover;

    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        background-position:
                20% 80%,
                80% 20%,
                40% 40%,
                0% 0%,
                center;
    }
    50% {
        background-position:
                25% 75%,
                75% 25%,
                45% 35%,
                0% 0%,
                center;
    }
}

/* Modernizovan overlay sa blur efektom */
.login-page .auth-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(135deg,
            rgba(10, 16, 24, 0.7) 0%,
            rgba(16, 20, 25, 0.6) 25%,
            rgba(22, 27, 35, 0.65) 50%,
            rgba(15, 20, 25, 0.7) 100%
            );
    backdrop-filter: blur(1px);
    pointer-events: none;
}

/* Z-index layering */
.login-page .auth-card,
.login-page .auth-copy {
    position: relative;
    z-index: 10;
}

/* Modernizovana auth kartica */
.login-page .auth-card {
    width: 100%;
    max-width: 440px;
    border-radius: 24px;

    /* Glassmorphism efekat */
    background:
            linear-gradient(135deg,
            rgba(18, 24, 38, 0.9) 0%,
            rgba(22, 27, 35, 0.85) 50%,
            rgba(16, 20, 25, 0.9) 100%
            );

    /* Moderni border sa gradijentom */
    border: 1px solid;
    border-image: linear-gradient(135deg,
    rgba(110, 168, 254, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(32, 201, 151, 0.2) 100%
    ) 1;

    /* Napredne senke */
    box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.6),
            0 8px 32px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2);

    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Animated border glow efekat */
.login-page .auth-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg,
    rgba(110, 168, 254, 0.4) 0%,
    rgba(32, 201, 151, 0.3) 50%,
    rgba(110, 168, 254, 0.4) 100%
    );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-page .auth-card:hover::before {
    opacity: 1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        background: linear-gradient(135deg,
        rgba(110, 168, 254, 0.4) 0%,
        rgba(32, 201, 151, 0.3) 50%,
        rgba(110, 168, 254, 0.4) 100%
        );
    }
    50% {
        background: linear-gradient(135deg,
        rgba(32, 201, 151, 0.5) 0%,
        rgba(110, 168, 254, 0.4) 50%,
        rgba(32, 201, 151, 0.5) 100%
        );
    }
}

/* Hover efekat za karticu */
.login-page .auth-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
            0 32px 80px rgba(0, 0, 0, 0.7),
            0 16px 48px rgba(0, 0, 0, 0.5),
            0 0 40px rgba(110, 168, 254, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.15),
            inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* Modernizovani card body */
.login-page .auth-card .card-body {
    padding: 3rem 2.5rem;
    position: relative;
}

/* Floating particles efekat */
.login-page .auth-card .card-body::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 15%;
    width: 4px;
    height: 4px;
    background: rgba(110, 168, 254, 0.6);
    border-radius: 50%;
    box-shadow:
            -30px 10px 0 rgba(32, 201, 151, 0.4),
            20px -15px 0 rgba(251, 191, 36, 0.3),
            -15px -20px 0 rgba(110, 168, 254, 0.3),
            35px 25px 0 rgba(32, 201, 151, 0.2);
    animation: floatingParticles 8s ease-in-out infinite;
}

@keyframes floatingParticles {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-10px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-5px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-15px) rotate(270deg);
        opacity: 0.7;
    }
}

/* Modernizovan naslov */
.login-page .auth-card h2 {
    color: #f0f3f7;
    font-weight: 800;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;

    /* Text glow efekat */
    text-shadow:
            0 0 20px rgba(110, 168, 254, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.5);

    position: relative;
}

.login-page .auth-card h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg,
    transparent 0%,
    rgba(110, 168, 254, 0.8) 50%,
    transparent 100%
    );
    border-radius: 1px;
}

/* Modernizovane form kontrole */
.login-page .form-control {
    background: rgba(15, 20, 25, 0.8);
    border: 1px solid rgba(42, 49, 61, 0.8);
    border-radius: 14px;
    color: #f0f3f7;
    font-weight: 500;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
}

.login-page .form-control:focus {
    background: rgba(22, 27, 35, 0.9);
    border-color: rgba(110, 168, 254, 0.6);
    box-shadow:
            0 0 0 0.2rem rgba(110, 168, 254, 0.15),
            0 4px 20px rgba(110, 168, 254, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #f0f3f7;
}

.login-page .form-control::placeholder {
    color: rgba(196, 205, 216, 0.6);
    transition: color 0.3s ease;
}

.login-page .form-control:focus::placeholder {
    color: rgba(196, 205, 216, 0.4);
}

/* Modernizovane labele */
.login-page .form-label {
    color: #c4cdd8;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Modernizovan submit dugme */
.login-page .btn-primary {
    background: linear-gradient(135deg,
    rgba(110, 168, 254, 1) 0%,
    rgba(90, 148, 232, 1) 100%
    );
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 1rem 2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    box-shadow:
            0 8px 24px rgba(110, 168, 254, 0.4),
            0 4px 12px rgba(110, 168, 254, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Animated shine efekat za dugme */
.login-page .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
    );
    transition: left 0.6s ease;
}

.login-page .btn-primary:hover::before {
    left: 100%;
}

.login-page .btn-primary:hover {
    background: linear-gradient(135deg,
    rgba(125, 180, 255, 1) 0%,
    rgba(110, 168, 254, 1) 100%
    );
    transform: translateY(-3px);
    box-shadow:
            0 12px 32px rgba(110, 168, 254, 0.5),
            0 6px 16px rgba(110, 168, 254, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.login-page .btn-primary:active {
    transform: translateY(-1px);
    box-shadow:
            0 6px 16px rgba(110, 168, 254, 0.4),
            0 3px 8px rgba(110, 168, 254, 0.2);
}

/* Modernizovan copyright */
.login-page .auth-copy {
    margin-top: 1.5rem;
    text-align: center;
    color: rgba(196, 205, 216, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.login-page .auth-copy:hover {
    color: rgba(196, 205, 216, 0.9);
}

/* Error alert modernizacija */
.login-page .alert-danger {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 12px;
    color: #fca5a5;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);

    box-shadow:
            0 4px 12px rgba(248, 113, 113, 0.1),
            inset 0 1px 0 rgba(248, 113, 113, 0.1);
}

/* Responsive poboljšanja */
@media (max-width: 768px) {
    .login-page .auth-wrapper {
        padding: 1.5rem 1rem;
        gap: 15px;
    }

    .login-page .auth-card {
        max-width: 380px;
        border-radius: 20px;
    }

    .login-page .auth-card .card-body {
        padding: 2rem 1.8rem;
    }

    .login-page .auth-card h2 {
        font-size: 1.7rem;
        margin-bottom: 1.5rem;
    }

    .login-page .form-control {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }

    .login-page .btn-primary {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .login-page .auth-card {
        max-width: 340px;
        margin: 0 10px;
    }

    .login-page .auth-card .card-body {
        padding: 1.5rem 1.5rem;
    }
}

/* Loading state animacija */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.login-page .auth-card {
    animation: fadeInScale 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-page .auth-copy {
    animation: fadeInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}