.fs-auth-open { overflow: hidden; }
.fs-auth-modal {
    --fs-auth-accent: #426739;
    border: 0;
    border-radius: 14px;
    padding: 0;
    width: min(480px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100dvh - 40px);
    margin: auto;
    color: #333;
    background: #fff;
    box-shadow: 0 24px 80px #0004;
    overflow-y: auto;
    overscroll-behavior: contain;
    font-family: inherit;
}
.fs-auth-modal:not([open]) { display: none; }
.fs-auth-modal::backdrop { background: rgb(17 25 16 / 58%); }
.fs-auth-heading { position: sticky; top: 0; z-index: 2; padding: 28px 32px 25px; background: #eef2eb; border-bottom: 1px solid #e3e9df; }
.fs-auth-eyebrow { display: block; margin-bottom: 6px; color: var(--fs-auth-accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.fs-auth-heading h2 { color: #263b23; font-size: 27px; font-weight: 600; line-height: 1.3; margin: 0; padding-right: 28px; }
.fs-auth-close { position: absolute; top: 22px; right: 20px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #426739; font-size: 27px; line-height: 1; }
.fs-auth-close:hover { background: #dfe8d9; }
.fs-auth-body { padding: 25px 32px 28px; }
.fs-auth-panel { font-size: 14px; line-height: 1.6; }
.fs-auth-panel .fs-auth-intro { color: #71766f; margin-bottom: 22px; }
.fs-auth-panel .col-form-label { color: #333; font-weight: 500; margin-bottom: 6px; padding: 0; }
.fs-auth-panel .form-control, .fs-auth-panel .form-select { min-height: 44px; border: 1px solid #dedede; border-radius: 5px; box-shadow: none; padding: 10px 12px; color: #333; font: inherit; background-color: #fff; }
.fs-auth-panel .form-control:focus, .fs-auth-panel .form-select:focus { border-color: #66895b; outline: 2px solid #66895b25; outline-offset: 1px; }
.fs-auth-panel input[readonly] { background: #f4f6f2; }
.fs-auth-panel .fs-auth-submit { display: block; width: 100%; min-height: 44px; margin-top: 20px; font: inherit; font-weight: 600; border-radius: 5px; }
.fs-auth-modal .fs-auth-submit { background: var(--fs-auth-accent); border-color: var(--fs-auth-accent); color: #fff; }
.fs-auth-modal .fs-auth-submit:hover { background: #304e29; border-color: #304e29; }
.fs-auth-panel .fs-auth-submit:disabled { opacity: .65; cursor: wait; }
.fs-auth-password { position: relative; }
.fs-auth-password .form-control { padding-right: 44px; }
.fs-auth-password button { position: absolute; right: 0; top: 0; height: 44px; width: 44px; border: 0; background: transparent; color: #777; }
.fs-auth-forgotten { text-align: right; margin-top: 10px; }
.fs-auth-panel a { color: #426739; }
.fs-auth-panel a:hover { text-decoration: underline; }
.fs-auth-social { margin-bottom: 20px; }
.fs-auth-panel .fs-google-button { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 16px; border: 1px solid #dadce0; border-radius: 5px; background: #fff; color: #3c4043; font-size: 14px; font-weight: 500; text-decoration: none; }
.fs-google-button svg { flex: 0 0 20px; }
.fs-auth-panel .fs-google-button:hover { border-color: #b9bfc4; background: #f8faff; text-decoration: none; }
.fs-auth-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0 0; color: #858985; font-size: 12px; }
.fs-auth-divider::before, .fs-auth-divider::after { content: ''; flex: 1; height: 1px; background: #e9e9e9; }
.fs-auth-switch { text-align: center; border-top: 1px solid #eee; padding-top: 20px; margin: 22px 0 0; color: #777; }
.fs-auth-switch a { font-weight: 600; margin-left: 4px; }
.fs-auth-message { padding: 12px 14px; margin-bottom: 18px; border: 1px solid #ebcdcd; border-radius: 5px; background: #fff4f4; color: #9b3131; }
.fs-auth-panel [hidden] { display: none !important; }
.fs-auth-panel .is-invalid { border-color: #c45050; }
.fs-auth-panel .invalid-feedback.d-block { display: block; color: #a53030; font-size: 12px; margin-top: 5px; }
.fs-auth-panel :focus-visible, .fs-auth-close:focus-visible { outline: 2px solid #66895b; outline-offset: 3px; }
.fs-auth-loading { padding: 42px 0; text-align: center; color: #777; }
.fs-auth-modal .row.mb-3 { display: block; margin: 0 0 16px; }
.fs-auth-modal .row.mb-3 > .col-sm-2, .fs-auth-modal .row.mb-3 > .col-sm-10 { width: 100%; padding-left: 0; padding-right: 0; }
.fs-auth-modal fieldset { margin-bottom: 22px; }
.fs-auth-modal legend { font-size: 16px; font-weight: 600; border: 0; padding-bottom: 8px; margin-bottom: 8px; color: #394c33; }
.fs-auth-modal .form-check-reverse { padding-right: 0; }
.fs-auth-modal .form-check-inline { display: flex; flex-direction: row-reverse; align-items: flex-start; text-align: left; gap: 10px; margin: 0; padding-left: 0; }
.fs-auth-modal .form-check-inline .form-check-input { position: static; float: none; flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0; }
.fs-auth-modal .form-check-label { font-size: 13px; }
@media (max-width: 575px) {
    .fs-auth-modal { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 12px; }
    .fs-auth-heading { padding: 24px; }
    .fs-auth-heading h2 { font-size: 25px; }
    .fs-auth-body { padding: 22px 24px 25px; }
    .fs-auth-panel .form-control, .fs-auth-panel .form-select { font-size: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
    .fs-auth-modal[open] { animation: fs-auth-enter .18s ease-out; }
    @keyframes fs-auth-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
