@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Arial', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    color: #fff;
}

/* Animirana pozadina (3D efekat) */
body::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at 30% 50%, rgba(72, 0, 255, 0.2), transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 255, 200, 0.1), transparent 50%);
    animation: rotateBackground 20s linear infinite;
    z-index: 0;
}

@keyframes rotateBackground {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(72, 0, 255, 0.1);
    padding: 40px 35px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.8s ease-in-out;
}

.login-container:hover {
    transform: scale(1.02) perspective(1000px) rotateX(2deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(72, 0, 255, 0.15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #a78bfa, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(96, 165, 250, 0.15);
}

.status {
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 25px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.status span {
    color: #a78bfa;
    font-weight: 500;
}

.error-message {
    background: rgba(220, 38, 38, 0.15);
    border-left: 3px solid #dc2626;
    color: #fca5a5;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    text-align: left;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Poppins', 'Arial', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

input:focus {
    border-color: rgba(167, 139, 250, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 25px rgba(167, 139, 250, 0.1);
}

button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', 'Arial', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
    letter-spacing: 0.5px;
}

button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 35px rgba(124, 58, 237, 0.5);
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.footer {
    margin-top: 25px;
    text-align: center;
    color: rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 20px;
}

.footer a {
    color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: rgba(255, 255, 255, 0.5);
}

.disclaimer {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.08);
    font-size: 0.6rem;
    text-align: center;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 25px 18px;
        margin: 15px;
    }
    h1 {
        font-size: 1.7rem;
    }
    .status {
        font-size: 0.7rem;
        flex-direction: column;
        gap: 4px;
    }
}