* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: #fdfaf5;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

.form-container {
    margin-top: 20px;
    max-width: 420px;

}

.btn-main:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.legal {
    margin-top: 20px;
    font-size: 0.75rem;
    color: #888;
    text-align: center;
}

/* Language Picker */
.language-picker {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.language-picker button {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: #8b7355;
    padding: 5px;
}

.language-picker button.active {
    text-decoration: underline;
    color: #333;
}

/* Left side */
.left-side {
    flex: 1;
    background:
        linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
        url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?q=80&w=2070') no-repeat center center;
    background-size: cover;
    padding: 40px;
    display: flex;
    align-items: flex-start;
}
.overlay-text {
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.overlay-text h1 {
    font-size: 3.5rem;
    font-family: serif;
}

/* Right side */
.right-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.form-container {
    max-width: 400px;
    width: 120%;
    text-align: center;
}

h2 {
    font-size: 2rem;
    font-family: serif;
    margin-bottom: 10px;
}

.description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* Inputs */
.input-group {
    text-align: left;
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 5px;
    color: #444;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    outline: none;
    transition: all 0.2s ease;
}

input:focus {
    border-color: #8b7355;
    box-shadow: 0 0 0 3px rgba(139,115,85,0.15);
}

.password-wrapper {
    position: relative;
}

.password-wrapper i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
    padding: 5px;
}

/* Buttons */
.btn-main {
    width: 100%;
    padding: 14px;
    background: #8b7355;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.divider {
    margin: 25px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.divider span {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fdfaf5;
    padding: 0 10px;
    font-size: 0.8rem;
    color: #999;
}

.social-btns {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-social {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #aaa;
}

.success-icon {
    width: 50px;
    height: 50px;
    background: #8b7355;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

.btn-confirm {
    background: #8b7355;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 25px;
}
/* PAGE LOAD ANIMATION */

.form-container {
    animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
    scroll-behavior: smooth;
}

/* RESPONSIVE DESIGN */

/* Tablet i manji laptopi */
@media (max-width: 900px) {

    .container {
        flex-direction: column;
        height: auto;
    }

    .left-side {
        display: none;
    }

    .right-side {
        flex: none;
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        padding: 30px;
    }

    .form-container {
        max-width: 420px;
        width: 100%;
    }

    .language-picker {
        top: 15px;
        right: 15px;
    }
}

/* Mobilni telefoni */
@media (max-width: 500px) {

    h2 {
        font-size: 1.6rem;
    }

    .description {
        font-size: 0.85rem;
    }

    input {
        padding: 14px;
    }

    .btn-main {
        padding: 15px;
    }
}

.form-message {
    min-height: 20px;
    margin-top: 12px;
    font-size: 0.9rem;
    text-align: center;
}

.form-message.success {
    color: #2e7d32;
}

.form-message.error {
    color: #c62828;
}

.btn-main:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vf-logo {
    width: 120px;
    margin: 0 auto 20px auto;
    display: block;
}