.typo3-login {
    --dfv-login-brand: #041319;
    --dfv-login-card-bg: #f2f2f7;
    --dfv-login-card-bg-shade: #e1e5ec;
    --dfv-login-hairline: #d5d5d9;
}

.typo3-login-logo img {
    height: 40px;
}

.typo3-login .card {
    box-shadow: none;
}

.typo3-login .card.card-login {
    background-color: var(--dfv-login-card-bg);
    border: 1px solid var(--dfv-login-hairline);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.typo3-login .form-control {
    box-shadow: none;
    background-color: #fff;
}

.typo3-login .input-login {
    border: 1px solid transparent;
    border-bottom: 2px solid #C7C8CF;
    color: var(--dfv-login-brand);
    background-color: #fff;
    font-size: 14px;
    line-height: 1.42857143;
    padding: 10px 12px;
    border-radius: 4px 4px 0 0;
    height: auto;
}

.typo3-login-container .card-login .input-login::placeholder {
    color: var(--dfv-login-brand);
    opacity: 1;
}

.typo3-login .input-login:focus,
.typo3-login .input-login:focus-visible {
    outline: 0;
    box-shadow: none;
    border-bottom: 2px solid var(--typo3-login-highlight);
    background-color: #fff;
}

.typo3-login .btn-login {
    align-items: center;
    font-weight: 400;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 90, 114, 0.2);
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 1px;
    padding: 12px 24px;
    font-size: 18px;
    line-height: 1.5rem;
    white-space: normal;
}

.typo3-login .btn-login:hover {
    text-decoration: none;
    box-shadow: 0 6px 12px rgba(0, 90, 114, 0.3);
}

.typo3-login .btn-login:focus-visible {
    outline: 2px solid var(--dfv-login-brand);
    outline-offset: 2px;
}

.typo3-login .card-login .card-heading {
    border-radius: 12px 12px 0 0;
}

.typo3-login .card-login .card-footer {
    background: linear-gradient(135deg, var(--dfv-login-card-bg) 0%, var(--dfv-login-card-bg-shade) 100%);
    color: #222;
    padding: 1.5em 2.5em;
    border-top: 1px solid var(--dfv-login-hairline);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.typo3-login .card-login a {
    font-weight: 400;
}

.typo3-login .card-body {
    color: #222;
}

.typo3-login .card-body a {
    color: #222;
    text-decoration: none;
    font-weight: 400;
}

.typo3-login a:hover {
    text-decoration: underline;
    color: var(--dfv-login-brand);
}

@media (prefers-color-scheme: dark) {
    .typo3-login-copyright-wrap,
    .typo3-login-copyright-wrap a,
    .typo3-login-copyright-wrap button,
    .typo3-login-copyright-wrap span,
    .typo3-login-copyright-link {
        color: #222;
    }

    .typo3-login-copyright-wrap a:hover,
    .typo3-login-copyright-wrap button:hover {
        color: var(--dfv-login-brand);
    }
}

[data-color-scheme="dark"] .typo3-login-copyright-wrap,
[data-color-scheme="dark"] .typo3-login-copyright-wrap a,
[data-color-scheme="dark"] .typo3-login-copyright-wrap button,
[data-color-scheme="dark"] .typo3-login-copyright-wrap span,
[data-color-scheme="dark"] .typo3-login-copyright-link,
[data-bs-theme="dark"] .typo3-login-copyright-wrap,
[data-bs-theme="dark"] .typo3-login-copyright-wrap a,
[data-bs-theme="dark"] .typo3-login-copyright-wrap button,
[data-bs-theme="dark"] .typo3-login-copyright-wrap span,
[data-bs-theme="dark"] .typo3-login-copyright-link {
    color: #222;
}

[data-color-scheme="dark"] .typo3-login-copyright-wrap a:hover,
[data-color-scheme="dark"] .typo3-login-copyright-wrap button:hover,
[data-bs-theme="dark"] .typo3-login-copyright-wrap a:hover,
[data-bs-theme="dark"] .typo3-login-copyright-wrap button:hover {
    color: var(--dfv-login-brand);
}

@media (prefers-reduced-motion: no-preference) {
    .typo3-login .input-login {
        transition: all 0.3s ease;
    }

    .typo3-login .input-login:focus {
        transform: scale(1.01);
    }

    .typo3-login .btn-login {
        transition: all 0.35s ease;
    }

    .typo3-login .btn-login:hover {
        transform: translateY(-2px);
    }

    .typo3-login .card-body a {
        transition: all 0.2s ease;
    }
}
