.login_body {
    background: linear-gradient(#0000007a, #000000b8),
        url("/images/ikony/space_bg.jpg") no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Specifické pravidlo pro iOS zařízení */
@supports (-webkit-touch-callout: none) {
    .login_body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(#0000007a, #000000b8),
            url("/images/ikony/space_bg.jpg") no-repeat center center;
        background-size: cover;
        z-index: -1;
        pointer-events: none;
    }

    .login_body {
        background: none;
    }
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #e2dfdb !important;
    transition: background-color 5000s ease-in-out 0s;
}

input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #e2dfdb !important;
    transition: background-color 5000s ease-in-out 0s;
}

input:-webkit-autofill:hover {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #e2dfdb !important;
    transition: background-color 5000s ease-in-out 0s;
}

input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #e2dfdb !important;
    transition: background-color 5000s ease-in-out 0s;
}



.form-result_blur {
    position: fixed;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    transition: all 0.5s ease, opacity 0.5s ease;
    opacity: 1;
}

.form-result_blur.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
}

.form-result {
    min-width: 280px;
    max-width: 90vw;
    color: #fff;
    text-align: center;
    font-size: 18px;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    pointer-events: auto;
}

.form-result.success {
    background: #176c17;
}

.form-result.error {
    background: #a80000;
}

.form-result.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.no-wrap {
    white-space: nowrap;
}

section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

.login-box {
    position: relative;
    width: 400px;
    height: 620px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
}

.login_header {
    font-size: 35px;
    color: #e2dfdb;
    text-align: center;
    text-shadow: 3px 3px 0 #000, -1px -1px 0 #000, 2px -1px 0 #000, -1px 2px 0 #000, 2px 1px 0 #000;
    text-transform: uppercase;
}

.input-box {
    position: relative;
    width: 310px;
    margin: 30px 0;
    border-bottom: 2px solid #e2dfdb;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 19px;
    color: #e2dfdb;
    pointer-events: none;
    transition: all 0.5s;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
    top: -5px;
}

.input-box input {
    width: 100%;
    height: 50px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 19px;
    color: #e2dfdb;
    padding: 0 35px 0 5px;
}

.input-box .icon {
    position: absolute;
    right: 8px;
    color: #e2dfdb;
    font-size: 19px;
    line-height: 57px;
}

.input-box textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 19px;
    color: #e2dfdb;
    padding: 0 35px 0 5px;
}

.eye-icon {
    position: absolute;
    right: 37px !important;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    /* Zamezí zvýraznění na mobilech */
    touch-action: manipulation;
    /* Zlepší odezvu na dotykových zařízeních */
}

.eye-icon.zoom {
    transform: scale(1.1);
    opacity: 0.8;
}

.remember label {
    margin: 31px 0 24px 0;
    color: #e2dfdb;
    display: flex;
    align-items: center;
    font-size: 19px;
    height: 25px;
}

.remember label input[type="checkbox"] {
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    position: relative;
    top: -1px;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background-color: transparent;
    border: 2px solid #ccc;
    border-radius: 5px;
    display: inline-block;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

input[type="checkbox"]:checked {
    background-color: green;
    border-color: green;
}

/* Styl pro zaškrtávací fajfku */
input[type="checkbox"]:checked::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f00c";
    font-size: 15px;
    color: #e2dfdb;
}

button {
    width: 100%;
    height: 50px;
    background: transparent;
    border: 2px solid #e2dfdb;
    outline: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 18px;
    color: #e2dfdb;
    font-weight: 600;
}

button:hover {
    transition: all 0.5s;
    background: #e2dfdb;
    color: #000;
}

#podminky {
    font-size: 20px;
    text-align: center;
    line-height: 30px;
    color: #e2dfdb;
    margin: 20px 0 0 0;
}

@media (max-width: 720px) {
    #podminky {
        font-size: 19px;
    }
}

@media (max-width: 720px) {
    .form-result {
        width: 95%;
        font-size: 17.5px;
        padding: 8px 5px 8px 5px;
    }
}

@media (max-height: 600px) {
    section {
        height: 125vh;
    }
}

@media (max-width: 500px) {
    .login_header {
        font-size: 34px;
    }

    .input-box label,
    .input-box input {
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    .login-box {
        width: 100%;
        height: 100vh;
        border: none;
        border-radius: 0;
    }
}

@media (max-width: 360px) {
    .input-box {
        width: 290px;
    }
}
