* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: system-ui, sans-serif;
    background: #f7f7fb; /*#111;*/
    color: #010101;
}

body {
    padding: 20px;
}

.page {
    min-height: calc(100vh - 40px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login_window {
    width: min(100%, 480px);
}

.card {
    padding: 24px 24px 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 254, 255, 0.98));
    border: 1px solid rgba(174, 174, 174, 0.655);
    box-shadow: 0 20px 80px rgba(196, 196, 196, 0.35);
}

.card.primary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.card h2 {
    margin: 0 0 6px;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    font-weight: 700;
}

.card p {
    margin: 0;
    color: #000000;
    line-height: 1.45;
    font-size: 0.95rem;
}

.password_input {
    width: 100%;
    padding: 16px 14px;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid rgba(71, 71, 71, 0.16);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.07);
    background: rgba(255, 255, 255, 0.08);
    color: auto;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.password_input.error {
    border-color: #ff5f33;
    box-shadow: 0 0 0 2px rgba(255, 95, 51, 0.28), 0 14px 30px rgba(0, 0, 0, 0.24);
    animation: shake 0.35s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.back_button,
.login_button {
    padding: 14px 16px;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.back_button:hover,
.login_button:hover,
.password_input:hover {
    transform: translateY(-2px);
}

.back_button {
    background: #ff5f33;
    color: #fff;
}

.login_button {
    background: #0b8ed5;
    color: #ffffff;
}

.login_button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.redirect_fallback {
    align-self: center;
    padding: 12px 16px;
    border-radius: 18px;
    background: #0b8ed5;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

/* Impressum / Datenschutz / AGB */
.legal {
    position: absolute;
    bottom: 7%;
    font-size: 12px;
    opacity: 0.7;
    /* Zentrieren: */
    left: 50%;
    transform: translateX(-50%);
}

.legal a {
    color: rgba(0, 0, 0, 0.645);
    text-decoration: none;
}

.legal a:hover {
    text-decoration: underline;
}