.auth-page{margin:0;background:var(--panel-ivory);color:#18181b;font-family:Onest,sans-serif;font-size:16px;line-height:1.5}.auth-content{width:min(28rem,calc(100% - 2rem));margin:3rem auto}.auth-content-wide{width:min(64rem,calc(100% - 2rem))}.auth-brand{color:#34473a;font-weight:700;text-decoration:none}.auth-content h1{font-size:1.75rem;line-height:1.2;margin:1.5rem 0}.auth-content h2{font-size:1.15rem;margin:0 0 1rem}.auth-content form,.auth-content section{display:grid;gap:1rem}.auth-content section{background:white;padding:1.5rem;border:1px solid #e4e4e7;border-radius:1rem;margin:1.5rem 0}.auth-content label{display:grid;gap:.4rem}.auth-content input:not([type=checkbox]),.auth-content textarea{box-sizing:border-box;width:100%;padding:.7rem .85rem;border:1px solid #a1a1aa;border-radius:.6rem;font:inherit;background:white;color:inherit}.auth-content button,.auth-button{justify-self:start;border:0;border-radius:.6rem;padding:.75rem 1rem;font:inherit;font-weight:600;background:#34473a;color:white;cursor:pointer;text-decoration:none}.auth-content button:disabled{opacity:.5;cursor:wait}.auth-content a{color:#34473a}.auth-content .auth-button{color:white}.auth-content :focus-visible{outline:3px solid #647b67;outline-offset:3px}.auth-content .auth-check{display:flex;align-items:center;gap:.5rem}.auth-content .auth-error{color:#991b1b;background:#fef2f2;padding:1rem;border-radius:.6rem}.auth-content .auth-message{background:#ecfdf5;padding:1rem;border-radius:.6rem}.auth-content .auth-row{display:flex;align-items:center;flex-wrap:wrap;gap:1rem}.auth-content pre{white-space:pre-wrap;overflow-wrap:anywhere}.auth-content img{max-width:100%}.auth-content .auth-danger{background:#991b1b}.auth-content [hidden]{display:none}

.auth-login {
    width: min(24rem, calc(100% - 2rem));
    margin: clamp(2rem, 8vh, 5rem) auto 2rem;
}

.auth-login .auth-brand {
    display: flex;
    width: fit-content;
    margin: 0 auto;
    align-items: center;
    flex-direction: column;
    gap: .4rem;
    font-size: .875rem;
}

.auth-login .auth-brand img {
    display: block;
    width: 7rem;
    height: auto;
}

.auth-login section {
    margin: 1.25rem 0 0;
    padding: clamp(1rem, 5vw, 1.5rem);
}

.auth-login #security-feedback {
    margin: 0;
}

.auth-login #security-feedback:not(:empty) {
    margin-top: 1rem;
}

.auth-login .auth-check input {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: #34473a;
}

.auth-login-actions {
    display: grid;
    gap: .625rem;
}

.auth-login-actions button {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.auth-login-actions button:enabled:hover {
    background: #27392d;
}

.auth-login-actions .auth-login-passkey {
    border: 1px solid #cbbf9f;
    background: #f3eddd;
    color: #463820;
}

.auth-login-actions .auth-login-passkey:enabled:hover {
    background: #eae0c8;
}

.auth-login-passkey svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.auth-otp {
    margin: 0;
    min-width: 0;
    padding: 0;
    border: 0;
}
.auth-otp-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(.25rem, 1.4vw, .5rem);
    margin-top: .5rem;
}
.auth-content .auth-otp-grid input {
    padding: .45rem .125rem;
    min-height: 48px;
    text-align: center;
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
}
.auth-login details summary {
    cursor: pointer;
    color: #34473a;
}
.auth-recovery-form {
    margin-top: .75rem;
}

.auth-login section h2 {
    margin-bottom: 0;
}

.auth-security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: 1rem;
}
.auth-content .auth-security-grid section {
    margin: 0;
    align-content: start;
}
.auth-content .auth-profile h2 {
    margin: 0;
}
.auth-profile-role {
    padding: .2rem .6rem;
    border-radius: 1rem;
    color: #34473a;
    background: #e9efe8;
}
