@font-face {
    font-family: Manrope;
    src: url("/fonts/manrope-latin.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}
@font-face {
    font-family: Instrument;
    src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2");
    font-style: italic;
    font-display: swap;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: #f7f7f3;
    color: #192b34;
    font-family: Manrope, system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}
.auth-layout {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.auth-story {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    color: #fff;
    background:
        linear-gradient(
            180deg,
            rgba(15, 31, 40, 0.62),
            rgba(15, 31, 40, 0.45) 35%,
            rgba(15, 31, 40, 0.93)
        ),
        url("/images/challenger-604/img-9834.webp") center/cover;
}
.brand {
    display: flex;
    align-items: center;
    gap: 24px;
    text-decoration: none;
    color: #fff;
}
.brand img {
    width: 140px;
}
.brand span {
    border-left: 1px solid #ffffff55;
    padding-left: 24px;
    font-size: 13px;
    letter-spacing: 3px;
}
.story-content {
    padding-top: 100px;
    max-width: 550px;
}
.eyebrow {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0 0 20px;
}
.story-content h1 {
    font-weight: 500;
    font-size: clamp(32px, 3vw, 46px);
    letter-spacing: -2px;
    line-height: 1.12;
    margin: 0 0 24px;
}
.story-content em {
    font-family: Instrument, serif;
    font-weight: 400;
}
.story-content > p:last-child {
    max-width: 350px;
    color: #e0e6e7;
    font-size: 15px;
    line-height: 1.8;
}
.story-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 70px;
    font-size: 13px;
    letter-spacing: 1.5px;
    color: #c1ced4;
}
.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 56px 48px 24px;
    position: relative;
}
.auth-card {
    width: 100%;
    max-width: 388px;
    margin: auto 0;
    padding: 30px 0;
}
.auth-card .eyebrow {
    color: #9b4547;
}
.auth-card h2 {
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 0 0 12px;
}
.intro {
    color: #4c606b;
    margin: 0 0 30px;
}
.auth-card label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    margin: 18px 0 8px;
}
input {
    background: #fff;
    border: 1px solid #d8dddb;
    border-radius: 8px;
    font: inherit;
    color: inherit;
    width: 100%;
    padding: 13px 14px;
    min-height: 48px;
}
input:focus {
    outline: 3px solid #d1202626;
    border-color: #a74245;
}
button,
.button {
    border: 0;
    background: #d12026;
    border-radius: 8px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    font: inherit;
    font-weight: 700;
    font-size: 13px;
    min-height: 48px;
    cursor: pointer;
    text-decoration: none;
}
form > button {
    width: 100%;
    margin-top: 24px;
}
button:disabled {
    opacity: 0.55;
    cursor: wait;
}
button:hover,
.button:hover {
    background: #b91b21;
}
a {
    color: #384e59;
}
a:focus-visible,
button:focus-visible {
    outline: 3px solid #e2a9a9;
    outline-offset: 3px;
}
.password-wrap {
    position: relative;
}
.password-wrap input {
    padding-right: 60px;
}
.show-password {
    position: absolute;
    right: 4px;
    top: 4px;
    min-height: 40px;
    background: transparent;
    color: #596b74;
    padding: 8px 12px;
    font-size: 13px;
}
.show-password:hover {
    background: #ecefe9;
}
.forgot {
    display: block;
    text-align: right;
    font-size: 13px;
    margin-top: 14px;
}
.security-note {
    border-top: 1px solid #dde2dc;
    margin-top: 30px;
    padding-top: 20px;
    display: flex;
    gap: 12px;
    font-size: 13px;
    line-height: 1.6;
    color: #596a72;
}
.security-note span {
    color: #b24245;
    font-size: 17px;
}
.auth-panel footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #596a72;
    padding-top: 24px;
}
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin: 18px 0;
    font-size: 13px;
}
.error {
    background: #fff0ee;
    color: #942824;
    border: 1px solid #f3c4bf;
}
.success {
    background: #ebf3eb;
    color: #346340;
}
.back {
    display: block;
    margin: 24px 0;
    font-size: 13px;
}
.mobile-brand {
    display: none;
}
.qr {
    display: block;
    width: 220px;
    height: 220px;
    max-width: 100%;
    margin: 0 auto 20px;
    object-fit: contain;
    background: white;
    border: 1px solid #e0e3df;
    border-radius: 10px;
}
details {
    background: #edf0eb;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
}
details code {
    display: block;
    overflow-wrap: anywhere;
    padding-top: 10px;
}
summary {
    cursor: pointer;
}
pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #eaf0e8;
    padding: 16px;
    border-radius: 8px;
    line-height: 1.8;
    font-size: 13px;
}
.secondary {
    background: #e5e9e3;
    color: #192b34;
    margin: 12px 0;
    width: 100%;
}
.secondary:hover {
    background: #d6ddd3;
}
.text-button {
    background: none;
    color: #53646b;
    padding: 0;
    min-height: 30px;
    width: auto;
    margin: 18px auto 0;
    font-size: 13px;
    text-decoration: underline;
}
.text-button:hover {
    background: none;
    color: #192b34;
}
[hidden] {
    display: none !important;
}
@media (min-width: 1600px) {
    .auth-story {
        padding: 72px;
    }
    .auth-card {
        max-width: 420px;
    }
}
@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 42% 58%;
    }
    .auth-story {
        padding: 30px;
    }
    .brand {
        gap: 12px;
        flex-direction: column;
        align-items: flex-start;
    }
    .brand span {
        border: none;
        padding: 0;
    }
    .story-content h1 {
        font-size: 38px;
    }
    .story-footer span {
        display: none;
    }
    .auth-panel {
        padding: 38px 28px 24px;
    }
}
@media (max-width: 620px) {
    .auth-layout {
        display: block;
    }
    .auth-story {
        display: none;
    }
    .auth-panel {
        min-height: 100dvh;
        padding: 30px 24px 20px;
    }
    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 20px;
        align-self: flex-start;
        margin-bottom: 22px;
    }
    .mobile-brand img {
        width: 106px;
    }
    .mobile-brand span {
        border-left: 1px solid #d8dddb;
        padding-left: 20px;
        font-size: 13px;
        letter-spacing: 2px;
    }
    .auth-card {
        padding: 28px 0;
        max-width: 420px;
    }
    .auth-card h2 {
        font-size: 27px;
    }
    .auth-panel footer {
        font-size: 13px;
    }
    input {
        font-size: 16px;
    }
    .story-content {
        padding-top: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }
}
