/* 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: var(--casa-brown);
    margin-bottom: 32px;
    letter-spacing: 1px;
    font-family: var(--font-primary);
}

/* 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: var(--casa-brown);
}

/* Login button */
.login-btn {
    width: 100%;
    padding: 15px;
    background: var(--casa-brown);
    border: none;
    color: white;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.25s ease;
}

.login-btn:hover {
    background: var(--casa-brown-light);
}
.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: #6a5544;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s;
}

.login-links .link:hover {
    color: #4a3a32;
    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: var(--casa-brown);
}

.remember input[type="checkbox"] {
    width: 18px !important;
    height: 18px;
    margin: 0;
    padding: 0;
    accent-color: #4a3a32;
}

/* 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: #4a3a32;
    width: 100%;
    box-sizing: border-box;
}
.login-box input {
    border: 1px solid #ccbfb7;
    background: #faf6f4;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 14px;
    box-sizing: border-box;
}

/* 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: #4a3a32 !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 */
    }
}
