﻿:root {
    --public-blue: #46627f;
    --public-light-blue: #e3f0f8;
    --public-orange: #f28b1d;
    --public-input: #b7c2cf;
}

html {
    min-height: 100%;
    background: #fff;
}

body.public-page,
body.landing-page {
    min-width: 0;
    margin: 0;
    color: var(--public-blue);
    font-family: Arial, sans-serif;
    font-size: 12pt;
    overflow-wrap: anywhere;
}

body.public-page {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
}

body.public-page h1,
body.public-page h2,
body.public-page h3,
body.public-page h4,
body.public-page h5,
body.public-page h6,
body.landing-page h1,
body.landing-page h2,
body.landing-page h3,
body.landing-page h4,
body.landing-page h5,
body.landing-page h6 {
    font-family: Arial, sans-serif;
    font-size: 15.5pt;
}

.public-page-shell {
    --public-brand-width: clamp(7rem, 9vw, 10rem);
    --public-header-curve-size: clamp(18rem, 22vw, 25rem);
    --public-navbar-padding-x: 2.5rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 100vh;
}

.public-header {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    background: #fff;
}

.public-header-curve {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: var(--public-header-curve-size);
    max-width: none;
    pointer-events: none;
}

.public-navbar {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(9rem, 1fr) auto minmax(9rem, 1fr);
    align-items: center;
    gap: 1rem 2rem;
    width: 100%;
    min-width: 0;
    min-height: clamp(7rem, 8vw, 8.5rem);
    margin: 0 auto;
    padding: 1rem var(--public-navbar-padding-x);
}

.public-brand {
    z-index: 1;
    display: block;
    width: var(--public-brand-width);
    min-width: 0;
    margin-left: calc((var(--public-header-curve-size) * .325) - (var(--public-brand-width) * .5) - var(--public-navbar-padding-x));
    justify-self: start;
}

.public-brand-logo {
    display: block;
    width: 100%;
    height: auto;
}

.public-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.75rem;
    min-width: 0;
    text-align: center;
}

.public-navigation a,
.public-authentication a,
.landing-links a,
.login-links a {
    color: var(--public-blue);
}

.public-authentication {
    min-width: 0;
    justify-self: end;
}

.public-content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1rem 0;
    background: #fff;
}

.public-content-container {
    min-width: 0;
}

.public-content .card {
    min-width: 0;
    color: #26384a;
}

.public-footer {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    min-width: 0;
    padding: .5rem 2rem;
    background: #fff;
}

.public-footer-curve {
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 0;
    width: clamp(5rem, 10vw, 11rem);
    max-width: 100%;
    height: auto;
    pointer-events: none;
}

.public-footer-logos {
    position: relative;
    z-index: 1;
    width: min(100%, 64rem);
    min-width: 0;
    margin: 0 auto;
}

.public-footer-logos img {
    display: block;
    width: 100%;
    height: auto;
}

.public-login-page {
    width: min(100%, 34rem);
    min-width: 0;
    margin: 2rem auto;
}

.public-login-form {
    width: 100%;
    min-width: 0;
}

.public-login-form .login-form-title {
    margin-bottom: 1.25rem;
    color: var(--public-blue);
    font-size: 15.5pt;
}

.public-login-form .form-control {
    width: 100%;
    max-width: 100%;
    height: 2.75rem;
    border: 0;
    border-radius: 0;
    background: var(--public-input);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 12pt;
}

.public-login-form .form-control::placeholder {
    color: #fff;
    opacity: 1;
}

.public-login-form .form-check {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.public-login-form .form-check-input {
    position: static;
    flex: 0 0 auto;
    margin: 0;
}

.public-login-form .form-check-label {
    min-width: 0;
    margin: 0;
}

.public-login-form .btn-login {
    max-width: 100%;
    border-radius: 0;
    background: var(--public-blue);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 12pt;
    white-space: normal;
}

.public-register-submit {
    width: 100%;
    max-width: 16rem;
}

.public-register-submit .text {
    flex: 1 1 auto;
}

.login-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    min-width: 0;
    margin-top: 1.75rem;
}

.landing-login .login-form-title {
    margin-bottom: .75rem;
}

.landing-login .form-group {
    margin-bottom: .75rem;
}

.landing-login .login-links {
    margin-top: 1rem;
}

.landing-page {
    min-height: 100vh;
    overflow-x: hidden;
    background: #fff;
}

.landing-shell {
    --landing-header-padding-left: clamp(1.5rem, 4vw, 5rem);
    --landing-kaoa-logo-width: clamp(8rem, 12vw, 15rem);
    --landing-left-curve-size: clamp(24rem, 38vw, 44rem);
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 100vh;
}

.landing-left-curve {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: var(--landing-left-curve-size);
    max-width: none;
    pointer-events: none;
}

.landing-header {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 1rem 2rem;
    min-width: 0;
    min-height: clamp(7rem, 9vw, 8.5rem);
    padding: clamp(1rem, 1.5vw, 1.5rem) clamp(1rem, 2vw, 3rem) .5rem var(--landing-header-padding-left);
}

.landing-kaoa-logo {
    position: absolute;
    z-index: 1;
    top: calc(var(--landing-left-curve-size) * .17);
    left: calc(var(--landing-left-curve-size) * .29);
    width: var(--landing-kaoa-logo-width);
    max-width: 100%;
    height: auto;
    transform: translate(-50%, -50%);
}

.landing-lgh-logo {
    z-index: 1;
    grid-column: 2;
    grid-row: 1;
    width: clamp(9rem, 12vw, 14rem);
    max-width: 100%;
    height: auto;
    justify-self: end;
}

.landing-main {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 1 0 auto;
    grid-template-areas:
        'illustration intro'
        'illustration login';
    grid-template-columns: minmax(18rem, 1.08fr) minmax(28rem, .92fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    gap: .75rem clamp(2rem, 5vw, 7rem);
    width: 100%;
    min-width: 0;
    padding: 0 clamp(1.5rem, 5vw, 6rem) .5rem;
}

.landing-intro {
    grid-area: intro;
    width: min(100%, 52rem);
    min-width: 0;
    justify-self: end;
    text-align: right;
}

.landing-kicker {
    margin: 0 0 .25rem;
    color: #c1cede;
    font-size: clamp(11pt, 1vw, 13pt);
}

.landing-title {
    margin: 0 0 .75rem;
    color: var(--public-orange);
    font-family: Arial, sans-serif;
    font-size: clamp(24pt, 3vw, 40pt) !important;
    font-weight: 700;
    letter-spacing: .12em;
    overflow-wrap: anywhere;
}

.landing-audience {
    margin-bottom: .5rem;
    font-size: clamp(11pt, 1vw, 13pt);
    font-weight: 700;
}

.landing-description {
    margin-bottom: 0;
    font-size: clamp(11pt, 1vw, 13pt);
}

.landing-visual {
    grid-area: illustration;
    width: min(100%, 40rem);
    min-width: 0;
    margin: 0;
    justify-self: center;
    text-align: center;
}

.landing-illustration {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
}

.landing-illustration-caption {
    margin-top: calc(-1 * 3rem);
    margin-left: 3rem;
    font-size: clamp(11pt, 1vw, 13pt);
}

.landing-login {
    grid-area: login;
    width: min(100%, 27rem);
    min-width: 0;
    justify-self: center;
}

.landing-meta {
    min-width: 0;
    margin-top: .75rem;
    text-align: center;
}

.landing-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .25rem .75rem;
    min-width: 0;
    font-size: 11pt;
    margin-top: .5rem;
}

.landing-footer {
    position: relative;
    z-index: 1;
    display: block;
    flex-shrink: 0;
    overflow: visible;
    width: 100%;
    min-width: 0;
    padding: .5rem 2rem;
    background: #fff;
}

.landing-footer > .public-footer-curve {
    width: auto;
    height: 100%;
}

.landing-funding-logos {
    position: relative;
    z-index: 1;
    display: block;
    width: min(64rem, calc(100% - 13rem));
    min-width: 0;
    height: auto;
    margin: 0 auto;
}

.landing-privacy-seal {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 1rem;
    display: block;
    max-width: 100%;
    transform: translateY(-50%);
}

.landing-privacy-seal img {
    display: block;
    width: 5.5rem;
    max-width: 100%;
    height: auto;
}

@media (min-width: 1200px) {
    .landing-intro,
    .landing-login {
        margin-right: 5.5rem;
    }

    .landing-login {
        justify-self: end;
    }
}

@media (min-width: 1200px) and (max-height: 949.98px) {
    .landing-header {
        min-height: 6.5rem;
        padding-top: .75rem;
    }

    .landing-main {
        gap: .5rem clamp(2rem, 5vw, 7rem);
    }

    .landing-visual {
        width: min(100%, 36rem);
    }

    .landing-footer {
        padding-top: .25rem;
        padding-bottom: .25rem;
    }

    .landing-funding-logos {
        max-width: clamp(45rem, 50vw, 60rem);
    }
}

@media (max-width: 1199.98px) {
    .landing-main {
        grid-template-areas:
            'intro'
            'illustration'
            'login';
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        width: min(100%, 52rem);
        margin: 0 auto;
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }

    .landing-intro {
        justify-self: center;
        text-align: center;
    }

    .landing-visual {
        width: min(100%, 42rem);
    }

    .landing-login {
        width: min(100%, 28rem);
    }

    .landing-footer {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

@media (max-width: 991.98px) {
    .public-page-shell {
        --public-brand-width: 6.5rem;
        --public-header-curve-size: clamp(14rem, 28vw, 18rem);
        --public-navbar-padding-x: 1.5rem;
    }

    .public-navbar {
        grid-template-columns: minmax(8rem, 1fr) auto;
        min-height: 0;
        padding: 1rem var(--public-navbar-padding-x);
    }

    .public-brand {
        grid-column: 1;
        grid-row: 1;
        width: var(--public-brand-width);
    }

    .public-authentication {
        grid-column: 2;
        grid-row: 1;
    }

    .public-navigation {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
    }
}

@media (max-width: 767.98px) {
    .public-footer,
    .landing-footer {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .landing-header {
        --landing-header-padding-left: 1rem;
        padding-right: 1rem;
        padding-left: var(--landing-header-padding-left);
    }

    .landing-main {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .landing-funding-logos {
        width: min(100%, 64rem);
    }

    .landing-privacy-seal {
        position: relative;
        top: auto;
        right: auto;
        width: max-content;
        margin: 1rem auto 0;
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .public-page-shell {
        --public-header-curve-size: clamp(13rem, 60vw, 16rem);
    }

    .public-navigation {
        flex-direction: column;
        align-items: center;
        gap: .5rem;
    }

    .landing-shell {
        --landing-kaoa-logo-width: 7.5rem;
        --landing-left-curve-size: clamp(18rem, 92vw, 24rem);
    }

    .landing-header {
        min-height: 7rem;
    }

    .landing-lgh-logo {
        width: 7rem;
    }

    .landing-title {
        font-size: 24pt !important;
        letter-spacing: .08em;
    }

    .landing-kicker,
    .landing-audience,
    .landing-description {
        font-size: 11pt;
    }
}

@media (max-width: 359.98px) {
    .public-navbar {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    .public-brand,
    .public-navigation,
    .public-authentication {
        grid-column: 1;
    }

    .public-brand {
        grid-row: 1;
        justify-self: start;
    }

    .public-navigation {
        grid-row: 2;
    }

    .public-authentication {
        grid-row: 3;
        justify-self: center;
    }

    .landing-header {
        grid-template-columns: minmax(0, 1fr);
    }

    .landing-lgh-logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
    }
}
