/* Mirrors APP assets/css/errors.css so mechmsg.uk matches the APP 404 page. */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("Inter-roman.var.woff2?v=3.19") format("woff2");
}

html {
    min-height: 100%;
}

body.gi-error-page {
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 42px 20px;
    color: #17263e;
    font-family: "Inter", sans-serif;
    background-color: #f5f9ff;
    background-image: url("background.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.gi-error-page *,
.gi-error-page *::before,
.gi-error-page *::after {
    box-sizing: border-box;
}

.gi-error-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 594px;
    margin: auto;
}

.gi-error-card {
    padding: 38px 42px 36px;
    overflow: hidden;
    text-align: center;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(215, 224, 236, 0.9);
    border-radius: 20px;
    box-shadow: 0 28px 70px rgba(36, 82, 145, 0.14);
}

.gi-error-illustration {
    width: 118px;
    height: 118px;
    margin: 0 auto 12px;
    color: #3477ef;
}

.gi-error-illustration svg {
    display: block;
    width: 100%;
    height: 100%;
}

.gi-error-code {
    margin: 0 0 16px;
    color: #1769e8;
    font-size: clamp(76px, 15vw, 94px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.055em;
    background: linear-gradient(180deg, #357af3 0%, #1769e8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gi-error-title {
    margin: 0 0 14px;
    color: #17263e;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.gi-error-description {
    max-width: 460px;
    margin: 0 auto;
    color: #65758e;
    font-size: 16px;
    line-height: 1.55;
}

.gi-error-description + .gi-error-description {
    margin-top: 12px;
}

@media (max-width: 640px) {
    body.gi-error-page {
        align-items: flex-start;
        padding: 24px 14px;
    }

    .gi-error-card {
        padding: 30px 24px 26px;
        border-radius: 17px;
    }

    .gi-error-illustration {
        width: 100px;
        height: 100px;
        margin-bottom: 10px;
    }

    .gi-error-code {
        margin-bottom: 14px;
        font-size: 76px;
    }

    .gi-error-title {
        font-size: 26px;
    }

    .gi-error-description {
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .gi-error-card {
        padding-right: 18px;
        padding-left: 18px;
    }
}
