.au-body {
    position: relative; display: flex; align-items: center; justify-content: center; min-height: 100vh; margin: 0; padding: 1.5rem;
    overflow-x: hidden; font-family: Nunito, -apple-system, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #3b5bdb 0%, #4e73df 50%, #6f8ff0 100%);
}
.au-body::before, .au-body::after { content: ""; position: fixed; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.au-body::before { width: 34rem; height: 34rem; top: -12rem; right: -10rem; }
.au-body::after  { width: 24rem; height: 24rem; bottom: -9rem; left: -7rem; }

.au-shell { position: relative; z-index: 1; width: 100%; max-width: 26rem; }
.au-brand { display: flex; align-items: center; justify-content: center; gap: .7rem; margin-bottom: 1.5rem; color: #fff; }
.au-brand-icon {
    display: flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: .8rem;
    background: rgba(255, 255, 255, .18); font-size: 1.15rem;
}
.au-brand-name { font-size: 1.25rem; font-weight: 800; }
.au-card { padding: 2.25rem 2rem; background: #fff; border-radius: 1.1rem; box-shadow: 0 1rem 3rem rgba(15, 23, 70, .3); }
.au-foot { margin: 1.25rem 0 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: .78rem; }

/* ---------- content ---------- */
.au-title { margin: 0 0 .35rem; text-align: center; font-size: 1.4rem; font-weight: 800; color: #2e2f3e; }
.au-subtitle { margin: 0 0 1.75rem; text-align: center; color: #858796; font-size: .9rem; }
.au-title:not(:has(+ .au-subtitle)) { margin-bottom: 1.75rem; }

.au-alert { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: 1.25rem; padding: .7rem .9rem; border-radius: .8rem; font-size: .85rem; font-weight: 600; }
.au-alert.is-success { background: #e3f7ef; color: #13855c; }
.au-alert.is-danger  { background: #fdebe9; color: #c0392b; }
.au-alert i { margin-top: .15rem; }

/* ---------- fields ---------- */
.au-field { margin-bottom: 1.1rem; }
.au-label { display: block; margin-bottom: .4rem; color: #5a5c69; font-size: .8rem; font-weight: 700; }
.au-input-wrap { position: relative; }
.au-input-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #b7b9cc; font-size: .9rem; pointer-events: none; }
.au-input {
    height: auto; padding: .75rem 1rem; border: 1px solid #e3e6f0; border-radius: .8rem; background: #f8f9fc; font-size: .95rem;
}
.au-input.has-icon   { padding-left: 2.75rem; }
.au-input.has-toggle { padding-right: 2.9rem; }
.au-input:focus { background: #fff; border-color: #bac8f3; box-shadow: 0 0 0 .2rem rgba(78, 115, 223, .15); }
.au-input.is-invalid { border-color: #e74a3b; background-image: none; }
.au-input.is-invalid:focus { box-shadow: 0 0 0 .2rem rgba(231, 74, 59, .15); }
.au-input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fff inset; }

.au-toggle {
    position: absolute; right: .45rem; top: 50%; transform: translateY(-50%); width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%;
    background: transparent; color: #b7b9cc; cursor: pointer; transition: all .15s;
}
.au-toggle:hover { background: #eef1fb; color: #4e73df; }
.au-error { display: flex; align-items: center; gap: .4rem; margin-top: .4rem; color: #e74a3b; font-size: .8rem; font-weight: 600; }

.au-check { display: flex; align-items: center; gap: .55rem; margin: 0 0 1.25rem; color: #5a5c69; font-size: .85rem; cursor: pointer; }
.au-check input { width: 1rem; height: 1rem; accent-color: #4e73df; }

/* ---------- actions ---------- */
.au-btn {
    display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; padding: .8rem 1rem; border: 0; border-radius: 50rem;
    background: linear-gradient(135deg, #4e73df, #3b5bdb); color: #fff; font-size: .95rem; font-weight: 800;
    box-shadow: 0 .4rem 1rem rgba(78, 115, 223, .35); cursor: pointer; transition: all .15s;
}
.au-btn:hover { transform: translateY(-1px); box-shadow: 0 .6rem 1.3rem rgba(78, 115, 223, .45); }
.au-btn:disabled { opacity: .7; cursor: progress; transform: none; }
.au-links { margin-top: 1.25rem; text-align: center; font-size: .85rem; }
.au-links a { color: #4e73df; font-weight: 700; }

.au-subtitle { line-height: 1.6; }   /* replaces the existing .au-subtitle rule's missing line-height */

.au-hero-icon {
    display: flex; align-items: center; justify-content: center; width: 3.4rem; height: 3.4rem; margin: 0 auto 1.1rem;
    border-radius: 1rem; background: #e8edfc; color: #4e73df; font-size: 1.4rem;
}
.au-divider { margin: 1.5rem 0 1rem; border: 0; border-top: 1px solid #f1f3f9; }
.au-link-btn { padding: 0; border: 0; background: none; color: #4e73df; font-size: .85rem; font-weight: 700; cursor: pointer; }
.au-link-btn:hover { text-decoration: underline; }

/* htmx spinner: collapsed until a request is in flight */
.au-btn .htmx-indicator { display: none; width: 1rem; height: 1rem; border-width: .15em; }
.au-btn .htmx-indicator.htmx-request { display: inline-block; }