body {
    min-height: 100vh;
    background-color: #000; /* Fallback černá */
    background-image: url('bg-login.jpg?v=202507122353'); /* obrázek ve stejné složce jako CSS */
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover !important;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #fafdff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form {
    width: 100%;
    max-width: 340px;
    background: rgba(20, 24, 35, 0.56);
    border-radius: 16px;
    padding: 1.2em 0.8em 1em 0.8em;
    margin: 1.2em 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 6px 32px rgba(0,0,0,0.18);
    backdrop-filter: blur(16px) saturate(110%);
    -webkit-backdrop-filter: blur(16px) saturate(110%);
    border: 1.5px solid rgba(255,255,255,0.11);
}

.logo-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1em;
}
.form-logo {
    height: auto;
    max-height: 70px;
    width: auto;
    max-width: 70%;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

.login-form h2 {
    text-align: center;
    margin-bottom: 1em;
    font-size: 1.09em;
    color: #fafdff;
    letter-spacing: 1px;
    font-weight: 700;
}

.form-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 80%;
    margin: 0 auto 0.6em auto;
}

.form-row label,
.login-form label {
    color: #fff !important;
    font-weight: 500;
    font-size: 1em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.10);
    margin-bottom: 0.18em;
    margin-left: 0.1em;
}

.form-row input[type="email"],
.form-row input[type="password"] {
    width: 240px;
    max-width: 100%;
    border: 1px solid #384262;
    padding: 0.32em 0.7em;
    font-size: 1em;
    border-radius: 6px;
    background: rgba(40, 50, 80, 0.92);
    color: #fafdff;
    transition: border 0.2s, background 0.2s;
    height: 38px;
    min-height: 36px;
    box-sizing: border-box;
    margin: 0 auto 0.6em auto;
    display: block;
}

.form-row input[type="email"]::placeholder,
.form-row input[type="password"]::placeholder {
    color: #e8f3ff;
    opacity: 1;
    font-size: 0.93em;
}

.form-row input[type="email"]:focus,
.form-row input[type="password"]:focus {
    border: 1.5px solid #7ca8ff;
    background: #253157;
    color: #fff;
}

.login-form button[type="submit"] {
    width: 80%;
    margin: 0.7em auto 0 auto;
    display: block;
    font-size: 1em;
    border-radius: 10px;
    padding: 0.6em 0;
    background: rgba(60, 60, 60, 0.26);
    color: #fafdff;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1.5px solid rgba(60, 60, 60, 0.35);
    box-shadow: 0 2px 16px 0 rgba(255,255,255,0.12), 0 1.5px 8px 0 rgba(67,97,238,0.09);
    cursor: pointer;
    transition: background 0.18s, border 0.18s, color 0.18s;
    backdrop-filter: blur(8px) saturate(110%);
    -webkit-backdrop-filter: blur(8px) saturate(110%);
    position: relative;
    overflow: hidden;
}
.login-form button[type="submit"]:hover {
    background: rgba(30, 30, 30, 0.38);
    color: #fff;
}

.login-back {
    margin-top: 1.2em;
    text-align: center;
    font-size: 0.98em;
}
.login-back a {
    color: #ffe066;
    text-decoration: underline;
    transition: color 0.18s;
}
.login-back a:hover {
    color: #fff;
}

.login-form .error,
.login-form .success {
    margin-bottom: 0.8em;
    font-size: 0.97em;
    color: #fff;
    background: rgba(220, 80, 80, 0.18);
    border-radius: 6px;
    padding: 0.4em 0.7em;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    .login-form {
        max-width: 95vw;
        width: 95vw;
        padding: 0.8em 0.3em 0.7em 0.3em;
    }
    .form-logo {
        max-height: 38px;
    }
    .form-row {
        width: 96%;
    }
    .form-row input[type="email"],
    .form-row input[type="password"] {
        width: 100%;
        min-width: 0;
        margin: 0 0 0.6em 0;
    }
}
