<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta http-equiv="expires" content="0">
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/>
    <meta name="robots" content="noindex,nofollow">
    <meta name="mobile-web-app-capable" content="yes">
    <title>ANDREAS - Login</title>
    <link rel="icon" type="image/png" href="IMG/htlz_icon.png" sizes="32x32" />
    <style>
:root{
--htlz-primary:#B51A00;
--htlz-bg:#FFFFFF;
--htlz-surface:#FFFFFF;
--htlz-text:#000000;
--htlz-border:#D7DDE5;
--htlz-primary-bg:#B51A00;
--htlz-primary-text:#0000;
--htlz-header-bg:#B51A00;
--htlz-header-text:#F6F8FB;
--htlz-menu-bg:#B51A00;
--htlz-menu-text:#F6F8FB;
--htlz-surface-bg:#FFFFFF;
--htlz-surface-text:#000000;
--htlz-button-bg:#800000;
--htlz-button-text:#FFFFFF;
--htlz-input-bg:#FFFFFF;
--htlz-input-text:#000000;
--htlz-border-color:#D7DDE5;
--htlz-border-thickness:1px;
--htlz-shadow-color:#333;
--htlz-shadow-offset-x:4px;
--htlz-shadow-offset-y:4px;
--htlz-shadow-blur-radius:14px;
--htlz-font-size:15px;
--htlz-header-font-size:20px;
}
</style>
</head>
<style>
    body {
    background: var(--htlz-bg, #f6f8fb);
    color: var(--htlz-text, #1f2937);
    }
    #mainpart {
        margin: 0;
        font-family: var(--htlz-font-family, HtlzThemeFont), sans-serif;
        font-size: var(--htlz-font-size, 16px);
        display: flex;
        align-items: center;
        justify-content: center;
        height: 90vh;
        overflow: hidden;
    }

    .login-bg {
        position: fixed;
        inset: 0;
        background-size: cover;
        background-position: center;
        z-index: -1;
        }

    .login-container {
        background: var(--htlz-surface, transparent);
        /*backdrop-filter: blur(10px);*/
        border-radius: 12px;
        border: var(--htlz-border-thickness, 1px) solid var(--htlz-border, transparent);
        padding: 2rem;
        width: 90%;
        max-width: 400px;
        box-shadow: var(--htlz-shadow-offset-x, 0px) var(--htlz-shadow-offset-y, 0px) var(--htlz-shadow-blur-radius, 5px) var(--htlz-shadow-color, #999);
        color: var(--htlz-text, #000000);
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 1.2s ease-out forwards;
    }

    .login-logo{
        width: 80%;
        height: auto;
        margin: 0px 10%;
    }

    .messageline{
        width: 100%;
        padding: 15px 10px;
        font-size: 80%;
    }

    @keyframes fadeInUp {
        0% {
            opacity: 0;
            transform: translateY(30px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    h1 {
        font-family: var(--htlz-header-font-family, var(--htlz-font-family, HtlzThemeFont)), sans-serif;
        font-size: var(--htlz-header-font-size, 2em);
        text-align: center;
        margin-bottom: 1.5rem;
        font-weight: 500;
        letter-spacing: 0.5px;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    label {
        display: block;
        margin-bottom: 0.3rem;
        font-size: 0.9rem;
        color: var(--htlz-text, #FFFFFF);
    }

    input {
        width: 100%;
        padding: 0.7rem;
        border-radius: 8px;
        font-size: 1rem;
        outline: none;
        background: var(--htlz-surface, transparent);
        color: var(--htlz-text, #000000);
        transition: background 0.25s ease, box-shadow 0.25s ease;
        border: var(--htlz-border-thickness, 1px) solid var(--htlz-border, transparent);
    }

    input::placeholder {
        color: #666;
    }

    input:focus {
        color: var(--htlz-text, #000000);
        box-shadow: 0 0 4px #999;
    }

    button {
        width: 100%;
        padding: 0.9rem;
        border: none;
        border-radius: 8px;
        background: var(--htlz-primary, #FFFFFF);;
        color: white;
        font-weight: 600;
        cursor: pointer;
        transition: transform 0.2s ease, background 0.3s ease;
    }

    button:hover {
        transform: translateY(-2px);
    }

    @media (max-width: 480px) {
        .login-container {
            padding: 1.5rem;
            max-width: 95%;
        }
        h1 {
            font-size: 1.4rem;
        }
    }
</style>
<body> 
    <div id="mainpart">
        <div class="login-bg" style="opacity: 0.45; background-image:url('/theme_asset.php?id=7&amp;chn=ANDREAS');"></div>        <div class="login-container">
            <img class="login-logo" src="/theme_asset.php?id=11&amp;chn=ANDREAS"/>            <div class="messageline msg_error">
                                    &nbsp;
                                </div>
            <form id="loginbox" method="post">
                <div class="form-group">
                    <label for="username">Benutzername</label>
                                        <input type="text" id="username" mand="1" name="user" placeholder="user" autocomplete="off" autofocus required>
                </div>
                <div class="form-group">
                    <label for="password">Passwort</label>
                    <input type="password" id="password" mand="1" name="user_secret" placeholder="********" autocomplete="new-password" required>
                </div>

                <input type="hidden" name="screen_width" id="screen_width">
                <input type="hidden" name="screen_height" id="screen_height">

                <button type="submit" class="button submitbutton floatright">Sign In</button>
            </form>
        </div>
            </div>
</body>
<script>
document.addEventListener('DOMContentLoaded', () => {
    document.querySelectorAll('input[name="screen_width"]').forEach(i => i.value = window.innerWidth);
    document.querySelectorAll('input[name="screen_height"]').forEach(i => i.value = window.innerHeight);
});
</script>
