/* LOGIN PAGE STYLING ONLY */

.login-box {
    background: white;
    padding: 45px;
    border-radius: 18px;
    width: 380px;
    max-width: 90%;
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
    text-align: center;
}

/* Naslov login forme */
.title {
    font-size: 28px;
    font-weight: 700;
    color: #1C244B;
    margin-bottom: 32px;
    letter-spacing: 1px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Input polja */
input[type=text], input[type=password] {
    width: 100%;
    padding: 16px;
    border: 1px solid #C8B8AE;
    border-radius: 10px;
    margin-bottom: 22px;
    font-size: 16px;
    background: #FCF9F7;
    box-sizing: border-box;
}

/* Remember me checkbox */
.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 15px;
    color: #1C244B;
}

/* Login button */
.login-btn {
    width: 100%;
    padding: 15px;
    background: #262262;
    border: none;
    color: white;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.25s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.login-btn:hover {
    background: #1C244B;
}
.login-logo img {
    width: 100px;                /* taman za mobilni + desktop */
    opacity: 0;
    filter: blur(8px);
    transform: translateY(-8px) scale(0.92);

    animation: logoBlurSharp 1.6s ease-out forwards;
}
.login-links {
    margin-top: 18px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    padding: 0 6px;
}
.back-link {
    margin-top: 12px;
    opacity: 0.85;
}
.login-links .link {
    font-size: 14px;
    color: #262262;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s;
}

.login-links .link:hover {
    color: #1C244B;
    text-decoration: underline;
}
/* Remember me checkbox */
.remember {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 15px;
    color: #1C244B;
}

.login-box input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    accent-color: #1C244B;
}

/* Reset email input styling */
input[type="email"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    border: 1px solid #ccbfb7 !important;
    background: #faf6f4 !important;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 16px;
    color: #1C244B;
    width: 100%;
    box-sizing: border-box;
}
.login-box input {
    border: 1px solid #c8d4e8 !important;
    background: #F9FAFD !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-size: 16px !important;
    width: 100% !important;
    margin-bottom: 14px !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    color: #1C244B !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.login-box input:focus {
    outline: none !important;
    border-color: #6DC8BF !important;
    box-shadow: 0 0 0 3px rgba(109,200,191,0.15) !important;
    background: #F9FAFD !important;
}

.login-box input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #F9FAFD inset !important;
    -webkit-text-fill-color: #1C244B !important;
}

/* Autofill hack da i to izgleda kao ostali inputi */
input[type="email"]:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #faf6f4 inset !important;
    -webkit-text-fill-color: #1C244B !important;
}
.back-link {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.8;
}

.back-link:hover {
    opacity: 1;
}

@keyframes logoBlurSharp {
    0% {
        opacity: 0;
        filter: blur(12px);
        transform: translateY(-12px) scale(0.90);
    }
    50% {
        opacity: 1;
        filter: blur(4px);
        transform: translateY(0) scale(1.06);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1.00);
    }
}
@media (max-width: 600px) {

    body.centered-container {
        padding: 20px;    /* da ne lepi ivice uređaja */
        box-sizing: border-box;
    }

    .login-box {
        width: 90%;       /* širina login kutije */
        max-width: 360px; /* da ne pređe normalnu širinu */
        padding: 32px;    /* malo manji padding */
        margin: 0 auto;   /* centrirano */
    }
}
