@import url('https://fonts.googleapis.com/css2?family=DM+Mono&family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600&display=swap');

:root {
    --ink: #161719;
    --navy: #111733;
    --paper: #f4eedf;
    --line: #77746e;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

.login-page { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; }

.brand-panel { min-height: 100svh; position: relative; overflow: hidden; color: #fff; }

.brand-panel__image {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 22, 15, .10), rgba(7, 17, 11, .47)), url('/Media/loginpage.jpg') 50% 55% / cover no-repeat;
    transform: scale(1.01);
}

.wordmark, .brand-statement { position: absolute; z-index: 1; }

.wordmark {
    top: 39px;
    left: 40px;
    color: inherit;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 22px;
    letter-spacing: -.07em;
    text-decoration: none;
}

.brand-statement {
    left: clamp(40px, 6vw, 76px);
    bottom: 43%;
    margin: 0;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(36px, 3.15vw, 58px);
    font-weight: 400;
    line-height: .97;
    letter-spacing: -.045em;
}

.form-panel { display: grid; place-items: center; padding: 40px; background: var(--paper); }

.form-shell { width: min(100%, 310px); transform: translateY(-2.5vh); }

.eyebrow {
    margin: 0 0 12px;
    color: #69665f;
    font-family: "DM Mono", monospace;
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 28px;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 38px;
    font-weight: 400;
    letter-spacing: -.045em;
}

.login-form { display: grid; gap: 23px; }
.form-step { display: grid; gap: 7px; }
.is-hidden { display: none; }

label {
    color: #3a3938;
    font-size: 11px;
    font-weight: 500;
}

input {
    width: 100%;
    height: 59px;
    padding: 15px 13px;
    border: 1px solid var(--line);
    border-radius: 3px;
    outline: none;
    color: var(--ink);
    background: rgba(255, 255, 255, .75);
    font: 14px Inter, Arial, sans-serif;
    transition: border-color .2s, box-shadow .2s;
}

input:focus { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(17, 23, 51, .12); }
.password-field { position: relative; }
.password-field input { padding-right: 60px; }

.password-toggle, .change-email {
    border: 0;
    background: none;
    color: #3a3938;
    font: 10px "DM Mono", monospace;
    cursor: pointer;
}

.forgot-link { color: #3a3938; font: 10px "DM Mono", monospace; text-decoration: underline; text-underline-offset: 3px; }
.reset-intro { margin: -10px 0 25px; color: #68655f; font-size: 13px; line-height: 1.65; }

.password-toggle { position: absolute; top: 0; right: 0; height: 59px; padding: 0 14px; }
.change-email { justify-self: start; padding: 0; margin-bottom: 5px; text-decoration: underline; text-underline-offset: 3px; }

.form-message { min-height: 0; margin: -7px 0 -5px; color: #9b3030; font-size: 11px; line-height: 1.45; }
.form-message:not(:empty) { min-height: 16px; }

.continue-button {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 2px;
    color: #fff;
    background: var(--navy);
    font: 600 12px Inter, Arial, sans-serif;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.continue-button:hover:not(:disabled) { background: #1b244a; transform: translateY(-1px); }
.continue-button:disabled { cursor: wait; opacity: .72; }

@media (max-width: 760px) {
    .login-page { display: block; }
    .brand-panel { min-height: 39vh; }
    .brand-panel__image { background-position: 50% 58%; }
    .wordmark { top: 24px; left: 24px; }
    .brand-statement { left: 24px; bottom: 29px; font-size: clamp(31px, 10vw, 44px); }
    .form-panel { min-height: 61vh; padding: 54px 28px; align-items: start; }
    .form-shell { width: min(100%, 390px); transform: none; }
}

@media (max-width: 380px) {
    .form-panel { padding-left: 22px; padding-right: 22px; }
}
