@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Regular/Montserrat-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --black: #050606;
    --charcoal: #111716;
    --teal: #00b5b4;
    --teal-light: #6ad9d4;
    --ink: #16292b;
    --muted: #657273;
    --line: #ccd5d4;
    --field: #edf7f7;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: "Montserrat", sans-serif;
}

button,
input {
    font: inherit;
}

.login-page {
    min-height: 100vh;
    min-height: 100svh;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100svh;
}

.brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: clamp(32px, 5vw, 72px);
    overflow: hidden;
    color: var(--white);
    background: var(--black);
}

.brand-panel__logo {
    position: relative;
    z-index: 2;
    width: clamp(170px, 16vw, 250px);
    max-width: 58%;
    height: auto;
}

.brand-panel__message {
    position: relative;
    z-index: 2;
    width: min(410px, 58%);
    margin: clamp(50px, 7vh, 70px) 0 auto;
    padding: 0;
}

.brand-panel__eyebrow {
    margin: 0 0 10px;
    color: var(--teal-light);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.brand-panel__message h1 {
    margin: 0;
    font-size: clamp(1.65rem, 2.6vw, 3rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.brand-panel__message strong {
    display: block;
    color: var(--teal);
    font-weight: 750;
}

.brand-panel__mark {
    position: absolute;
    top: 50%;
    right: 0;
    width: auto;
    height: min(55vh, 520px);
    max-width: 60%;
    max-height: calc(100% - 200px);
    object-fit: contain;
    opacity: 0.95;
    pointer-events: none;
    transform: translate(60.1%, -50%);
}

.brand-panel__contact {
    position: relative;
    z-index: 2;
    width: 58%;
    color: #e4eeee;
    font-size: 0.72rem;
    line-height: 1.7;
}

.brand-panel__contact p {
    margin: 0;
}

.brand-panel__contact a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 3px;
}

.brand-panel__contact a:hover,
.brand-panel__contact a:focus-visible {
    color: var(--teal-light);
    text-decoration: underline;
}

.brand-panel__contact p::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--teal);
    content: "";
    vertical-align: 0.08em;
}

.brand-panel__contact small {
    display: block;
    margin-top: 12px;
    color: #9cacab;
    font-size: 0.6rem;
}

.form-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: clamp(32px, 6vw, 96px);
    background: #f8faf9;
}

.login-card {
    width: min(100%, 430px);
}

.login-card__header {
    margin-bottom: 28px;
}

.login-card__header h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2rem, 3vw, 2.75rem);
    letter-spacing: -0.05em;
}

.field-group {
    margin-bottom: 20px;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 650;
}

.field-group input {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 16px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    background: var(--field);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field-group input:focus {
    border-color: var(--teal);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 181, 180, 0.12);
}

.field-error {
    margin: 7px 0 0;
    color: #bf3030;
    font-size: 0.72rem;
}

.form-alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    color: #8c2525;
    border: 1px solid #efc3c3;
    border-radius: 8px;
    background: #fff0f0;
    font-size: 0.76rem;
    line-height: 1.5;
}

.form-alert p {
    margin: 0;
}

.login-form__options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 4px 0 26px;
    color: var(--muted);
    font-size: 0.72rem;
}

.login-form__options a {
    color: var(--muted);
    text-underline-offset: 3px;
}

.login-form__options a[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.75;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.remember-option input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--teal);
}

.login-button {
    width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    color: var(--white);
    border: 0;
    border-radius: 8px;
    background: var(--ink);
    font-weight: 650;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

.login-button:hover {
    background: var(--teal);
}

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

.powered-by {
    position: absolute;
    right: clamp(22px, 3vw, 48px);
    bottom: 22px;
    margin: 0;
    color: #8a9695;
    font-size: clamp(0.75rem, 0.8vw, 0.9rem);
}

.powered-by a {
    color: inherit;
    font-weight: 650;
    text-decoration: none;
}

@media (max-width: 820px) {
    .split-layout {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        min-height: 250px;
        padding: 28px;
    }

    .brand-panel__logo {
        width: 170px;
    }

    .brand-panel__message {
        margin: auto 0 0;
        width: min(74%, calc(100% - 110px));
        padding: 18px 0 22px;
    }

    .brand-panel__message h1 {
        font-size: clamp(1.65rem, 7vw, 2.5rem);
    }

    .brand-panel__mark {
        top: 50%;
        right: 0;
        width: 220px;
        height: auto;
        max-width: none;
        max-height: calc(100% - 36px);
        opacity: 0.5;
        transform: translate(60.1%, -50%);
    }

    .brand-panel__contact {
        display: none;
    }

    .form-panel {
        min-height: calc(100svh - 250px);
        padding: 48px 24px 82px;
    }

    .powered-by {
        right: 24px;
        bottom: 24px;
        font-size: 0.75rem;
    }
}

@media (max-width: 460px) {
    .brand-panel {
        min-height: 220px;
    }

    .brand-panel__eyebrow {
        font-size: 0.58rem;
    }

    .login-card__header {
        margin-bottom: 24px;
    }

    .login-form__options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

}
