/* Celkové nastavenie */
body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #007aff, #4a90e2);
    color: #ffffff;
    position: relative;
    /* Potrebné na správne pozicionovanie */
}

/* Kontajner pre prihlásenie */
.login-container {
    position: absolute;
    top: 10%;
    /* Rezerva odhora */
    left: 50%;
    transform: translateX(-50%);
    /* Zarovnanie do stredu vodorovne */
    width: 100%;
    max-width: 400px;
}

/* Karta pre prihlásenie */
.login-card {
    background: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 0 auto;
}

/* Pri zmene klávesnice na mobiloch */
@media (max-width: 768px) {
    .login-container {
        top: 5%;
        /* Karta sa posunie vyššie na mobiloch */
    }
}

/* Nadpisy a texty */
.login-card h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.login-card p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #666666;
}

/* Pole pre PIN kód */
.pin-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 250px;
    margin: 0 auto 20px;
}

#pin-input {
    width: 100%;
    height: 100%;
    left: -50%;
    opacity: 0;
    position: absolute;
}

/* Vizuálna reprezentácia PIN */
.pin-visual {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 rovnomerne veľké stĺpce */
    gap: 10px;
}

.pin-box {
    width: 50px;
    height: 60px;
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid #cccccc;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    line-height: 60px;
    color: #333333;
}

.pin-box.filled {
    background: #007aff;
    color: #ffffff;
    border-color: #005bb5;
}

/* Tlačidlo na prihlásenie */
.login-button {
    background: #007aff;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    display: block;
}

.login-button:hover {
    background: #005bb5;
}

/* Chybové hlásenie */
.error-message {
    background: #ffdddd;
    color: #d9534f;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}