/* Stilovi za login formu - E-pisarnica */

:root {
    --primary-color: #28a745;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f9fafb;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
    opacity: 0.3;
}

.form {
    position: relative;
    z-index: 2;
    background-color: white;
    max-width: 420px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
    padding: 40px;
    text-align: center;
    opacity: 0.95;
}

.form .logo {
    margin-bottom: 10px;
}

.form h1 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
}

.form h2 {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--dark-color);
    font-weight: 400;
}

.field-wrap {
    position: relative;
    margin-bottom: 20px;
}

.field-wrap label {
    display: block;
    text-align: left;
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 16px;
}

.input-with-icon input {
    padding-left: 45px;
}

.field-wrap input[type="text"],
.field-wrap input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: var(--transition);
}

.field-wrap input[type="text"]:focus,
.field-wrap input[type="password"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
    outline: none;
}

.forgot {
    text-align: right;
    margin-bottom: 20px;
}

.forgot a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.forgot a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='white'%3E%3Cpath d='M416 448h-84c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h84c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32h-84c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h84c53 0 96 43 96 96v192c0 53-43 96-96 96zm-47-201L201 79c-15-15-41-4.5-41 17v96H24c-13.3 0-24 10.7-24 24v96c0 13.3 10.7 24 24 24h136v96c0 21.5 26 32 41 17l168-168c9.3-9.4 9.3-24.6 0-34z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 20px center;
    background-size: 18px 18px;
    padding-left: 50px;
}

.button:hover {
    background-color: #218838;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

.tab-content {
    margin-bottom: 20px;
}

.alert {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.alert i {
    margin-right: 10px;
    font-size: 16px;
}

.alert-info {
    background-color: #17a2b8;
}

.alert-danger {
    background-color: #dc3545;
}

.form a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.form a:hover {
    text-decoration: underline;
}

.client-link {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.client-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Animacija za polja kada su u fokusu */
.blurInputStil {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responzivnost */
@media (max-width: 500px) {
    .form {
        max-width: 100%;
        border-radius: 0;
        padding: 25px;
        margin: 0;
    }
    
    body {
        align-items: flex-start;
        padding: 20px;
    }
}