/*
 * AffTrack admin UI v2 - shell + legacy page reskin
 * Pilot: 2026-09-28 (instance 191 only, see public/admin/index.php "UI v2 pilot").
 *
 * Layers, in load order:
 *   1. vendor Bootstrap 5.3.8
 *   2. tpl/admin/style.min.css      (legacy, Smarty-generated, per-instance colors)
 *   3. legacy-grid.css              (BS3 float grid scoped to .at-legacy)
 *   4. this file                    (tokens, shell, legacy reskin, BS3 compat)
 *
 * Brand tokens (--at-brand, --at-brand-rgb) are set per instance by template.tpl
 * from partners_color_scheme.c_button_bg.
 */

:root {
    --at-brand: #3246c2;
    --at-brand-rgb: 50, 70, 194;
    --at-brand-contrast: #ffffff;
    --at-bg: #f4f5f7;
    --at-surface: #ffffff;
    --at-surface-2: #f8f9fb;
    --at-border: #e3e6ea;
    --at-border-strong: #cfd4da;
    --at-text: #1d2330;
    --at-text-muted: #667085;
    --at-danger: #c62828;
    --at-sidebar-w: 248px;
    --at-topbar-h: 58px;
    --at-radius: 10px;
    --at-radius-sm: 6px;
    --at-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --at-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-primary: var(--at-brand);
    --bs-primary-rgb: var(--at-brand-rgb);
    --bs-link-color: var(--at-brand);
    --bs-link-color-rgb: var(--at-brand-rgb);
    --bs-link-hover-color: var(--at-brand);
    --bs-body-font-family: var(--at-font);
    --bs-body-font-size: .875rem;
    --bs-body-color: var(--at-text);
}

/* ------------------------------------------------------------------ */
/* Page frame                                                          */
/* ------------------------------------------------------------------ */

html, body.at-v2 {
    height: auto;
    min-height: 100%;
}

body.at-v2 {
    background: var(--at-bg) !important;
    background-image: none !important;
    font-family: var(--at-font) !important;
    font-size: .875rem !important;
    color: var(--at-text);
    margin: 0;
}

.at-shell {
    display: flex;
    min-height: 100vh;
}

/* Sidebar ----------------------------------------------------------- */

.at-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--at-sidebar-w);
    background: var(--at-surface);
    border-right: 1px solid var(--at-border);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform .2s ease;
}

.at-sidebar-brand {
    height: var(--at-topbar-h);
    display: flex;
    align-items: center;
    padding: 0 18px;
    border-bottom: 1px solid var(--at-border);
    flex-shrink: 0;
}

.at-sidebar-brand img {
    max-height: 36px;
    max-width: 180px;
    width: auto;
}

.at-sidebar-brand .at-dev-badge {
    margin-left: auto;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #fff;
    background: var(--at-danger);
    border-radius: 4px;
    padding: 2px 6px;
}

.at-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 10px 10px 24px;
}

.at-nav-home {
    margin-bottom: 6px;
}

.at-nav-group + .at-nav-group {
    margin-top: 2px;
}

.at-nav-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 0;
    border-radius: var(--at-radius-sm);
    padding: 8px 10px;
    color: var(--at-text);
    font-weight: 600;
    font-size: .8125rem;
    text-align: left;
    cursor: pointer;
}

.at-nav-group-toggle:hover {
    background: var(--at-surface-2);
}

.at-nav-group-toggle .at-nav-icon {
    width: 18px;
    text-align: center;
    color: var(--at-text-muted);
}

.at-nav-group-toggle .at-caret {
    margin-left: auto;
    font-size: .6875rem;
    color: var(--at-text-muted);
    transition: transform .15s ease;
}

.at-nav-group-toggle[aria-expanded="true"] .at-caret {
    transform: rotate(90deg);
}

.at-nav-items {
    list-style: none;
    margin: 2px 0 6px;
    padding: 0;
}

.at-nav a.at-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 38px;
    border-radius: var(--at-radius-sm);
    color: #3b4252;
    text-decoration: none;
    font-size: .8125rem;
    line-height: 1.35;
}

.at-nav a.at-nav-home-link {
    padding-left: 10px;
    font-weight: 600;
    color: var(--at-text);
}

.at-nav a.at-nav-home-link i {
    width: 18px;
    text-align: center;
    color: var(--at-text-muted);
}

.at-nav a.at-nav-link:hover {
    background: var(--at-surface-2);
    color: var(--at-text);
}

.at-nav a.at-nav-link.active {
    background: rgba(var(--at-brand-rgb), .10);
    color: var(--at-brand);
    font-weight: 600;
}

.at-sidebar-foot {
    border-top: 1px solid var(--at-border);
    padding: 10px 18px;
    font-size: .75rem;
    color: var(--at-text-muted);
    flex-shrink: 0;
}

.at-sidebar-foot a {
    color: var(--at-text-muted);
}

/* Main column ------------------------------------------------------- */

.at-main {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: var(--at-sidebar-w);
    display: flex;
    flex-direction: column;
}

.at-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--at-topbar-h);
    background: var(--at-surface);
    border-bottom: 1px solid var(--at-border);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
}

.at-sidebar-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.125rem;
    color: var(--at-text);
    padding: 6px;
}

.at-search {
    position: relative;
    flex: 0 1 420px;
}

.at-search i {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--at-text-muted);
    font-size: .8125rem;
    pointer-events: none;
}

.at-topbar .at-search input[type="text"] {
    width: 100%;
    height: 36px;
    padding: 6px 12px 6px 32px;
    background: var(--at-surface-2);
    border: 1px solid var(--at-border);
    border-radius: 8px;
    box-shadow: none;
    font-size: .8125rem;
    color: var(--at-text);
}

.at-topbar .at-search input[type="text"]:focus {
    outline: none;
    background: var(--at-surface);
    border-color: var(--at-brand);
    box-shadow: 0 0 0 3px rgba(var(--at-brand-rgb), .15);
}

.at-topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.at-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #475467;
    text-decoration: none;
    background: none;
    border: 0;
}

.at-icon-btn:hover {
    background: var(--at-surface-2);
    color: var(--at-text);
}

.at-icon-btn i {
    font-size: 1rem;
}

.at-icon-btn .at-count {
    position: absolute;
    top: -3px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--at-danger);
    color: #fff;
    font-size: .625rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    border: 2px solid var(--at-surface);
    box-sizing: content-box;
}

.at-topbar-sep {
    width: 1px;
    height: 24px;
    background: var(--at-border);
    margin: 0 8px;
}

.at-user {
    position: relative;
}

.at-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 0;
    border-radius: 8px;
    padding: 4px 8px;
    color: var(--at-text);
}

.at-user-btn:hover {
    background: var(--at-surface-2);
}

.at-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(var(--at-brand-rgb), .12);
    color: var(--at-brand);
    font-weight: 700;
    font-size: .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.at-user-name {
    font-weight: 600;
    font-size: .8125rem;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.at-user-menu {
    min-width: 260px;
    font-size: .8125rem;
}

.at-user-menu .at-user-meta {
    padding: 8px 16px 10px;
    color: var(--at-text-muted);
    font-size: .75rem;
    line-height: 1.6;
}

.at-user-menu .at-clocks {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    padding: 6px 16px 10px;
    font-size: .75rem;
    color: var(--at-text-muted);
}

.at-user-menu .at-clocks span:nth-child(even) {
    color: var(--at-text);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* Content ----------------------------------------------------------- */

.at-content {
    flex: 1 1 auto;
    padding: 20px 24px 32px;
    min-width: 0;
}

.at-alert-system {
    border-radius: var(--at-radius);
    border: 1px solid #f1b5b5;
    background: #fdecec;
    color: #7a1a1a;
    padding: 14px 18px;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.at-alert-system h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.at-alert-system form {
    margin-left: auto;
    flex-shrink: 0;
}

.at-alert-invoice {
    border-radius: var(--at-radius);
    border: 1px solid #f5d38a;
    background: #fff8e6;
    color: #6b4a00;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.at-alert-invoice h3 {
    font-size: .9375rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.at-page {
    background: var(--at-surface);
    border: 1px solid var(--at-border);
    border-radius: var(--at-radius);
    box-shadow: var(--at-shadow);
    padding: 18px 20px;
    min-width: 0;
    overflow-x: auto;
}

.at-classic-link {
    font-size: .75rem;
}

/* Mobile ------------------------------------------------------------ */

.at-backdrop {
    display: none;
}

@media (max-width: 991.98px) {
    .at-sidebar {
        transform: translateX(-100%);
        box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    }

    body.at-nav-open .at-sidebar {
        transform: translateX(0);
    }

    body.at-nav-open .at-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(16, 24, 40, .35);
        z-index: 1035;
    }

    .at-main {
        margin-left: 0;
    }

    .at-sidebar-toggle {
        display: inline-flex;
    }

    .at-user-name {
        display: none;
    }

    .at-search {
        flex: 1 1 auto;
    }

    .at-content {
        padding: 14px 12px 24px;
    }

    .at-page {
        padding: 14px 12px;
    }
}

/* ------------------------------------------------------------------ */
/* Login                                                               */
/* ------------------------------------------------------------------ */

.at-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.at-login-card {
    width: 100%;
    max-width: 440px;
    background: var(--at-surface);
    border: 1px solid var(--at-border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .08);
    padding: 28px 28px 24px;
}

.at-login-logo {
    text-align: center;
    margin-bottom: 18px;
}

.at-login-logo img {
    max-height: 64px;
    max-width: 220px;
}

.at-login-card legend {
    font-size: 1.125rem !important;
    font-weight: 700;
    text-align: center;
    margin-bottom: 18px !important;
}

.at-login-card .form-group {
    display: block;
}

.at-login-card .form-group > [class*="col-"] {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    text-align: left !important;
}

.at-login-card input[type="text"],
.at-login-card input[type="password"],
.at-login-card input[type="email"] {
    width: 100%;
}

.at-login-card input[type="submit"],
.at-login-card button[type="submit"] {
    width: 100%;
    margin-top: 6px;
}

.at-login-card [class*="col-md-offset"],
.at-login-card [class*="col-sm-offset"] {
    margin-left: 0 !important;
}

/* ------------------------------------------------------------------ */
/* Legacy page content reskin (.at-legacy wraps every page template)   */
/* ------------------------------------------------------------------ */

.at-legacy {
    color: var(--at-text);
    font-size: .875rem;
    line-height: 1.5;
}

.at-legacy a {
    color: var(--at-brand);
    text-decoration: none;
}

.at-legacy a:hover {
    text-decoration: underline;
}

.at-legacy h1, .at-legacy h2, .at-legacy h3 {
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--at-text);
}

.at-legacy h1 { font-size: 1.5rem; }
.at-legacy h2 { font-size: 1.25rem; }
.at-legacy h3 { font-size: 1.0625rem; }
.at-legacy h4 { font-size: .9375rem; font-weight: 600; }

.at-legacy legend {
    float: none;
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.at-legacy hr {
    border-color: var(--at-border);
    opacity: 1;
}

/* Form controls ----------------------------------------------------- */

.at-legacy input[type="text"],
.at-legacy input[type="password"],
.at-legacy input[type="email"],
.at-legacy input[type="number"],
.at-legacy input[type="search"],
.at-legacy input[type="url"],
.at-legacy input[type="tel"],
.at-legacy input[type="date"],
.at-legacy input:not([type]),
.at-legacy select,
.at-legacy textarea,
.at-login-card input[type="text"],
.at-login-card input[type="password"],
.at-login-card input[type="email"] {
    background: var(--at-surface) !important;
    border: 1px solid var(--at-border-strong) !important;
    border-radius: var(--at-radius-sm);
    box-shadow: none !important;
    padding: 5px 9px;
    min-height: 32px;
    font-size: .8125rem;
    color: var(--at-text);
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}

.at-legacy input[type="text"]:focus,
.at-legacy input[type="password"]:focus,
.at-legacy input[type="email"]:focus,
.at-legacy input[type="number"]:focus,
.at-legacy input[type="search"]:focus,
.at-legacy input[type="url"]:focus,
.at-legacy input[type="tel"]:focus,
.at-legacy input[type="date"]:focus,
.at-legacy input:not([type]):focus,
.at-legacy select:focus,
.at-legacy textarea:focus,
.at-login-card input:focus {
    outline: none;
    border-color: var(--at-brand) !important;
    box-shadow: 0 0 0 3px rgba(var(--at-brand-rgb), .15) !important;
}

.at-legacy select {
    padding-right: 26px;
}

.at-legacy input[type="submit"],
.at-legacy input[type="button"],
.at-legacy button:not([class]),
.at-legacy button.dropbtn,
.at-legacy .link_button,
.at-login-card input[type="submit"],
.at-login-card button[type="submit"] {
    background: var(--at-brand) !important;
    background-image: none !important;
    filter: none !important;
    color: var(--at-brand-contrast) !important;
    border: 1px solid var(--at-brand) !important;
    border-radius: var(--at-radius-sm) !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-family: inherit !important;
    font-size: .8125rem !important;
    font-weight: 600 !important;
    padding: 5px 14px !important;
    min-height: 32px;
    cursor: pointer;
    transition: filter .15s;
}

.at-legacy input[type="submit"]:hover,
.at-legacy input[type="button"]:hover,
.at-legacy button:not([class]):hover,
.at-legacy .link_button:hover,
.at-login-card input[type="submit"]:hover,
.at-login-card button[type="submit"]:hover {
    filter: brightness(.92) !important;
    text-decoration: none;
}

.at-legacy input[type="submit"]:active,
.at-legacy input[type="button"]:active {
    top: 0 !important;
    filter: brightness(.86) !important;
}

/* Tables ------------------------------------------------------------ */

.at-legacy table {
    border-collapse: collapse;
}

.at-legacy th {
    background: var(--at-surface-2);
    color: #475467;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 8px 10px;
    border-bottom: 1px solid var(--at-border);
    white-space: nowrap;
}

.at-legacy tr.even td,
.at-legacy tr.odd td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--at-border);
    color: var(--at-text);
}

.at-legacy tr.even td {
    background: var(--at-surface-2);
}

.at-legacy tr.odd td {
    background: var(--at-surface);
}

.at-legacy tr.even:hover td,
.at-legacy tr.odd:hover td {
    background: rgba(var(--at-brand-rgb), .05);
}

/* DataTables tables get Bootstrap table classes from admin-v2.js */
.at-legacy table.dataTable {
    margin: 0 !important;
}

.at-legacy div.dt-container {
    font-size: .8125rem;
}

/* DataTables builds its own Bootstrap 5 rows; undo the legacy float grid for them */
.at-legacy .dt-container .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
}

.at-legacy .dt-container .row::before,
.at-legacy .dt-container .row::after {
    content: none;
}

.at-legacy .dt-container .row > * {
    padding-left: 0;
    padding-right: 0;
}

.at-legacy .dt-container .dt-layout-row {
    margin: 8px 0;
    gap: 8px;
}

/* Notices ----------------------------------------------------------- */

.at-legacy .admin_notice {
    border: 1px solid #f5d38a !important;
    background: #fff8e6 !important;
    border-radius: var(--at-radius) !important;
    padding: 12px 16px;
}

/* ------------------------------------------------------------------ */
/* Bootstrap 3 compatibility inside legacy pages                        */
/* ------------------------------------------------------------------ */

.at-legacy .hidden {
    display: none !important;
}

.at-legacy .label {
    display: inline-block;
    padding: .2em .55em;
    font-size: .75em;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 999px;
    background: #eef0f3;
    color: #344054 !important;
}

.at-legacy .label-success { background: #e3f4e8; color: #1e6b36 !important; }
.at-legacy .label-warning { background: #fff2d6; color: #8a5a00 !important; }
.at-legacy .label-danger  { background: #fde7e7; color: #a11c1c !important; }
.at-legacy .label-info    { background: #e3f1fb; color: #155a8a !important; }
.at-legacy .label-primary { background: rgba(var(--at-brand-rgb), .12); color: var(--at-brand) !important; }

.at-legacy .badge:not([class*="bg-"]):not([class*="text-bg-"]) {
    background: #667085;
    color: #fff;
}

.at-legacy .panel {
    background: var(--at-surface);
    border: 1px solid var(--at-border);
    border-radius: var(--at-radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.at-legacy .panel-heading {
    background: var(--at-surface-2);
    border-bottom: 1px solid var(--at-border);
    padding: 10px 14px;
    font-weight: 600;
}

.at-legacy .panel-body {
    padding: 14px;
}

.at-legacy .panel-footer {
    background: var(--at-surface-2);
    border-top: 1px solid var(--at-border);
    padding: 10px 14px;
}

.at-legacy .well {
    background: var(--at-surface-2);
    border: 1px solid var(--at-border);
    border-radius: var(--at-radius);
    padding: 14px;
    margin-bottom: 16px;
}

.at-legacy .btn-default {
    --bs-btn-color: #344054;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: var(--at-border-strong);
    --bs-btn-hover-color: #1d2330;
    --bs-btn-hover-bg: var(--at-surface-2);
    --bs-btn-hover-border-color: var(--at-border-strong);
    --bs-btn-active-bg: #eef0f3;
    --bs-btn-active-border-color: var(--at-border-strong);
}

.at-legacy .btn-xs {
    --bs-btn-padding-y: .1rem;
    --bs-btn-padding-x: .4rem;
    --bs-btn-font-size: .75rem;
    --bs-btn-border-radius: 4px;
}

.at-legacy .form-group {
    margin-bottom: 12px;
}

.at-legacy .control-label {
    font-weight: 600;
    padding-top: 6px;
}

.at-legacy .form-horizontal .form-group::after {
    content: "";
    display: table;
    clear: both;
}

.at-legacy .input-group-addon {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: var(--at-surface-2);
    border: 1px solid var(--at-border-strong);
    border-radius: var(--at-radius-sm);
    font-size: .8125rem;
}

.at-legacy .img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

.at-legacy .center-block {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.at-legacy .table-condensed > :not(caption) > * > * {
    padding: .3rem .4rem;
}

.at-legacy .nav-tabs {
    margin-bottom: 12px;
}

/* jQuery UI --------------------------------------------------------- */

.ui-widget {
    font-family: var(--at-font) !important;
    font-size: .8125rem !important;
}

.ui-datepicker {
    border-radius: var(--at-radius) !important;
    border: 1px solid var(--at-border) !important;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
    padding: 6px !important;
    z-index: 1060 !important;
}

.ui-datepicker .ui-datepicker-header {
    background: none !important;
    border: 0 !important;
}

.ui-datepicker .ui-state-active,
.ui-datepicker .ui-state-active:hover {
    background: var(--at-brand) !important;
    border-color: var(--at-brand) !important;
    color: #fff !important;
}

.ui-autocomplete {
    z-index: 1060 !important;
    max-height: 360px;
    overflow-y: auto;
    border-radius: 8px !important;
    border: 1px solid var(--at-border) !important;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
    padding: 4px !important;
}

.ui-autocomplete .ui-menu-item-wrapper {
    border-radius: 6px;
    padding: 6px 10px !important;
    border: 0 !important;
}

.ui-autocomplete .ui-state-active {
    background: rgba(var(--at-brand-rgb), .10) !important;
    color: var(--at-text) !important;
    margin: 0 !important;
}

.ui-dialog {
    border-radius: var(--at-radius) !important;
    box-shadow: 0 16px 40px rgba(16, 24, 40, .18);
    z-index: 1070 !important;
}

.ui-dialog .ui-dialog-titlebar {
    background: var(--at-surface-2) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--at-border) !important;
    border-radius: var(--at-radius) var(--at-radius) 0 0 !important;
}

/* ------------------------------------------------------------------ */
/* Login, modernized form (tpl/admin_v2/login.tpl inside .at-modern)   */
/* Appended 2026-09-29. Restores Bootstrap 5 buttons/inputs that the   */
/* .at-login-card legacy rules above force to one look.                */
/* ------------------------------------------------------------------ */

.at-login-card .at-modern {
    font-size: .875rem;
}

.at-login-card .at-modern .at-login-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -.01em;
    text-align: center;
    margin: 0 0 4px;
    color: var(--at-text);
}

.at-login-card .at-modern .at-login-sub {
    text-align: center;
    color: var(--at-text-muted);
    margin: 0 0 18px;
}

.at-login-card .at-modern .at-login-title + .mb-3 {
    margin-top: 18px;
}

.at-login-card .at-modern .form-label {
    font-weight: 600;
    font-size: .8125rem;
    margin-bottom: 4px;
}

.at-login-card .at-modern .form-control {
    padding: .5rem .75rem;
    min-height: 40px;
    font-size: .9375rem;
}

.at-login-card .at-modern .form-control[readonly] {
    background: var(--at-surface-2) !important;
    color: var(--at-text-muted);
}

.at-login-card .at-modern .btn {
    width: 100%;
    margin-top: 0;
    min-height: 40px;
    padding: .5rem 1rem !important;
    font-size: .875rem !important;
    background: var(--bs-btn-bg) !important;
    color: var(--bs-btn-color) !important;
    border: var(--bs-btn-border-width) solid var(--bs-btn-border-color) !important;
    border-radius: var(--at-radius-sm) !important;
}

.at-login-card .at-modern .btn.text-danger {
    color: #b42318 !important;
}

.at-login-card .at-modern .btn-link.at-login-link {
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-color: var(--at-brand);
    min-height: 0;
    font-weight: 500 !important;
    text-decoration: none;
    padding: .25rem !important;
}

.at-login-card .at-modern .btn-link.at-login-link:hover {
    filter: none !important;
    text-decoration: underline;
}

.at-login-card .at-modern .alert {
    font-size: .8125rem;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.at-login-card .at-modern .at-login-ip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--at-border);
    border-radius: var(--at-radius-sm);
    background: var(--at-surface-2);
}

.at-login-card .at-modern .at-login-ip-label {
    color: var(--at-text-muted);
    font-size: .8125rem;
}

.at-login-card .at-modern .at-login-ip code {
    font-size: .9375rem;
    color: var(--at-text);
}

.at-login-card .at-modern .at-login-note {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--at-border);
    color: var(--at-text-muted);
    font-size: .75rem;
    text-align: center;
}
