/* Login Page CSS - MFP Sistem */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #dc2626;
    --success-color: #059669;
    --warning-color: #d97706;
    --light-bg: #f8fafc;
    --dark-bg: #1e293b;
    --text-color: #1e293b;
    --border-color: #cbd5e1;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 50%, #1e3a8a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Animirani background elementi */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* Main container */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Logo section */
.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3);
    position: relative;
    overflow: hidden;
}

.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.8));
    border-radius: 10px;
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.logo::after {
    content: 'MFP';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-weight: 900;
    font-size: 17px;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 1px;
}

.system-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.system-subtitle {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 400;
    margin-bottom: 10px;
}

.system-description {
    font-size: 0.85rem;
    color: #95a5a6;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Form styling */
.login-form {
    margin-top: 30px;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.form-input:hover {
    border-color: var(--secondary-color);
}

.form-input::placeholder {
    color: #bdc3c7;
    font-style: italic;
}

/* Submit button */
.submit-btn {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    margin-bottom: 20px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #2980b9, var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Deblokada button */
.deblokada-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--warning-color), #e67e22);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.deblokada-btn:hover {
    background: linear-gradient(135deg, #e67e22, var(--warning-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* Error messages */
.errorblock {
    background: linear-gradient(135deg, #fee, #fdd);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Features section */
.features-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #ecf0f1;
}

.features-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #7f8c8d;
    padding: 8px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 8px;
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.feature-icon {
    width: 16px;
    height: 16px;
    background: var(--secondary-color);
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .login-container {
        padding: 30px 25px;
        max-width: 380px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
    }
    
    .logo::after {
        font-size: 14px;
    }
    
    .system-title {
        font-size: 1.5rem;
    }
    
    .form-title {
        font-size: 1.3rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 25px 20px;
        margin: 10px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .logo::after {
        font-size: 12px;
    }
    
    .system-title {
        font-size: 1.3rem;
    }
    
    .form-input,
    .submit-btn,
    .deblokada-btn {
        padding: 12px 15px;
    }
}

/* Loading animation */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus states for accessibility */
.form-input:focus,
.submit-btn:focus,
.deblokada-btn:focus {
    outline: 3px solid rgba(52, 152, 219, 0.3);
    outline-offset: 2px;
}

/* Hidden elements */
input[type="hidden"] {
    display: none;
}