@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #2c3e50;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.auth-container {
    display: flex;
    width: 800px;
    height: 500px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.6s ease-in-out;
}

.auth-panel {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

/* Paneli za formu */
.login-panel {
    background-color: #ffffff;
    left: 0;
    z-index: 2;
}

.register-panel {
    background-color: #ffffff;
    left: 100%;
    z-index: 1;
}

/* Paneli sa slikom */
.image-panel {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/bridge.webp');
    background-size: cover;
    background-position: center;
    right: 0;
    color: white;
    z-index: 3;
    transform: translateX(0);
}

/* Animacija panela */
.auth-container.register-mode .login-panel {
    transform: translateX(-100%);
}

.auth-container.register-mode .register-panel {
    transform: translateX(-100%);
}

.auth-container.register-mode .image-panel {
    transform: translateX(-100%);
}

/* Specifični stilovi za formu */
.auth-panel h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    font-weight: 700;
}

.form-group {
    width: 100%;
    margin-bottom: 15px;
}

input {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 1em;
}

button {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: none;
    background-color: #007bff;
    color: white;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

.form-links {
    margin-top: 20px;
    font-size: 0.9em;
}

.form-links a {
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.form-links a:hover {
    color: #0056b3;
}

.error, .success {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-weight: 500;
}

.error {
    background-color: #ffcccc;
    color: #cc0000;
}

.success {
    background-color: #ccffcc;
    color: #008000;
}

/* NOVI CSS za logo */
.auth-logo {
    width: 250px;
    height: auto;
}