html {
    text-rendering: optimizelegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    padding: 0;
    background: var(--public-paper);
    color: var(--public-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

p,
li,
blockquote {
    line-height: 1.5;
}

a,
a:visited {
    color: #0100ee;
    text-decoration: none;
}

a img {
    border: none;
    cursor: pointer;
}

img {
    border: 0;
    height: auto;
    max-width: 100%;
    vertical-align: middle;
}

.public-page {
    --public-ink: #161616;
    --public-muted: #686868;
    --public-line: #dededb;
    --public-paper: #fbfbf8;
    background: var(--public-paper);
    color: var(--public-ink);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(56px, 10vh, 88px) 24px 40px;
}

.auth-shell {
    width: min(100%, 320px);
}

.auth-brand {
    display: inline-block;
    margin-bottom: 36px;
    line-height: 0;
}

.auth-brand:focus-visible {
    outline: 3px solid #8ab4f8;
    outline-offset: 3px;
}

.auth-panel {
    width: 100%;
}

.auth-panel h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.1;
}

.auth-intro {
    margin: 10px 0 0;
    color: var(--public-muted);
    font-size: .875rem;
    line-height: 1.5;
}

.auth-message:empty {
    display: none;
}

.auth-message .display-message-foundation {
    margin: 24px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--public-line);
    border-radius: 4px;
    font-size: .9375rem;
    line-height: 1.5;
}

.auth-message .message-error {
    border-color: #dfc3c3;
    background: #fff8f8;
    color: #8d1717;
}

.auth-message .message-success {
    border-color: #bdd8c3;
    background: #f7fff8;
    color: #256331;
}

.auth-form {
    margin-top: 24px;
}

.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    font-size: .9375rem;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--public-ink);
    font-weight: 600;
}

.auth-field input {
    box-sizing: border-box;
    width: 100%;
    min-height: 36px;
    padding: 5px 8px;
    border: 1px solid #bdbdb8;
    border-radius: 4px;
    background: #fff;
    color: var(--public-ink);
    font: inherit;
}

.auth-field input:hover {
    border-color: #858580;
}

.auth-field input:focus-visible {
    outline: 3px solid #8ab4f8;
}

.auth-field input.is-invalid {
    border-color: #a82424;
}

.auth-field-error {
    display: block;
    margin-top: 6px;
    color: #8d1717;
    font-size: .8125rem;
}

.auth-field-error:empty {
    display: none;
}

.auth-field-hint {
    display: block;
    margin-top: 6px;
    color: var(--public-muted);
    font-size: .8125rem;
    line-height: 1.4;
}

.auth-form .loader-icon {
    display: none;
}

.auth-honeypot {
    display: none;
}

.auth-submit {
    width: 100%;
    min-height: 36px;
    padding: 5px 12px;
    border: 1px solid var(--public-ink);
    border-radius: 4px;
    background: var(--public-ink);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.auth-submit:hover {
    background: #333;
}

.auth-submit:focus-visible,
.auth-text-link:focus-visible {
    outline: 3px solid #8ab4f8;
    outline-offset: 3px;
}

.auth-page a.auth-text-link,
.auth-page a.auth-text-link:visited {
    color: var(--public-ink);
    text-decoration: underline;
    text-decoration-color: #a0a09b;
    text-underline-offset: 3px;
}

.auth-signup,
.auth-recovery {
    margin: 24px 0 0;
    color: #777;
    font-size: .875rem;
    font-weight: 400;
    text-align: left;
}

.auth-recovery {
    margin-top: 10px;
}

@media screen and (max-width: 480px) {
    .auth-main {
        padding: 40px 20px 32px;
    }

    .auth-brand {
        margin-bottom: 32px;
    }
}
