@font-face {
    font-family: "Instrument Sans";
    src: url("../fonts/Instrument_Sans/InstrumentSans-variable.73e3eb26e68e.ttf") format("truetype");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: "Geist";
    src: url("../fonts/Geist/Geist-variable.3f599483f71a.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    color: #0e0e0e;
    background: #0e0e0e;
    font-family: "Instrument Sans", Arial, sans-serif;
    letter-spacing: -0.02em;
}

.landing {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    min-height: calc(100vh - 48px);
    width: 100%;
}

.landing-left {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 40px 64px;
    background: #fafafa;
}

.landing-left-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    max-width: 640px;
    padding: 18px 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.brand-logo img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.brand-word {
    font-family: "Geist", Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.hero-eyebrow,
.login-fields label {
    color: #711313;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-eyebrow {
    font-family: "Geist", Arial, sans-serif;
    margin: 0 0 20px;
    font-size: 13px;
}

.hero-title {
    font-family: "Geist", Arial, sans-serif;
    max-width: 620px;
    margin: 0 0 16px;
    font-size: clamp(38px, 4.4vw, 66px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.hero-title span {
    color: #711313;
}

.regulatory-placeholder {
    margin: 0 0 20px;
    padding: 10px 12px;
    color: #711313;
    background: #fafafa;
    border: 1px solid #711313;
    font-size: 13px;
    line-height: 1.5;
}

.hero-sub {
    max-width: 520px;
    margin: 0 0 22px;
    color: #3a3a3a;
    font-size: 17px;
    line-height: 1.55;
    letter-spacing: -0.01em;
}

.login-form {
    max-width: 470px;
    margin: 0 0 20px;
}

.error-msg {
    margin-bottom: 18px;
    padding: 10px 14px;
    color: #711313;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.35);
    font-size: 14px;
}

.login-fields {
    display: flex;
    flex-direction: column;
}

.login-fields label {
    margin: 0 0 6px;
    font-size: 11px;
}

.login-fields input {
    margin-bottom: 18px;
    padding: 12px 14px;
    color: #0e0e0e;
    background: #fff;
    border: 1px solid rgba(14, 14, 14, 0.14);
    border-radius: 0;
    outline: none;
    font: inherit;
    transition: border-color 0.15s;
}

.login-fields input::placeholder {
    color: #555555;
}

.login-fields input:focus {
    border-color: #0e0e0e;
}

.professional-use {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 18px;
    padding: 8px 10px;
    color: #484848;
    background: #fafafa;
    border: 1px solid #e2e2e2;
    font-size: 12.5px;
    line-height: 1.45;
}

.professional-use svg {
    width: 14px;
    height: 14px;
    flex: none;
    margin-top: 1px;
    color: #8a8d8d;
}

.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    color: #fff;
    background: #0e0e0e;
    border: 0;
    border-radius: 0;
    font: 500 15px "Instrument Sans", Arial, sans-serif;
    cursor: pointer;
    transition: background 0.2s ease;
}

.login-submit:hover,
.login-submit:focus-visible {
    background: #1b1b1b;
}

.password-reset-help {
    margin: 14px 0 0;
    color: #484848;
    font-size: 13px;
    line-height: 1.5;
}

.landing-right {
    order: 0;
    position: relative;
    min-height: calc(100vh - 48px);
    overflow: hidden;
    background-color: #0e0e0e;
    background-image: url("../img/ecg-login.389bf870c0d6.png");
    background-repeat: repeat-y;
    background-position: top center;
    background-size: 100% auto;
}

.landing-version {
    position: absolute;
    top: 22px;
    right: 24px;
    font-family: "Geist", Arial, sans-serif;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(14, 14, 14, 0.14);
    border-radius: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 900px) {
    .landing {
        grid-template-columns: 1fr;
    }
    .landing-left {
        order: 0;
        padding: 24px 24px 0;
    }

    .landing-left-inner {
        padding: 20px 0 32px;
    }

    .landing-right {
        display: none;
    }
}
