:root {
    --sdio-login-ink: #43408e;
    --sdio-login-muted: #687084;
    --sdio-login-line: rgba(67, 64, 142, .28);
    --sdio-login-danger: #9f1f17;
    --sdio-login-danger-bg: #fff1ef;
    --sdio-login-focus: rgba(67, 64, 142, .18);
}

* {
    box-sizing: border-box;
}

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

.sdio-public-login {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background: #eef2f8;
    color: var(--sdio-login-ink);
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
}

.sdio-public-login__stage {
    display: grid;
    place-items: start center;
    min-height: 100vh;
    background: url("/images/SDIO_ozadje2.svg") center bottom / cover no-repeat;
    padding: 20px;
}

.sdio-public-login__card {
    width: min(100%, 800px);
    border: 1px solid var(--sdio-login-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .95);
    color: var(--sdio-login-ink);
    padding: 20px 20px 0;
    box-shadow: 0 20px 50px rgba(31, 42, 68, .14);
}

.sdio-public-login__card--narrow {
    width: min(100%, 520px);
    padding-bottom: 20px;
}

.sdio-public-login__logo {
    display: block;
    width: min(250px, 70vw);
    height: auto;
    margin: 0 0 20px;
}

.sdio-public-login__form {
    display: grid;
    gap: 12px;
}

.sdio-floating-field {
    position: relative;
    display: block;
}

.sdio-floating-field input {
    display: block;
    width: 100%;
    min-height: 58px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
    color: #172033;
    padding: 22px 12px 8px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    outline: none;
}

.sdio-floating-field span {
    position: absolute;
    left: 12px;
    top: 8px;
    color: #5f6675;
    font-size: 12px;
    font-weight: 700;
    pointer-events: none;
}

.sdio-floating-field input:focus {
    border-color: var(--sdio-login-ink);
    box-shadow: 0 0 0 4px var(--sdio-login-focus);
}

.sdio-public-login__remember {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    width: fit-content;
    color: var(--sdio-login-ink);
    font-weight: 700;
}

.sdio-public-login__remember input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.sdio-public-login__robot {
    display: grid;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    border: 1px solid #d9e0ea;
    border-radius: 8px;
    background: #f8fafc;
    padding: 10px 12px;
}

.sdio-public-login__robot span {
    color: var(--sdio-login-ink);
    font-weight: 800;
}

.sdio-public-login__robot small {
    max-width: 540px;
    color: var(--sdio-login-muted);
    font-size: 12px;
    line-height: 1.35;
}

.sdio-public-login__submit {
    justify-self: end;
    min-height: 48px;
    border: 1px solid #0d6efd;
    border-radius: 6px;
    background: #0d6efd;
    color: #fff;
    padding: 10px 22px;
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.sdio-public-login__submit:hover,
.sdio-public-login__submit:focus-visible {
    background: #0b5ed7;
    border-color: #0a58ca;
    outline: none;
}

.sdio-public-login__copy {
    margin-top: 18px;
    color: var(--sdio-login-ink);
    line-height: 1.45;
}

.sdio-public-login__copy p {
    margin: 0 0 8px;
}

.sdio-public-login__copy ul {
    margin: 0 0 18px 22px;
    padding: 0;
}

.sdio-public-login__partners {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.sdio-public-login__partners img {
    display: block;
    max-width: min(100%, 560px);
    height: auto;
}

.sdio-public-login__alert {
    margin: 0 0 14px;
    border: 1px solid #f1aaa1;
    border-radius: 8px;
    background: var(--sdio-login-danger-bg);
    color: var(--sdio-login-danger);
    padding: 11px 12px;
    font-weight: 800;
    line-height: 1.4;
}

.sdio-public-login__alert--neutral {
    border-color: rgba(67, 64, 142, .24);
    background: #f5f6fb;
    color: var(--sdio-login-ink);
}

.sdio-public-error {
    position: relative;
    overflow: hidden;
}

.sdio-public-error::before {
    content: "";
    position: absolute;
    inset: 0 0 auto auto;
    width: 150px;
    height: 150px;
    border-radius: 0 0 0 150px;
    background: rgba(111, 185, 230, .18);
    pointer-events: none;
}

.sdio-public-error__status {
    width: fit-content;
    min-width: 82px;
    border: 1px solid rgba(67, 64, 142, .18);
    border-radius: 10px;
    background: #ededf7;
    color: var(--sdio-login-ink);
    padding: 8px 12px;
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    margin-bottom: 16px;
}

.sdio-public-error__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.sdio-public-error__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.sdio-public-login__heading {
    display: grid;
    gap: 4px;
    margin-bottom: 16px;
}

.sdio-public-login__heading p,
.sdio-public-login__heading h1,
.sdio-public-login__heading span {
    margin: 0;
}

.sdio-public-login__heading p {
    color: var(--sdio-login-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.sdio-public-login__heading h1 {
    color: var(--sdio-login-ink);
    font-size: 24px;
    line-height: 1.2;
}

.sdio-public-login__heading span {
    color: var(--sdio-login-muted);
    line-height: 1.4;
}

.inline-form {
    display: inline;
    margin: 0;
}

.button.compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    text-decoration: none;
    font-size: 12px;
}

@media (max-width: 640px) {
    .sdio-public-login__stage {
        place-items: start stretch;
        padding: 12px;
    }

    .sdio-public-login__card {
        padding: 16px 16px 0;
    }

    .sdio-public-login__card--narrow {
        padding-bottom: 16px;
    }

    .sdio-public-login__submit {
        justify-self: stretch;
        width: 100%;
    }
}
