/* Import Morandi Regular font sa Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Morandi&display=swap');

/* Black Bar */
.black-bar {
    background-color: #000000;
    width: 100%;
    height: 115px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.bar-content {
    width: 100%;
    height: 100%;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.left-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.black-bar h2 {
    color: white;
    margin: 0;
    font-size: 1.45rem;
    font-weight: 500;
    font-family: 'Comic Sans MS', 'Comic Sans Regular', cursive;
    white-space: nowrap;
    position: relative;
    left: -15px;
}

.login-btn {
    color: white;
    font-size: 1rem;
    font-family: 'Morandi', 'Morandi Regular', sans-serif;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.login-btn:hover {
    opacity: 0.7;
}

.background-radial {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at top, rgba(196, 214, 255, 0.9), transparent 35%),
                linear-gradient(135deg, #09121f, #143253 48%, #f2f5f8);
}

body {
    margin: 0;
    background-color: #ffffff;
    padding-top: 115px;
}

.main-container {
    position: relative;
    z-index: 1;
}

/* ======================================== */
/* BELI CONTAINER - IZNAD CRVENE KOCKE */
/* ======================================== */
.beli-container {
    background-color: #ffffff;
    border-radius: 20px;
    width: 483px;
    height: auto;
    min-height: 385px;
    position: relative;
    margin-top: 35px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: 30px;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* TITLE - WebTerminal (boldovan) */
.beli-container .title {
    font-family: 'Ardena Medium', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    font-size: 1.9rem;
    color: #192434;
    margin: 0 0 15px 0;
    text-align: left;
}

/* SUBTITLE - Prijava korisnickim podacima */
.beli-container .subtitle {
    font-family: 'Ardena Medium', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #48617c;
    margin: 0 0 25px 0;
    text-align: left;
    line-height: 1;
}

/* ======================================== */
/* INPUT FIELDOVI */
/* ======================================== */
.input-group {
    width: 100%;
    margin-bottom: 15px;
}

.input-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-family: 'Mundo Sans Demi', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #5c6978;
}

/* Label leva strana */
.label-text {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0px;
}

/* ======================================== */
/* POSEBNE TACKE - SVAKA ZA SVOJE POLJE */
/* ======================================== */

/* Tacka za Korisnicko ime */
.required-dot-username {
    display: inline-block;
    width: 2.9px;
    height: 2.9px;
    background-color: #005fdb;
    border-radius: 100%;
    transition: background-color 0.3s ease;
    margin-top: 3.5px;
    position: relative;
    left: -318px;
}

/* Tacka za Lozinku */
.required-dot-password {
    display: inline-block;
    width: 2.9px;
    height: 2.9px;
    margin-top: 3.5px;
    background-color: #005fdb;
    border-radius: 100%;
    transition: background-color 0.3s ease;
    position: relative;
    left: -365px;
}

/* Zajednicka klasa za crvenu boju */
.required-dot-username.red,
.required-dot-password.red {
    background-color: #d92d20;
}

/* Input polje - BEZ OKVIRA */
.input-field {
    width: 100%;
    padding: 8px 0;
    font-size: 0.95rem;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: #dfe4e9;
    border: none;
    border-radius: 20px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    outline: none;
    text-indent: 12px;
    margin-top: 9px;
}

/* CRVENI UNUTRASNJI SHADOW - samo unutra, ne spolja */
.input-field.error {
    box-shadow: inset 0 0 0 2px rgba(217, 45, 32, 0.2);
}

/* Hover efekat - malo zatamnjenje */
.input-field:hover {
    opacity: 0.8;
    cursor: pointer;
}

.input-field:focus {
    opacity: 1;
    outline: none;
    box-shadow: none;
}

/* ======================================== */
/* DUGME NASTAVI */
/* ======================================== */
.nastavi-btn {
    width: 100%;
    padding: 8px 0;
    font-family: 'Sinova Medium', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #ebedf0;
    background-color: #bcc4cd;
    border: none;
    border-radius: 20px;
    cursor: not-allowed;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Aktivan dugme - kada su oba polja popunjena */
.nastavi-btn.active {
    background-color: #1e1f20;
    cursor: pointer;
}

.nastavi-btn.active:hover {
    opacity: 0.9;
}

/* SPINNER - vrti se u loop */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #ebedf0;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sakrivanje teksta na dugmetu kada se pojavi spinner */
.nastavi-btn.loading .btn-text {
    display: none;
}

.nastavi-btn.loading .spinner {
    display: inline-block;
}

.nastavi-btn .spinner {
    display: none;
}

/* Ostali tekst u belom containeru */
.beli-container p {
    margin: 0;
    color: #333;
    font-size: 1rem;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    text-align: left;
}

/* ======================================== */
/* OBAVEŠTENJE - CRVENA KOCKA */
/* ======================================== */
.obavestenje {
    background-color: #ece6e8;
    border: 1.3px solid #d92d20;
    border-radius: 0px;
    width: 971px;
    height: 130px;
    min-height: 0px;
    position: relative;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    left: 0px;
    top: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    padding: 20px;
    box-sizing: border-box;
}

.obavestenje p {
    margin: 8px 0;
    color: #8f1d14;
    font-size: 1rem;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    padding: 0;
    text-align: center;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
}

/* ======================================== */
/* TEKST ISPOD KOCKE */
/* ======================================== */
.brojevi {
    text-align: center;
    position: relative;
    margin-top: 30px;
    margin-bottom: 0px;
    margin-left: auto;
    margin-right: auto;
    max-width: 970px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.brojevi p {
    margin: 15px 0;
    font-size: 0.95rem;
    text-shadow: 0.5px 0.5px #000000;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #ffffff;
    font-weight: normal;
    line-height: 1.2;
    text-align: center;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

/* ======================================== */
/* FOOTER - TEKST SKROZ DOLE CENTRIRAN */
/* ======================================== */
.footer-text {
    position: fixed;
    bottom: -8px;
    left: 0;
    right: 0;
    text-align: center;
    width: 100%;
    padding: 10px 0;
    z-index: 1;
}

.footer-text p {
    margin: 0;
    color: #212f41;
    font-size: 1rem;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    opacity: 1;
}