html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #0f172a;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #e2e8f0;
}

.card {
    background: #1e293b;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    width: 100%;
    max-width: 380px;
    box-sizing: border-box;
}

h1 {
    margin-top: 0;
    font-size: 1.4rem;
    text-align: center;
}

.field {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

label {
    font-size: .85rem;
    color: #94a3b8;
}

input[type="text"],
input[type="password"] {
    padding: .65rem .75rem;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 1rem;
    box-sizing: border-box;
    width: 100%;
}

input:focus {
    outline: 2px solid #6366f1;
    outline-offset: 1px;
}

.password-wrap {
    position: relative;
    display: flex;
}

.password-wrap input {
    flex: 1;
    padding-right: 2.5rem;
}

.eye-btn {
    position: absolute;
    right: .4rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: .25rem;
    color: #94a3b8;
}

.eye-btn:hover {
    color: #e2e8f0;
}

button[type="submit"] {
    width: 100%;
    padding: .75rem;
    border: none;
    border-radius: 8px;
    background: #6366f1;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    margin-top: .5rem;
    transition: background .15s, opacity .15s;
}

button[type="submit"]:disabled {
    opacity: .5;
    cursor: not-allowed;
}

button[type="submit"]:not(:disabled):hover {
    background: #4f46e5;
}

.error {
    background: #7f1d1d;
    color: #fecaca;
    padding: .6rem .8rem;
    border-radius: 8px;
    font-size: .85rem;
    margin-bottom: 1rem;
}

.success {
    text-align: center;
    font-size: 1.15rem;
    margin: 0;
}

.form-message {
    text-align: center;
    font-size: .9rem;
    margin-top: .9rem;
}

.form-message.success {
    color: #4ade80;
}

.form-message.error {
    color: #fca5a5;
}

/* Honeypot-Feld: fuer echte Nutzer unsichtbar, fuer die meisten Bots nicht */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}
