:root {
    color-scheme: light;
    font-family:
        Verdana,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    --bg: #f6f6f2;
    --surface: #ffffff;
    --text: #151515;
    --muted: #6f736e;
    --border: #d7d7d1;
    --primary: #151515;
}

* {
    box-sizing: border-box;
}

body {
    align-items: center;
    background: var(--bg);
    color: var(--text);
    display: flex;
    justify-content: center;
    margin: 0;
    min-height: 100vh;
    padding: 24px;
}

.login-shell {
    display: grid;
    gap: 24px;
    max-width: 430px;
    width: 100%;
}

.brand {
    display: grid;
    gap: 5px;
    justify-items: center;
    text-align: center;
}

.brand strong {
    font-size: 22px;
    letter-spacing: 0;
}

.brand span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.brand-logo {
    height: auto;
    justify-self: center;
    max-width: 150px;
    width: 150px;
}

.brand-logo--miseo {
    display: block;
    max-width: 220px;
    width: min(220px, 62vw);
}

.brand-logo--tenant {
    max-height: 80px;
    max-width: 220px;
    object-fit: contain;
    width: auto;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 22px 60px rgba(21, 21, 21, 0.07);
    padding: 22px;
}

form,
.fields {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
}

label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

input[type="email"],
input[type="password"],
input[type="text"],
select {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font: inherit;
    min-height: 46px;
    padding: 11px 12px;
    width: 100%;
}

select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 20px,
        calc(100% - 13px) 20px;
    background-repeat: no-repeat;
    background-size:
        5px 5px,
        5px 5px;
    padding-right: 38px;
}

input:focus,
select:focus {
    border-color: #969990;
    box-shadow: 0 0 0 3px rgba(21, 21, 21, 0.07);
    outline: none;
}

.check-row {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 10px;
}

button {
    align-items: center;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 14px;
    font-weight: 850;
    height: 46px;
    justify-content: center;
    letter-spacing: 0;
    padding: 0 16px;
    width: 100%;
}

.form-alert {
    --notice-bg: #f7faf7;
    --notice-border: #d8ddd7;
    --notice-dot: #6f736e;
    --notice-text: #3f4a3f;
    align-items: start;
    background: var(--notice-bg);
    border: 1px solid var(--notice-border);
    border-radius: 8px;
    color: var(--notice-text);
    display: grid;
    font-size: 13px;
    font-weight: 800;
    gap: 10px;
    grid-template-columns: 9px minmax(0, 1fr);
    line-height: 1.4;
    padding: 11px 12px;
}

.form-alert.is-success {
    --notice-bg: #eef7ef;
    --notice-border: #b8dfbd;
    --notice-dot: #4f8f5b;
    --notice-text: #24652b;
}

.form-alert.is-error {
    --notice-bg: #fff2f0;
    --notice-border: #ffc9c2;
    --notice-dot: #d04437;
    --notice-text: #9f2219;
}

.form-alert__icon {
    background: var(--notice-dot);
    border-radius: 999px;
    display: block;
    height: 8px;
    margin-top: 5px;
    width: 8px;
}

.form-alert__content {
    min-width: 0;
}

.form-alert__content p,
.form-alert__content ul {
    margin: 0;
}

.form-alert__content ul {
    display: grid;
    gap: 4px;
    list-style: none;
    padding: 0;
}

.status,
.errors {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    padding: 11px 12px;
}

.status {
    background: #eef7ef;
    border: 1px solid #b8dfbd;
    color: #24652b;
}

.errors {
    background: #fff2f0;
    border: 1px solid #ffc9c2;
    color: #9f2219;
}

.fineprint {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
    margin: 0;
    text-align: center;
}

.fineprint a {
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

.fineprint a:hover {
    text-decoration: underline;
}

.set-password-shell {
    max-width: 470px;
}

.set-password-card {
    display: grid;
    gap: 20px;
}

.set-password-intro {
    display: grid;
    gap: 8px;
    text-align: center;
}

.set-password-kicker,
.tenant-lockup__label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0;
    margin: 0;
    text-transform: uppercase;
}

.set-password-intro h1 {
    font-size: 24px;
    line-height: 1.15;
    margin: 0;
}

.set-password-intro p:last-child {
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
    margin: 0;
}

.tenant-lockup {
    align-items: center;
    background: #f7f7f3;
    border: 1px solid #e3e3dc;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 16px;
    text-align: center;
}

.tenant-lockup strong {
    font-size: 18px;
    letter-spacing: 0;
}

.tenant-logo-frame {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 74px;
    width: 100%;
}

.tenant-logo-frame img {
    height: auto;
    max-height: 72px;
    max-width: 220px;
    object-fit: contain;
}

.password-rules {
    color: var(--muted);
    display: grid;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    line-height: 1.45;
    list-style: none;
    margin: 0;
    padding: 0;
}

.password-rules li {
    align-items: start;
    display: grid;
    gap: 8px;
    grid-template-columns: 7px minmax(0, 1fr);
}

.password-rules li::before {
    background: var(--primary);
    border-radius: 999px;
    content: "";
    height: 5px;
    margin-top: 6px;
    width: 5px;
}
