/* Zebradienst standalone login page. Kept external because the app CSP blocks inline styles. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body.zd-login-page {
    min-height: 100vh;
    background: #0f172a;
    overflow-x: hidden;
    color: #0f172a;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.zd-login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: #0f172a url("../../image/mbc-login.jpg") center center / cover no-repeat;
}

.zd-login-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.08), rgba(255, 255, 255, 0.16)),
        radial-gradient(circle at 70% 48%, rgba(255, 255, 255, 0.28), transparent 34%);
}

.zd-login-screen {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.zd-login-right {
    width: min(100%, 420px);
    margin: 0 auto;
}

.zd-login-card {
    width: 100%;
    padding: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.zd-login-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 12px;
}

.zd-login-brand {
    display: grid;
    justify-items: center;
    gap: 0;
    margin: 0 0 24px;
}

.zd-logo-mark-frame {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 0 -12px;
    border: 2px solid rgba(14, 165, 233, 0.45);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: none;
}

.zd-logo-mark,
img.zd-logo-mark {
    display: block;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
}

.zd-logo-wordmark,
img.zd-logo-wordmark {
    display: block;
    width: 213px;
    max-width: 70%;
    height: auto;
    margin: 0;
}

.zd-flash {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 14px;
}

.zd-form {
    display: grid;
    gap: 16px;
}

.zd-field {
    display: grid;
    gap: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.zd-control {
    height: 52px;
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
}

.zd-control:focus-within {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.zd-input-icon {
    width: 20px;
    height: 20px;
    margin-left: 14px;
    color: #0ea5e9;
    flex: 0 0 auto;
}

.zd-control input {
    width: 100%;
    height: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #0f172a;
    outline: none;
    padding: 0 14px;
    font: inherit;
}

.zd-control input::placeholder {
    color: #9ca3af;
}

.zd-password-toggle {
    width: 40px;
    height: 40px;
    margin-right: 6px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.zd-password-toggle:hover {
    background: #f3f4f6;
    color: #0ea5e9;
}

.zd-password-toggle svg {
    width: 20px;
    height: 20px;
}

.zd-password-toggle .icon-eye-off,
.zd-password-toggle[aria-pressed="true"] .icon-eye {
    display: none;
}

.zd-password-toggle[aria-pressed="true"] .icon-eye-off {
    display: block;
}

.zd-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #6b7280;
    font-size: 14px;
}

.zd-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.zd-remember input {
    width: 16px;
    height: 16px;
    accent-color: #0ea5e9;
}

.zd-forgot {
    color: #0369a1;
    text-decoration: none;
}

.zd-submit {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.zd-features {
    display: none;
}

.zd-feature {
    display: grid;
    justify-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
}

.zd-feature svg {
    width: 20px;
    height: 20px;
    color: #0ea5e9;
}

@media (max-width: 520px) {
    .zd-login-screen {
        min-height: 100svh;
        padding: 16px;
    }

    .zd-login-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .zd-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .zd-features {
        display: none;
    }
}
