h1:focus {
    outline: none;
}

:root {
    font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #29402f;
    background: #fff;
}

body,
button,
input,
select,
textarea {
    font-family: inherit;
}

body {
    margin: 0;
    min-width: 320px;
    background: #fff;
}

/* Static startup screen shown while the WebAssembly runtime downloads and starts. */
.app-loading {
    position: relative;
    box-sizing: border-box;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    color: #29402f;
    background: #fff;
}

.app-loading__glow {
    position: absolute;
    width: min(72vw, 42rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(231, 190, 90, .14), transparent 68%);
    animation: loading-breathe 2.8s ease-in-out infinite;
}

.app-loading__brand {
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 2.4rem;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -.06em;
}

.app-loading__brand-mark {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: 50%;
    color: #fffaf0;
    background: #e46d42;
    font-family: sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    box-shadow: 0 .5rem 1.5rem rgba(164, 69, 35, .18);
}

.app-loading__spinner {
    position: relative;
    z-index: 1;
    width: 5.5rem;
    height: 5.5rem;
}

.app-loading__spinner span {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-top-color: #e46d42;
    border-radius: 50%;
    animation: loading-spin 1.35s cubic-bezier(.55, .2, .35, .8) infinite;
}

.app-loading__spinner span:nth-child(2) {
    inset: .55rem;
    border-top-color: #ddb14f;
    animation-duration: 1.8s;
    animation-direction: reverse;
}

.app-loading__spinner span:nth-child(3) {
    inset: 1.1rem;
    border-top-color: #52715a;
    animation-duration: 1.05s;
}

.app-loading__spinner i {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #52715a;
    font-size: 1rem;
    font-style: normal;
}

.app-loading p,
.app-loading small {
    z-index: 1;
}

.app-loading p {
    margin: 1.7rem 0 .35rem;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.app-loading small {
    color: #59685d;
    font-size: .72rem;
}

@keyframes loading-spin {
    to { transform: rotate(360deg); }
}

@keyframes loading-breathe {
    50% { transform: scale(1.08); opacity: .65; }
}

@media (prefers-reduced-motion: reduce) {
    .app-loading__glow,
    .app-loading__spinner span {
        animation: none;
    }
}

/* Kept hidden until Blazor explicitly reveals it after a genuine fatal error. */
#blazor-error-ui {
    display: none;
}

.account-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #fff;
}

.account-header {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    height: 88px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.account-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #29402f;
    text-decoration: none;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.account-brand-mark {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 50%;
    color: #fffaf0;
    background: #e46d42;
    font-size: 22px;
}

.account-home-link {
    color: #59685d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.account-home-link:hover {
    color: #d65f38;
}

.account-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.account-nav-action {
    padding: 10px 16px;
    border: 1px solid #d9cdbd;
    border-radius: 999px;
    color: #29402f;
    background: rgba(255, 253, 247, .7);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.account-nav-action:hover {
    border-color: #e46d42;
    color: #bc5533;
}

.account-content {
    position: relative;
    z-index: 1;
    width: min(100% - 40px, 560px);
    margin: 38px auto 80px;
    padding: 44px 48px;
    border: 1px solid rgba(82, 91, 75, .14);
    border-radius: 18px;
    background: rgba(255, 253, 247, .94);
    box-shadow: 0 24px 70px rgba(83, 65, 42, .12);
}

.account-content > h1 {
    margin: 0 0 8px;
    color: #29402f;
    font-size: clamp(34px, 5vw, 44px);
    font-weight: 800;
    letter-spacing: -1.8px;
    line-height: 1.1;
}

.account-intro {
    margin: 0;
    color: #68766d;
    font-size: 14px;
    line-height: 1.65;
}

.account-content .row,
.account-content [class*="col-"] {
    display: block;
    width: 100%;
    margin: 0;
}

.account-content h2,
.account-content h3 {
    margin: 8px 0 26px;
    color: #718077;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

.account-content hr {
    display: none;
}

.account-content form {
    margin-top: 26px;
}

.account-content .account-field {
    display: grid;
    gap: 7px;
    margin-bottom: 18px;
    color: #526157;
    font-size: 12px;
    font-weight: 800;
}

.account-checkbox { display: flex; align-items: center; gap: 8px; color: #59685d; font-size: 13px; }
.account-checkbox input { width: 16px; height: 16px; accent-color: #e46d42; }
.account-switch { margin: 24px 0 0; text-align: center; color: #68766d; font-size: 13px; }

.account-content .error,
.account-content .success {
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.account-content .error { color: #8e3e2a; background: #f4ded5; }
.account-content .success { color: #31583f; background: #e9f2e7; }

.account-content .form-floating,
.account-content .form-group,
.account-content .mb-3 {
    position: relative;
    margin-bottom: 18px;
}

.account-content .form-control,
.account-content input[type="email"],
.account-content input[type="password"],
.account-content input[type="text"],
.account-content textarea,
.account-content select {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 22px 15px 8px;
    border: 1px solid #cfcec4;
    border-radius: 8px;
    outline: none;
    color: #29402f;
    background: #fffefa;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

/* Override the floating-field padding used by the scaffolded identity pages. */
.account-content .account-field input {
    height: 54px;
    padding: 0 15px;
    line-height: 54px;
}

/* The application supplies one consistent, accessible reveal control. */
.account-content input::-ms-reveal,
.account-content input::-ms-clear { display: none; }
.account-content input[type="password"]::-webkit-credentials-auto-fill-button,
.account-content input[type="password"]::-webkit-textfield-decoration-container {
    visibility: hidden;
    pointer-events: none;
}

.account-content .form-control:focus,
.account-content input:focus,
.account-content textarea:focus,
.account-content select:focus {
    border-color: #df7048;
    box-shadow: 0 0 0 3px rgba(223, 112, 72, .14);
}

.account-content .form-floating > label {
    position: absolute;
    top: 7px;
    left: 15px;
    color: #78827a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    pointer-events: none;
}

.account-content .password-enhanced .form-control {
    padding-right: 72px;
}

.account-content .password-toggle {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 11px;
    width: auto;
    min-width: 50px;
    min-height: 28px;
    padding: 4px 7px;
    border: 0;
    border-radius: 5px;
    color: #526157;
    background: #edf2e9;
    box-shadow: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.account-content .password-toggle:hover,
.account-content .password-toggle:focus-visible {
    color: #a9492d;
    background: #f4ded5;
    box-shadow: 0 0 0 2px rgba(223, 112, 72, .18);
    transform: none;
}

.account-content .btn-primary,
.account-content button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 14px 20px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, #e9774e, #d95f38);
    box-shadow: 0 10px 24px rgba(164, 69, 35, .24);
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .01em;
    transition: transform .2s, box-shadow .2s, filter .2s;
}

.account-content .btn-primary:hover,
.account-content button[type="submit"]:hover {
    transform: translateY(-1px);
    filter: saturate(1.08) brightness(.96);
    box-shadow: 0 13px 28px rgba(164, 69, 35, .3);
}

.account-content button[type="submit"]:focus-visible {
    outline: 3px solid rgba(228, 109, 66, .25);
    outline-offset: 3px;
}

.account-content button[type="submit"]:disabled {
    cursor: wait;
    filter: grayscale(.25);
    opacity: .7;
    transform: none;
    box-shadow: none;
}

.account-content a {
    color: #bc5533;
    font-weight: 700;
    text-underline-offset: 3px;
}

.account-content form > div:last-child:not(.form-floating),
.account-content form > div:last-child p {
    font-size: 12px;
}

.account-content section > h3,
.account-content .col-md-6 {
    margin-top: 28px;
}

.account-content .text-danger,
.account-content .validation-message {
    display: block;
    margin-top: 5px;
    color: #b84232;
    font-size: 11px;
}

.account-content .alert {
    margin: 16px 0;
    padding: 13px 15px;
    border-radius: 8px;
    background: #f4ded5;
    color: #8e3e2a;
    font-size: 13px;
}

.account-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 9px;
    color: #617068;
    background: #edf2e9;
    font-size: 12px;
    line-height: 1.55;
}

.account-note span {
    color: #3d6848;
    font-size: 18px;
}

.account-note p {
    margin: 0;
}

.account-content .form-check-input {
    accent-color: #e46d42;
}

.account-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: .55;
    pointer-events: none;
}

.account-decoration-one {
    width: 300px;
    height: 300px;
    right: -110px;
    top: 110px;
    background: #edc264;
}

.account-decoration-two {
    width: 240px;
    height: 240px;
    left: -100px;
    bottom: 20px;
    background: #91b59a;
}

@media (max-width: 600px) {
    .account-header {
        height: 74px;
    }

    .account-content {
        width: calc(100% - 28px);
        margin-top: 20px;
        padding: 32px 22px;
        border-radius: 14px;
    }

    .account-nav { gap: 10px; }
    .account-home-link { display: none; }
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ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uMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}
/* The session control is server-rendered so logout remains a native, antiforgery-protected POST. */
.session-logout {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.session-logout button {
    border: 1px solid #31583f;
    border-radius: .5rem;
    background: #fffdf7;
    color: #31583f;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: .6rem 1rem;
}
