@font-face {
    font-family: "Inter";
    src: url(https://www.schott.com/static/assets/fonts/Inter-Regular.woff2?v=2);
    font-weight: 400;
}

:root {
    --schott-b2: #062e62;
    --schott-b4: #0050ff;
    --schott-blue: #005aab;
    --schott-g3: #a6a6a6;
    --schott-g6: #f3f3f3;
    --schott-error: #bb0000;
    --font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
        "Helvetica Neue", sans-serif;
}

@layer specific, base;

@layer base {
    div.ids-main__content
        div:not(
            form div,
            .fn-message-strip,
            .fn-message-strip div,
            .ids-button-group,
            .fd-illustrated-message
        ) {
        display: contents !important;
    }
    * {
        font-family: var(--font-family) !important;
    }
}

@layer specific {
    body {
        height: 100%;
        justify-content: initial !important;
        background-image: none !important;
        background-color: white !important;
    }

    p.ids-p {
        color: var(--schott-b2) !important;
    }

    div#body {
        display: grid;
        grid-template-columns: minmax(auto, 60ch) 1fr;
        height: 100%;
    }
    div#body::after {
        content: "";
        flex-grow: 1;
        display: block;
        background-image: url(https://login.schott.biz/ui/public/cached/tenant/v/1/backgroundImage);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    main.ids-main {
        position: relative;
        margin: 0 !important;
        padding: 2rem;
        background-color: white;
    }

    div.ids-main__content {
        align-self: center !important;
        padding-block: 4rem;
        width: 100% !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        min-height: 0 !important;
        overflow: auto !important;
    }

    main.ids-main img {
        position: absolute;
        top: 2rem;
        left: 2rem;
        height: 32px !important;
    }

    h1#ids-heading-1,
    h1.ids-heading-1 {
        margin-bottom: 1rem !important;
        font-family: var(--font-family);
        font-size: 2rem !important;
        font-weight: 400 !important;
        color: var(--schott-b2);
    }
    h2.ids-heading-fieldset {
        margin: 0 !important;
    }

    section.ids-section div.fn-message-strip {
        display: block !important;
    }

    div#globalMessages {
        margin: 1rem 0 1rem 0 !important;
    }
    div.fn-message-strip {
        background-color: var(--schott-g6) !important;
        border-radius: 0 !important;
    }
    div.fn-message-strip .fn-message-strip__text {
        font-family: var(--font-family);
    }
    div.fn-message-strip--error .fn-message-strip__icon::before {
        color: var(--schott-error) !important;
    }
    div.fn-message-strip--error .fn-message-strip__text {
        color: var(--schott-error) !important;
    }
    div.fn-message-strip--information .fn-message-strip__icon::before {
        color: var(--schott-blue) !important;
    }
    div.fn-message-strip--information .fn-message-strip__text {
        color: var(--schott-blue) !important;
    }

    .fd-illustrated-message {
        display: none !important;
    }

    div.iam-selected-section-login-standard {
        margin-top: 0 !important;
    }

    .fn-input {
        height: auto !important;
    }

    label {
        font-family: var(--font-family) !important;
        color: var(--schott-b2) !important;
        transition: color 150ms ease-in;
    }
    div.ids-label-container:has(+ div.ids-control-container:focus-within)
        label {
        color: var(--schott-b4) !important;
    }

    input:not(checkbox) {
        padding: 0.5rem 1rem !important;
        height: auto !important;
        background-color: white !important;
        font-family: var(--font-family) !important;
        color: var(--schott-b2) !important;
        border-radius: 0 !important;
        border: 2px solid var(--schott-g3) !important;
    }
    input:not(checkbox):focus,
    input:not(checkbox):active {
        border-color: var(--schott-b4) !important;
        box-shadow: none !important;
    }
    input:not(checkbox):hover {
        box-shadow: none !important;
    }
    .fn-input__border {
        display: none;
    }
    .ids-input-group--reveal .ids-input-reveal {
        top: 50% !important;
        translate: 0 -50%;
        background-color: var(--schott-b2);
    }

    label.fn-checkbox {
        padding: 0 !important;
    }
    label.fn-checkbox:active,
    label.fn-checkbox:focus-within,
    label.fn-checkbox:hover {
        box-shadow: none !important;
    }
    input[type="checkbox"] + span {
        background-color: white !important;
        border-radius: 0 !important;
        border-color: var(--schott-g3) !important;
        transition: none !important;
    }
    input[type="checkbox"]:checked + span {
        background-color: var(--schott-b4) !important;
        border-color: var(--schott-b4) !important;
    }
    span.ids-label {
        font-family: var(--font-family);
        color: var(--schott-b2);
    }

    li.ids-login__forgotpassword a {
        font-family: var(--font-family) !important;
        color: var(--schott-b4) !important;
        font-weight: 400 !important;
    }

    button.ids-button {
        align-self: flex-end;
        margin-top: 1rem;
        padding: 1rem 1.5rem !important;
        height: auto !important;
        border-radius: 0 !important;
        border: 2px solid var(--schott-b4) !important;
        box-shadow: none !important;
    }
    button.ids-button.ids-button--primary {
        background-color: var(--schott-b4) !important;
        color: white !important;
    }
    button.ids-button div {
        font-family: var(--font-family) !important;
        color: var(--schott-b4) !important;
        font-weight: 400 !important;
    }
    button.ids-button.ids-button--primary div {
        color: white !important;
    }

    footer.ids-footer {
        display: none;
    }

    [data-page="ids-registration/new"] p.fd-margin-bottom--none {
        display: none;
    }
    .ids-input-area > div:has(#firstName-group, #lastName-group, #mail-group) {
        display: none;
    }

    [data-page="ids-forgot_password/create"]
        div.iam-container__footer
        div.iam-login-columned__begin,
    [data-page="ids-forgot_password/confirm"]
        div.iam-container__footer
        div.iam-login-columned__begin {
        display: none !important;
    }
}
