/*
 * Oeffentlicher Login-, Passwort- und Zugangsbereich
 * von Digitana Core.
 */

.core-public-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--core-font-family);
    background: var(--core-public-bg);
    color: var(--core-public-text);
    display: flex;
    justify-content: center;
    align-items: center;
}

.core-public-shell {
    width: 100%;
    max-width: 420px;
    background: var(--core-public-panel);
    padding: 40px;
    border-radius: var(--core-radius-card);
    text-align: center;
    box-shadow: var(--core-public-shadow);
    color: var(--core-public-text);
}

.core-public-page-title {
    margin-top: 0;
}

.core-public-nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    min-height: 56px;
    margin: 0 0 25px 0;
}

.core-public-divider {
    margin: 20px 0;
}

/* Login */

.core-login-logo {
    max-width: 160px;
    margin-bottom: 20px;
    filter: drop-shadow(
        0 10px 18px rgba(0, 0, 0, 0.28)
    );
}

.core-login-title {
    margin: 0;
    font-size: 28px;
    letter-spacing: 3px;
    text-shadow:
        0 2px 10px rgba(90, 140, 220, 0.08);
}

.core-login-form-wrap {
    margin-top: 35px;
    text-align: left;
}

.core-login-error {
    color: #ff7f8a;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background:
        linear-gradient(
            180deg,
            rgba(110, 20, 30, 0.22) 0%,
            rgba(80, 15, 24, 0.16) 100%
        );
    border:
        1px solid rgba(255, 110, 130, 0.18);
    box-shadow:
        0 10px 18px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.core-login-label {
    display: block;
    margin-bottom: 6px;
    color: #cdd9ea;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.core-login-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border:
        1px solid rgba(120, 150, 195, 0.14);
    background:
        linear-gradient(
            180deg,
            #16202d 0%,
            #121a26 100%
        );
    color: white;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.14);
    outline: none;
}

.core-login-input-email {
    margin-bottom: 18px;
}

.core-login-input-password {
    margin-bottom: 16px;
}

.core-login-remember {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin: 0 0 24px;
    padding: 12px 13px;
    border:
        1px solid rgba(110, 150, 205, 0.16);
    border-radius: 12px;
    background:
        linear-gradient(
            180deg,
            rgba(27, 48, 77, 0.54) 0%,
            rgba(18, 35, 59, 0.48) 100%
        );
    color: #e4edf9;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.core-login-remember:hover {
    border-color:
        rgba(125, 170, 230, 0.28);
    background:
        linear-gradient(
            180deg,
            rgba(34, 59, 94, 0.60) 0%,
            rgba(23, 43, 70, 0.54) 100%
        );
}

.core-login-remember input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #356ca8;
    cursor: pointer;
}

.core-login-remember input:focus-visible {
    outline:
        2px solid rgba(125, 175, 235, 0.72);
    outline-offset: 3px;
}

.core-login-remember-text {
    min-width: 0;
    line-height: 1.35;
}

.core-login-remember-text strong {
    display: block;
    color: #edf5ff;
    font-size: 13px;
    font-weight: 750;
}

.core-login-remember-text small {
    display: block;
    margin-top: 4px;
    color: #aebed5;
    font-size: 11px;
    line-height: 1.4;
}

.core-login-submit-row {
    text-align: center;
}

.core-login-submit {
    width: 180px;
    padding: 12px;
    background:
        linear-gradient(
            180deg,
            #2f5b98 0%,
            #21497f 100%
        );
    border:
        1px solid rgba(95, 135, 200, 0.30);
    border-radius: 12px;
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow:
        0 12px 20px rgba(20, 40, 75, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    transition: all 0.2s ease;
}

.core-login-submit:hover {
    transform: translateY(-1px);
    box-shadow:
        0 16px 24px rgba(20, 40, 75, 0.20),
        0 0 14px rgba(92, 138, 210, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* Passwort setzen */

.core-set-password-card {
    max-width: 460px;
    text-align: left;
}

.core-set-password-title {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
    font-size: 28px;
}

.core-set-password-intro {
    margin-top: 0;
    margin-bottom: 18px;
    color: #d7d7d7;
    text-align: center;
}

.core-set-password-error,
.core-set-password-info {
    color: #ffffff;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: left;
}

.core-set-password-error {
    background: #4a1f1f;
}

.core-set-password-info {
    background: #1c2e46;
}

.core-set-password-label {
    display: block;
    margin: 14px 0 6px 0;
    font-size: 15px;
    color: #d7d7d7;
}

.core-set-password-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #3a3a3a;
    background: #111111;
    color: white;
    outline: none;
    font-size: 15px;
}

.core-set-password-input[readonly] {
    opacity: 0.9;
}

.core-set-password-btn {
    width: 100%;
    margin-top: 20px;
    padding: 12px 14px;
    border: 0;
    border-radius: 8px;
    background: #2f7de1;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.core-set-password-btn:hover {
    background: #2569c0;
}

.core-set-password-hint {
    margin-top: 16px;
    font-size: 13px;
    color: #bdbdbd;
    text-align: center;
}

.core-set-password-login-link {
    margin-top: 18px;
    text-align: center;
}

.core-set-password-login-link a {
    color: #9ecbff;
    text-decoration: none;
}

.core-set-password-login-link a:hover {
    text-decoration: underline;
}

/* 2FA- und Zugriffsfehlerbereich */

.core-access-root {
    color-scheme: dark;
}

.core-twofa-body,
.core-twofa-body * {
    box-sizing: border-box;
}

.core-access-body {
    margin: 0;
    min-height: 100vh;
    background: #071f4a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.core-twofa-body {
    font-family: Arial, sans-serif;
    color: #f3f6ff;
}

.core-error-body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #ffffff;
}

.core-access-card {
    background:
        linear-gradient(
            180deg,
            #050505 0%,
            #0a0f16 100%
        );
    border:
        1px solid rgba(120, 150, 195, 0.16);
    border-radius: 20px;
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.core-twofa-card {
    width: 100%;
    padding: 30px 28px;
}

.core-twofa-card-setup {
    max-width: 760px;
}

.core-twofa-card-verify {
    max-width: 520px;
}

.core-error-card {
    width: min(520px, 92vw);
    padding: 34px 34px 28px;
    text-align: center;
}

.core-access-title {
    margin: 0 0 10px 0;
    color: #ffffff;
    text-align: center;
    text-shadow:
        0 2px 10px rgba(90, 140, 220, 0.08);
}

.core-twofa-title {
    font-size: 32px;
    letter-spacing: 0.04em;
}

.core-error-title {
    font-size: 28px;
    letter-spacing: 0.5px;
}

.core-twofa-subtext {
    margin: 0 0 24px 0;
    color: #b8c7e4;
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
}

.core-access-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    border:
        1px solid rgba(255, 110, 130, 0.18);
    background:
        linear-gradient(
            180deg,
            rgba(110, 20, 30, 0.22) 0%,
            rgba(80, 15, 24, 0.16) 100%
        );
    color: #ffe0e0;
    box-shadow:
        0 10px 18px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.core-access-label {
    display: block;
    margin-bottom: 8px;
    color: #dfe8fb;
    font-size: 15px;
}

.core-access-code-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border:
        1px solid rgba(120, 150, 195, 0.16);
    background:
        linear-gradient(
            180deg,
            #161f2b 0%,
            #121923 100%
        );
    color: #f3f6ff;
    font-size: 22px;
    letter-spacing: 0.18em;
    text-align: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.14);
    outline: none;
}

.core-access-code-input:focus {
    border-color:
        rgba(95, 129, 191, 0.42);
    box-shadow:
        0 0 0 2px rgba(95, 129, 191, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.14);
}

.core-access-primary {
    background:
        linear-gradient(
            180deg,
            #2f5b98 0%,
            #21497f 100%
        );
    color: #ffffff;
    border:
        1px solid rgba(95, 135, 200, 0.30);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    box-shadow:
        0 12px 20px rgba(20, 40, 75, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    transition: all 0.2s ease;
}

.core-access-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 16px 24px rgba(20, 40, 75, 0.20),
        0 0 14px rgba(92, 138, 210, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    filter: brightness(1.05);
}

.core-twofa-submit {
    width: 100%;
    margin-top: 18px;
    padding: 12px 16px;
    font-size: 15px;
}

.core-twofa-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.core-twofa-qr-panel {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f3f6fa 100%
        );
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 290px;
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.core-twofa-qr-panel img {
    display: block;
    max-width: 100%;
    height: auto;
}

.core-twofa-form-panel {
    display: flex;
    flex-direction: column;
}

.core-twofa-info {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    border:
        1px solid rgba(95, 135, 200, 0.18);
    background:
        linear-gradient(
            180deg,
            #0c1f39 0%,
            #0a1930 100%
        );
    color: #d7e4f7;
    font-size: 14px;
    line-height: 1.55;
    box-shadow:
        0 12px 20px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.core-twofa-hint {
    margin-top: 14px;
    color: #9db2d8;
    font-size: 14px;
    line-height: 1.45;
}

.core-twofa-hint-centered {
    text-align: center;
}

.core-error-line {
    height: 2px;
    background:
        linear-gradient(
            90deg,
            rgba(95, 135, 200, 0.08) 0%,
            rgba(95, 135, 200, 0.34) 50%,
            rgba(95, 135, 200, 0.08) 100%
        );
    margin: 0 0 22px 0;
    border-radius: 2px;
    box-shadow:
        0 0 10px rgba(92, 138, 210, 0.10);
}

.core-error-text {
    margin: 0 0 22px 0;
    opacity: 0.92;
    line-height: 1.45;
    color: #d7e4f7;
}

.core-error-back {
    display: inline-block;
    padding: 12px 18px;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.core-error-code {
    margin-top: 14px;
    font-size: 12px;
    opacity: 0.55;
    color: #9db2d8;
}

@media (max-width: 760px) {
    .core-twofa-layout {
        grid-template-columns: 1fr;
    }

    .core-twofa-qr-panel {
        min-height: auto;
    }
}
