* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html, body, h1, h2, h3, h4, h5 {
    font-family: 'Segoe UI', 'Calibri', sans-serif;
}

body {
    background: #f0f2f0;  /* helles Grün-Grau statt Warm Grey */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

/* Dezentes Muster im Hintergrund */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
            linear-gradient(rgba(42,168,52,0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(42,168,52,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* ── Login-Card ── */
.login {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-top: 4px solid #2AA834;
    box-shadow: 0 2px 24px rgba(42,168,52,0.10), 0 1px 4px rgba(0,0,0,0.06);
    position: relative;
    z-index: 1;
}

/* ── Logo ── */
.login-logo {
    padding: 28px 32px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.login-logo img {
    max-width: 220px;
    height: auto;
    display: inline-block;
}

/* ── Header ── */
.login-header {
    padding: 20px 32px 4px;
    text-align: center;
}

.login-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #5A4D45;
    margin: 0 0 4px;
}

.login-sub {
    font-size: 12px;
    color: #bbb;
    margin: 0;
}

/* ── Form ── */
.login-form {
    padding: 20px 32px 0;
}

.login-field {
    display: flex;
    margin-bottom: 14px;
}

.login-field label {
    width: 44px;
    height: 44px;
    background: #5A4D45;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.login-field input[type="text"],
.login-field input[type="password"] {
    flex: 1;
    height: 44px;
    border: 1px solid #e0e0e0;
    border-left: none;
    padding: 0 14px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    outline: none;
    transition: border-color 0.18s;
    -webkit-appearance: none;
    border-radius: 0;
}

.login-field input[type="text"]:focus,
.login-field input[type="password"]:focus {
    border-color: #2AA834;
}

/* Passwort vergessen / Zurück */
.login-forgot {
    text-align: right;
    margin-bottom: 16px;
}

.login-forgot a {
    font-size: 12px;
    color: #009EE3;
    text-decoration: none;
}

.login-forgot a:hover { text-decoration: underline; }

/* Submit */
.login-submit {
    margin: 0 -32px;
}

.login-submit input[type="submit"] {
    width: 100%;
    height: 50px;
    background: #2AA834;
    border: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s;
    font-family: inherit;
}

.login-submit input[type="submit"]:hover {
    background: #1c7323;
}

.login-submit .wait {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    display: none;
}

/* Hinweistext (password-forgot) */
.login-hint {
    padding: 0 32px 16px;
    font-size: 13px;
    color: #777;
    line-height: 1.6;
    text-align: center;
}

/* Footer */
.login-footer {
    padding: 14px 32px 18px;
    font-size: 11px;
    color: #bbb;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.login-footer a {
    color: #2AA834;
    text-decoration: none;
}

.login-footer a:hover { text-decoration: underline; }

/* Fehlermeldungen */
.login .w3-panel {
    margin: 8px 32px 0;
    padding: 10px 14px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 440px) {
    body { padding: 0; align-items: flex-start; }
    .login { max-width: 100%; box-shadow: none; }
    .login-logo, .login-header, .login-form, .login-hint { padding-left: 20px; padding-right: 20px; }
    .login-submit { margin: 0 -20px; }
    .login-footer { padding-left: 20px; padding-right: 20px; }
}