/* Základní styly pro mobilní zařízení */

body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f0f2f5;
    font-family: 'MozillaText', sans-serif;
    font-weight: 400;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    min-height: 100vh;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.form-section {
    padding: 40px;
    text-align: center;
}

.form-section h2 {
    margin-bottom: 24px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    /* Zajišťuje, že padding neovlivní celkovou šířku */
}

button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

.image-section {
    display: none;
    /* Skryjeme na mobilu */
}


/* Styly pro desktop (rozlišení větší než 768px) */

@media (min-width: 768px) {
    .login-container {
        flex-direction: row;
        /* Zvětšíme kontejner na desktopu */
    }
    .form-section {
        flex: 1;
        /* Zabere 1 díl */
        padding: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .image-section {
        display: block;
        /* Zobrazíme na desktopu */
        flex: 2;
        /* Zabere 2 díly, tedy bude dvakrát větší */
        overflow: hidden;
    }
    .image-section img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Zajišťuje, že obrázek vyplní celou sekci bez deformace */
        border-radius: 0 8px 8px 0;
        /* Zaoblení rohů jen na pravé straně */
    }
}


/* Passwords fields */


/* Kontejner pro pozicování oka */

@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v292/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1v-p_4MrImHCIJIZrDCvHOej.woff2) format('woff2');
}

.password-wrapper {
    position: relative;
}

.password-field {
    padding-right: 2rem;
    box-sizing: border-box;
}


/* Pseudo-tlačítko s okem */

.password-wrapper::after {
    content: "visibility";
    font-family: "Material Symbols Outlined";
    font-size: 22px;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.6;
    user-select: none;
}


/* když je heslo zobrazené */

.password-wrapper.show::after {
    content: "visibility_off";
    opacity: 1;
}