:root {
    color-scheme: dark;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #f4f1e9;
    background: #080d15;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background: #080d15;
    color: #f4f1e9;
    line-height: 1.45;
}

.page-shell {
    width: calc(100% - 32px);
    max-width: 380px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 32px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.account-panel {
    width: 100%;
    padding: 28px;
    background: #101925;
    border: 1px solid #293546;
    border-radius: 10px;
}

h1 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.25;
    font-weight: 650;
    letter-spacing: 0;
}

.account-wordmark span {
    color: #d8ad52;
}

p {
    margin: 16px 0 0;
}

.account-intro {
    color: #9ba8b8;
    font-size: 0.925rem;
}

.form-stack {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

label {
    display: grid;
    gap: 6px;
    color: #dce3ec;
    font-size: 0.9rem;
    font-weight: 600;
}

.label-note {
    color: #9ba8b8;
    font-weight: 400;
}

input,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #364459;
    border-radius: 6px;
    background: #0b121c;
    color: #f4f1e9;
    font: inherit;
}

textarea {
    min-height: 118px;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: #d8ad52;
    outline: 2px solid rgba(216, 173, 82, 0.28);
    outline-offset: 1px;
}

.button {
    min-height: 46px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8ad52;
    border-radius: 6px;
    background: #d8ad52;
    color: #151006;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.button:hover,
.button:focus-visible {
    background: #f0cc79;
    border-color: #f0cc79;
}

.button-wide {
    width: 100%;
}

a {
    color: #f0cc79;
    text-underline-offset: 2px;
}

.auth-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 0.9rem;
}

.alert {
    margin: 0 0 16px;
    padding: 11px 12px;
    border: 1px solid #405069;
    border-radius: 6px;
    background: #101925;
    color: #dce3ec;
    font-size: 0.9rem;
}

.account-panel .alert {
    margin-top: 20px;
    margin-bottom: 0;
}

.alert-error {
    border-color: #6c333d;
    background: #29171c;
    color: #ffb7bd;
}

.alert-warning {
    border-color: #6d592c;
    background: #2b2515;
    color: #f6d98f;
}

.alert-success {
    border-color: #2d6b53;
    background: #122b22;
    color: #a3eccb;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.centered {
    text-align: center;
}

.centered .button {
    margin-top: 22px;
}

.form-trap {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 480px) {
    .page-shell {
        width: calc(100% - 24px);
        padding: 18px 0;
    }

    .account-panel {
        padding: 22px;
    }
}
