/* Only loaded by the two login overrides. Brand tokens live here. */
:root {
    --ab-bg: #0b1628;
    --ab-panel: #0a1526;
    --ab-field: #14253d;
    --ab-border: #344f70;
    --ab-text: #edf5ff;
    --ab-muted: #afc0d7;
    --ab-accent: #27c6ec;
}
html { min-height: 100%; }
body {
    margin: 0;
    color: var(--ab-text);
    background: var(--ab-bg) url('../Images/atrebits-background.jpg') center center / cover fixed no-repeat;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    color-scheme: dark;
}
body > .px-2.pt-2:empty { display: none; }
body > .px-2.pt-2 { position: relative; z-index: 2; }
body > .px-2.pt-2:not(:has(.alert)) { padding: 0 !important; }
.ab-shell { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 38px 20px; }
.ab-login { width: min(100%, 440px); }
.ab-brand {
    display: block;
    width: min(90%, 350px);
    padding: 10px 18px;
    margin: 0 auto 25px;
    border-radius: 12px;
    background: #edf5fc;
    box-shadow: 0 8px 38px #020b1b33;
}
.ab-brand img { display: block; width: 100%; height: auto; }
.ab-panel { padding: 32px 34px 28px; background: var(--ab-panel); border: 1px solid #29405c; border-radius: 18px; box-shadow: 0 20px 70px #02091566; }
.ab-heading { text-align: center; margin-bottom: 27px; }
.ab-eyebrow { font-size: 10px !important; font-weight: 600; letter-spacing: .19em; color: var(--ab-accent) !important; margin-bottom: 12px !important; }
.ab-heading h1 { font-size: 28px; font-weight: 650; letter-spacing: -.035em; margin: 0 0 10px; line-height: 1.2; color: var(--ab-text); }
.ab-heading p { font-size: 14px; line-height: 1.6; margin: 0; color: var(--ab-muted); text-wrap: balance; }
.ab-footer { text-align: center; color: #b7c8dc; font-size: 12px; line-height: 1.7; margin-top: 22px; }
.ab-footer span { padding: 0 5px; }
.ab-native > .container { width: 100%; max-width: none; padding: 0; margin: 0; }
.ab-native > .container > .row { display: block; margin: 0; }
.ab-native > .container > .row > [class*='col-'] { width: 100%; padding: 0; }
.ab-native .card { background: transparent; border: 0; border-radius: 0; color: var(--ab-text); margin: 0 !important; }
.ab-native .card-body { padding: 0; }
/* Native branding stays hidden even when JavaScript is disabled. */
.ab-native .card > a:has(.card-img-top),
.ab-native .card > a:first-child,
.ab-native .card-footer,
.ab-native .card-body > .card-text,
.ab-native a[href*='facturascripts.com'],
.ab-native a[href*='facebook.com'],
.ab-native a[href*='twitter.com'],
.ab-native a[href*='youtube.com'] { display: none !important; }
.ab-native .input-group-text { background: var(--ab-field); border-color: var(--ab-border); color: var(--ab-muted); }
.ab-native .form-control {
    min-height: 48px;
    border: 1px solid var(--ab-border);
    background: var(--ab-field);
    color: var(--ab-text);
    font: inherit;
    font-size: 15px;
    border-radius: 7px;
    padding: 11px 13px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.ab-native .form-control::placeholder { color: #9aafca; opacity: 1; }
.ab-native .form-control:focus { background: #172c47; border-color: #42c7ed; color: white; box-shadow: 0 0 0 3px #27c6ec30; }
.ab-native .form-control:-webkit-autofill { -webkit-text-fill-color: var(--ab-text); box-shadow: 0 0 0 100px var(--ab-field) inset; caret-color: white; }
.ab-native label.ab-label { display: block; font-size: 13px; font-weight: 500; line-height: 1.5; margin: 0 0 8px; color: #cedaea; }
.ab-native .mb-3 { margin-bottom: 20px !important; }
.ab-native .btn-link { font-size: 13px; color: #a5c8e8; padding: 13px 0 0; text-align: right; text-decoration: none; }
.ab-native .btn-link:hover { color: #63d5f7; text-decoration: underline; }
.ab-native .btn-primary {
    min-height: 48px;
    border: 1px solid #289cf1;
    border-radius: 7px;
    background: linear-gradient(105deg, #1166cd, #087dbe);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 5px 20px #087ac529;
    transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    margin: 2px 0 0 !important;
}
.ab-native .btn-primary:hover { background: linear-gradient(105deg, #1474e3, #098acb); border-color: #67d5ff; box-shadow: 0 7px 24px #087ac548; }
.ab-native .btn-primary:active { transform: translateY(1px); }
.ab-native .fa-beat { animation: none; }
.ab-native .ab-reveal { min-width: 48px; border: 1px solid var(--ab-border); background: var(--ab-field); color: #c9d9eb; border-radius: 0 7px 7px 0; padding: 8px; font-size: 12px; }
.ab-native .ab-reveal:hover { background: #213955; color: white; }
.ab-back { display: block; color: #a5c8e8; font-size: 13px; margin-top: 20px; text-align: center; }
.ab-skip { position: fixed; top: 10px; left: 10px; transform: translateY(-180%); background: white; color: #0b1628; padding: 10px 16px; border-radius: 6px; z-index: 1080; }
.ab-skip:focus { transform: none; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid #67d5ff !important; outline-offset: 4px; box-shadow: none !important; }
.ab-native .modal { color: var(--ab-text); }
.ab-native .modal-content { color: var(--ab-text); background: var(--ab-panel); border: 1px solid var(--ab-border); border-radius: 14px; }
.ab-native .modal-header, .ab-native .modal-footer { border-color: var(--ab-border); padding: 20px; }
.ab-native .modal-body { padding: 20px; }
.ab-native .modal-title { font-size: 19px; }
.ab-native .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.ab-recovery-note { color: var(--ab-muted); font-size: 14px; line-height: 1.6; margin: 0 0 20px; }
@media (max-width: 600px) {
    body { background-attachment: scroll; }
    .ab-shell { padding: 28px 18px; }
    .ab-panel { padding: 28px 24px 26px; border-radius: 14px; }
    .ab-brand { width: min(90%, 310px); margin-bottom: 22px; }
    .ab-heading h1 { font-size: 26px; }
}
@media (max-height: 650px) and (min-width: 601px) {
    .ab-shell { padding: 22px; }
    .ab-brand { width: 270px; margin-bottom: 18px; }
    .ab-panel { padding-top: 24px; padding-bottom: 24px; }
    .ab-heading { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
