:root {
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: #202220;
    background: #f7f7f5;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-underline-offset: 4px; }

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 5%;
}

.brand {
    font-size: 28px;
    font-weight: 750;
    letter-spacing: -1.4px;
    text-decoration: none;
    line-height: 1;
}

.brand span {
    display: inline-block;
    margin: 2px 0 0 3px;
    vertical-align: top;
    font-size: 10px;
    letter-spacing: 0;
    font-weight: 500;
    color: #70736e;
}

.contact-link {
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 0;
}

.contact-link:hover { text-decoration: underline; }

main {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 44px 24px 60px;
}

.login-layout { width: min(100%, 424px); }
.page-heading { text-align: center; margin-bottom: 30px; }

.eyebrow {
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 2.2px;
    color: #62685f;
    margin: 0 0 15px;
}

h1 {
    font-size: clamp(34px, 5vw, 42px);
    font-weight: 600;
    letter-spacing: -1.8px;
    line-height: 1.15;
    margin: 0 0 12px;
}

.page-heading > p:last-child {
    color: #70736e;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.card {
    padding: 32px 32px 0;
    background: #fff;
    border: 1px solid #e3e5df;
    border-radius: 12px;
    box-shadow: 0 4px 6px -4px #22281f08, 0 12px 32px -16px #22281f12;
    overflow: hidden;
}

h2 { font-size: 20px; font-weight: 600; letter-spacing: -.5px; margin: 0 0 8px; }
.form-description { font-size: 13px; color: #70736e; line-height: 1.65; margin: 0; overflow-wrap: anywhere; }
form { margin: 26px 0 28px; }
.field + .field { margin-top: 22px; }
label { display: block; font-size: 13px; font-weight: 550; margin-bottom: 9px; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.label-row a { color: #666b62; font-size: 12px; text-decoration: none; }
.label-row a:hover { text-decoration: underline; }

input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #daddd5;
    border-radius: 6px;
    background: #fff;
    color: #202220;
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
}

input::placeholder { color: #7b8076; font-size: 14px; opacity: 1; }
input:hover { border-color: #a6ada0; }
input:focus { outline: 2px solid #53684b; outline-offset: 2px; border-color: #53684b; }
a:focus-visible, button:focus-visible { outline: 2px solid #53684b; outline-offset: 5px; }

button {
    display: block;
    width: 100%;
    min-height: 50px;
    margin-top: 27px;
    padding: 14px 20px;
    border: 0;
    border-radius: 6px;
    background: #20251f;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

button:hover { background: #384232; }
button:active { background: #151b12; }

.steambutton {
    position: relative;
    height: 52px;
    padding: 0;
    overflow: hidden;
    background: #537b25;
}

.steambutton:hover, .steambutton:focus-visible { background: #476c1d; }

.steambutton > span {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.steambutton > span:first-child::after {
    content: "";
    position: absolute;
    right: 0;
    top: 22%;
    width: 1px;
    height: 56%;
    background: #ffffff30;
}

.steambutton > .icon { left: auto; right: 0; width: 20%; }
.steambutton svg { width: 24px; height: 24px; }
.steambutton:focus-visible > span:first-child { left: -80%; opacity: 0; }
.steambutton:focus-visible > .icon { width: 100%; }
.steambutton:focus-visible svg { transform: scale(1.18); }

.card-footer { margin: 0 -32px; padding: 18px 24px; border-top: 1px solid #eeefe9; text-align: center; color: #71766b; font-size: 12px; background: #fdfdfa; }
.support { text-align: center; color: #70736e; font-size: 12px; line-height: 1.8; margin: 24px 0 0; }
.support a { margin-left: 5px; color: #343b2f; font-weight: 550; }
.error { padding: 12px; background: #fff3f0; border: 1px solid #efcfc9; color: #983c2d; border-radius: 6px; font-size: 13px; line-height: 1.6; margin: 18px 0 0; }
.status { background: #f1f5ed; color: #3e5730; padding: 16px; border-radius: 6px; font-size: 14px; margin: 24px 0; }

.site-footer { text-align: center; padding: 0 24px 26px; color: #74796e; }
.site-footer p { font-size: 11px; line-height: 1.8; margin: 0; }
.site-footer .platform-description { color: #686f60; font-size: 12px; margin-bottom: 9px; }

@media (hover: hover) {
    .steambutton:hover > span:first-child { left: -80%; opacity: 0; }
    .steambutton:hover > .icon { width: 100%; }
    .steambutton:hover svg { transform: scale(1.18); }
}

@media (max-width: 480px) {
    .site-header { padding: 24px; }
    .brand { font-size: 25px; }
    main { padding: 30px 20px 44px; }
    .card { padding: 26px 24px 0; }
    .card-footer { margin: 0 -24px; }
    .page-heading { margin-bottom: 26px; }
    .site-footer .platform-description { max-width: 270px; margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: no-preference) {
    button, input { transition: border-color .15s ease, background-color .15s ease; }
    .steambutton > span, .steambutton svg { transition: all .25s cubic-bezier(.31, -.105, .43, 1.4); }
}
