@font-face {
    font-family: "Work Sans";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
src: url("/assets/fonts/work-sans-800-latin.woff2?v=5.2.70") format("woff2");
}

/*
 * Base
 */
* {
    margin: 0;
    padding: 0;
    outline: 0;
    border: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.88rem;
    font-weight: 400;
    background: #ffffff;
    color: #000000;
    overflow-x: hidden;
}


/*
 * Layout
 */
.main-container {
    background: #ffffff;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1em;
    overflow: auto;
    font-size: clamp(8px, min(3.15vw, 1.75vh), 14px);
}


/*
 * Brand
 */
.title {
    display: flex;
    font-family: "Work Sans", "Arial Black", Arial, Helvetica, sans-serif;
    font-weight: 800;
    justify-content: center;
    align-items: center;
    width: 30em;
    max-width: 100%;
    margin: 0 0 3em 0;
    color: rgb(0, 64, 255);
    flex: 0 0 auto;
}

.brand-scale {
    --brand-size: 5.2em;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.logo {
    margin: 0;
    width: calc(var(--brand-size) * 1.6);
}

.logo svg {
    width: 100%;
    display: block;
}

.logo circle,
.logo line {
    stroke: rgb(0, 64, 255);
    stroke-width: 8;
    fill: none;
}

.brand-copy {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.welcome {
    width: auto;
    font-size: var(--brand-size);
    font-weight: 800;
    line-height: 0.96;
    white-space: nowrap;
    overflow-wrap: normal;
}

.copyright {
    font-size: 0.5em;
    font-weight: 600;
    vertical-align: super;
    margin-left: 0.04em;
}

.welcome-sub {
    width: auto;
    margin-top: calc(var(--brand-size) * 0.055);
    font-size: calc(var(--brand-size) * 0.36);
    line-height: 1.05;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
}


/*
 * Login Form
 */
.login-container {
    background: #ffffff;
    padding: 1.5em;
    border-radius: 0.6em;
    box-shadow: 0 0.35em 1.4em rgba(0, 0, 0, 0.08);
    text-align: center;
    width: 30em;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex: 0 0 auto;
}

.login-container h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5em;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.25em;
}

input {
    width: 100%;
    min-width: 0;
    min-height: 2.65em;
    padding: 0.65em 0.7em;
    margin: 0.55em 0;
    border: 1px solid #cccccc;
    border-radius: 0.35em;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
    background: #ffffff;
    color: #000000;
}

input:hover,
input:focus {
    border: 1px solid #cc0000;
}

.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    width: 100%;
    padding-right: 3em;
}

.toggle-password {
    position: absolute;
    right: 0.35em;
    top: 50%;
    transform: translateY(-50%);
    width: 2.4em;
    height: 2.4em;
    margin: 0;
    padding: 0;
    background: transparent;
    color: #000000;
    border-radius: 0;
    cursor: pointer;
    font-size: 1.1em;
    line-height: 1;
}

.signin-button {
    background-color: rgb(0, 64, 255);
    color: #ffffff;
    margin-top: 0.65em;
    min-height: 2.65em;
    padding: 0.65em 0.7em;
    border: none;
    width: 100%;
    border-radius: 0.35em;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
}

.signin-button:focus,
.signin-button:focus-visible {
    background-color: rgb(0, 64, 255);
    box-shadow: 0 0 0 3px rgba(0, 64, 255, 0.25);
}

.remember-me:focus-within {
    color: rgb(0, 64, 255);
}

.remember-me input:focus {
    outline: none;
}

.remember-me input:focus-visible {
    outline: 2px solid rgb(0, 64, 255);
    outline-offset: 2px;
}

.signin-button:disabled {
    opacity: 0.5;
    cursor: wait;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.35em;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
    font-weight: 400;
    cursor: pointer;
    margin-top: 0.7em;
}

.remember-me input {
    width: 1.15em;
    height: 1.15em;
    min-width: 1.15em;
    min-height: 1.15em;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    flex: 0 0 1.15em;
    cursor: pointer;
    accent-color: rgb(0, 64, 255);
}

.remember-me input:hover,
.remember-me input:focus {
    border: 0;
}

.login-message {
    min-height: 1.2em;
    margin-top: 0.65em;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95em;
    font-weight: 400;
    color: #cc0000;
}

.powered-by {
    margin-top: 0.2em;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72em;
    font-weight: 400;
}

.powered-by a {
    color: rgb(0, 64, 255);
    font-size: 1.2em;
}

.powered-by a:hover {
    text-decoration: underline;
}

.legal-links {
    margin-top: 1em;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72em;
    font-weight: 400;
    color: #999999;
}

.legal-links a {
    color: #999999;
}

.legal-links a:hover {
    text-decoration: underline;
    color: #666666;
}


/*
 * Disclaimer
 */
.disclaimer-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 1rem);
}

.disclaimer-modal.active {
    display: flex;
}

.disclaimer-box {
    background: #ffffff;
    padding: clamp(1rem, 4vw, 1.5rem) clamp(1rem, 4vw, 1.75rem);
    width: min(100%, 520px);
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    font-family: "Times New Roman", Georgia, serif;
    font-size: 13px;
    line-height: 1.65;
    color: #333333;
    text-align: left;
}

.disclaimer-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #222222;
}

.disclaimer-box p {
    margin: 0 0 0.6rem 0;
    font-weight: 400;
}

.disclaimer-box button {
    margin-top: 1rem;
    padding: 8px 12px;
    font-size: 12px;
    background-color: rgb(0, 64, 255);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}


/*
 * Login animation
 */
/* Decorative canvases stay below the original brand/form and disclaimer. */
.main-container {
    isolation: isolate;
}

.main-container > .title,
.main-container > .login-container {
    position: relative;
    z-index: 2;
}

.login-effect-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.login-effect-brush {
    z-index: 0;
    mix-blend-mode: difference;
}

.login-effect-rain {
    z-index: 1;
}

html.oe-login-effect body,
html.oe-login-effect .main-container {
    background-color: var(--oe-effect-bg);
    color: var(--oe-effect-text);
}

html.oe-login-effect .login-container {
    background-color: var(--oe-effect-panel);
    color: var(--oe-effect-text);
}

html.oe-login-effect .title {
    color: var(--oe-effect-logo);
}

html.oe-login-effect .logo circle,
html.oe-login-effect .logo line {
    stroke: var(--oe-effect-logo);
}

html.oe-login-effect .login-container input:not([type="checkbox"]) {
    background-color: var(--oe-effect-input);
    border-color: var(--oe-effect-border);
    color: var(--oe-effect-input-text);
    caret-color: var(--oe-effect-input-text);
}

html.oe-login-effect .login-container input::placeholder {
    color: var(--oe-effect-placeholder);
    opacity: 1;
}

html.oe-login-effect .toggle-password {
    color: var(--oe-effect-input-text);
}

html.oe-login-effect .signin-button {
    background-color: var(--oe-effect-button);
}

html.oe-login-effect .remember-me input {
    accent-color: var(--oe-effect-button);
}

html.oe-login-effect .powered-by a {
    color: var(--oe-effect-link);
}

html.oe-login-effect .login-message {
    color: var(--oe-effect-error);
}

html.oe-login-effect .legal-links,
html.oe-login-effect .legal-links a {
    color: var(--oe-effect-muted);
}

/*
 * Landscape
 */
@media (orientation: landscape) and (max-height: 399px) {
    .main-container {
        flex-direction: row;
        gap: 3em;
        font-size: clamp(8px, min(1.62vw, 3.2vh), 14px);
    }

    .title {
        width: 25em;
        margin: 0;
    }

    .brand-scale {
        --brand-size: 4.35em;
    }
}

@media (pointer: coarse) {
    input,
    .signin-button,
    .toggle-password,
    .remember-me input,
    .disclaimer-box button {
        touch-action: manipulation;
    }
}
