* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; 
    margin: 0;
    z-index: 0;
}

body::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../img/hero-carousel/kapija1.jpg') center/cover no-repeat;
    opacity: 0.2; /* koliko da bude transparentna */
    z-index: -1;  /* stavi iza svega */
}

.container {
    width: 100%;
    max-width: 380px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-80%);
    color: #6c757d;
}

.input-icon input {
    padding-left: 35px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
}

.modal-box {
    background: #fff;
    padding: 25px 30px;
    max-width: 400px;
    width: 90%;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease;
}

.modal-box button { margin-top: 20px; padding: 8px 20px; cursor: pointer; }

@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}

#regBtn:disabled, #logBtn:disabled, #resetBtn:disabled {
    cursor: not-allowed;
    opacity: 0.65;       /* delimično prozirno */
}
.form {
    /* transition: transform 0.3s ease; */
    position: relative;
    overflow: hidden;
    min-height: 420px;
}


.register-form {
    /* position: absolute; */
    top: 0;
    left: 0;
    width: 100%;
    /* transform: translateX(100%); */
}

h2 {
    text-align: center;
    margin-bottom: 15px;
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

button {
    width: 100%;
    padding: 10px;
    background: #187cd2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background: #187cd2;
}

.text {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

a {
  color: #187cd2;
  text-decoration: none;
}
@media (max-width: 480px) {
    .card {
        padding: 20px;
        border-radius: 10px;
    }

    h2 {
        font-size: 20px;
    }

    input, button {
        padding: 12px;
        font-size: 15px;
    }

    .tabs label {
        font-size: 14px;
        padding: 8px;
    }
}