@font-face {
    font-family: 'Sofia Pro';
    src: url('../fonts/sofiapro-light-webfont.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Sofia Pro';
    src: url('../fonts/sofiapro-regular-webfont.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Sofia Pro';
    src: url('../fonts/sofiapro-medium-webfont.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Sofia Pro';
    src: url('../fonts/sofiapro-bold-webfont.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    color-scheme: light;
    --page-background: #1457a5;
    --page-top-bar: #313338;
    --button-background: #53b4e2;
    --button-hover: #6ac4ed;
    --button-text: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --footer-border: rgba(83, 180, 226, 0.85);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Sofia Pro', 'Open Sans', 'Segoe UI', sans-serif;
    background: var(--page-background);
    color: var(--text-primary);
}

body {
    display: flex;
    flex-direction: column;
}

.top-bar {
    height: 9px;
    background: var(--page-top-bar);
}

.page {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 9px);
}

.content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 84px 24px 48px;
}

.panel {
    width: min(100%, 760px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 76px;
}

.brand-logo {
    display: block;
    width: min(100%, 274px);
    height: auto;
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

form {
    width: 100%;
    max-width: 642px;
}

button {
    width: 100%;
    border: 0;
    border-radius: 5px;
    padding: 10px 20px;
    min-height: 3em;
    font-family: 'Sofia Pro', 'Open Sans', 'Segoe UI', sans-serif;
    font-size: 0.9em;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--button-background);
    color: var(--button-text);
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 120ms ease-in-out, transform 120ms ease-in-out;
}

button:hover,
button:focus-visible {
    background: var(--button-hover);
}

button:focus-visible {
    outline: 3px solid rgba(35, 70, 92, 0.28);
    outline-offset: 3px;
}

button:active {
    transform: translateY(1px);
}

.links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 74px;
}

.links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 100;
    text-decoration: none;
}

.links a:hover,
.links a:focus-visible {
    text-decoration: underline;
}

.footer {
    border-top: 2px solid var(--footer-border);
    display: flex;
    justify-content: center;
    padding: 18px 24px 16px;
}

.powered-by {
    width: min(100%, 188px);
    height: auto;
}

@media (max-width: 720px) {
    .content {
        padding-top: 56px;
    }

    .brand {
        margin-bottom: 56px;
    }

    form {
        max-width: 100%;
    }

    .links {
        margin-top: 56px;
    }
}
