:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #24231f;
    background: #f5f4f0;
    --muted: #73716b;
    --accent: #bd6b35;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(ellipse at 12% 8%, rgba(223, 195, 164, 0.26), transparent 34rem),
        #f5f4f0;
}

button,
input {
    font: inherit;
}

.page {
    width: min(100%, 1040px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 18px 4px;
    font-size: 15px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #25241f;
    color: #fff;
    font-size: 13px;
    letter-spacing: -0.08em;
}

.panel {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    min-height: 570px;
    overflow: hidden;
    border: 1px solid rgba(32, 32, 31, 0.08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(48, 42, 34, 0.11);
}

.intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: clamp(30px, 5vw, 58px);
    background:
        radial-gradient(ellipse at 90% 15%, rgba(213, 147, 91, 0.28), transparent 22rem),
        #25241f;
    color: #fff;
}

.eyebrow {
    margin: 0;
    color: #d99760;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.intro-copy {
    max-width: 380px;
    margin: auto 0;
    padding: 48px 0;
}

h1 {
    margin: 17px 0 15px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 1.04;
}

.intro-copy > p:last-child {
    max-width: 340px;
    margin: 0;
    color: #d0cfca;
    font-size: 15px;
    line-height: 1.7;
}

.role-note {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: #d0cfca;
    font-size: 12px;
    line-height: 1.6;
}

.login {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5.5vw, 66px);
}

.login-header {
    margin-bottom: 30px;
}

.login-header .eyebrow {
    color: var(--accent);
}

h2 {
    margin: 10px 0 8px;
    font-size: clamp(27px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -0.045em;
}

.subheading {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.field {
    margin-bottom: 19px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 650;
}

.input-wrap {
    position: relative;
}

input {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid #deddd7;
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: #24231f;
    font-size: 16px;
}

input::placeholder {
    color: #a4a39e;
}

input:focus {
    border-color: #bd7949;
    box-shadow: 0 0 0 4px rgba(189, 107, 53, 0.13);
}

input[type="password"],
input[data-visible="true"] {
    padding-right: 68px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 7px;
    min-width: 52px;
    min-height: 40px;
    padding: 0 8px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6f6d67;
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
}

.submit {
    width: 100%;
    min-height: 52px;
    margin-top: 5px;
    border: 0;
    border-radius: 11px;
    background: #272620;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.submit:hover {
    background: #3a3831;
}

button:focus-visible {
    outline: 3px solid rgba(189, 107, 53, 0.5);
    outline-offset: 3px;
}

.preview-note {
    margin: 17px 0 0;
    padding: 12px 13px;
    border: 1px solid #eee4d8;
    border-radius: 10px;
    background: #fbf8f4;
    color: #70563f;
    font-size: 12px;
    line-height: 1.55;
}

.message {
    min-height: 20px;
    margin: 10px 0 0;
    color: #8a4c21;
    font-size: 13px;
}

.footer {
    margin: 17px 0 0;
    color: #85837d;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 760px) {
    body {
        padding: 18px;
    }

    .page {
        width: min(100%, 520px);
        margin: auto;
    }

    .panel {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        border-radius: 19px;
    }

    .intro {
        padding: 25px 26px;
    }

    .intro-copy {
        max-width: 500px;
        margin: 0;
        padding: 27px 0 21px;
    }

    .intro-copy h1 {
        max-width: 420px;
        margin: 10px 0 8px;
        font-size: clamp(34px, 9vw, 44px);
    }

    .intro-copy > p:last-child {
        font-size: 13px;
        line-height: 1.55;
    }

    .role-note {
        padding-top: 14px;
        font-size: 11px;
    }

    .login {
        padding: 29px clamp(22px, 7vw, 38px) 25px;
    }

    .login-header {
        margin-bottom: 23px;
    }
}

@media (max-width: 380px) {
    body {
        padding: 12px;
    }

    .brand {
        margin-left: 2px;
    }

    .intro {
        padding: 21px 20px;
    }

    .login {
        padding: 25px 20px 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
