@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    color-scheme: dark;
    --bs-dark: #0f1116;
    --bs-dark-rgb: 15, 17, 22;
    --bs-secondary: #161a22;
    --bs-secondary-rgb: 22, 26, 34;
    --bs-tertiary: #121824;
    --bs-primary: #18c29c;
    --bs-success: #22c55e;
    --bs-danger: #f97316;
    --bs-warning: #f59e0b;
    --bs-info: #38bdf8;
    --bs-muted: #94a3b8;
    --bs-text: #e2e8f0;
    --bs-body-color: var(--bs-text);
    --bs-body-color-rgb: 226, 232, 240;
    --bs-secondary-color: var(--bs-muted);
    --bs-secondary-color-rgb: 148, 163, 184;
    --surface: #10151f;
    --surface-2: #141b27;
    --border: rgba(226, 232, 240, 0.08);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    --font-sans: 'Space Grotesk', system-ui, sans-serif;
    --font-size-base: 14px;
    --font-size-sm: 13px;
    --font-size-xs: 12px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --line-height-base: 1.4;
    --line-height-heading: 1.2;
    --button-font-size: var(--font-size-base);
    --button-font-size-sm: var(--font-size-xs);
}

html,
body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
}

body {
    background: radial-gradient(circle at top, #151a22 0%, #0f1116 50%, #0b0e14 100%);
    color: var(--bs-text);
}

/* Shell layout aligned with other apps */
.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 280px;
    flex: 0 0 280px;
    background: linear-gradient(180deg, #121926 0%, #0f1521 60%, #0b111b 100%);
    border-right: 1px solid var(--border);
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 30;
    transition: width .22s ease, transform .2s ease, padding .22s ease;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(20, 200, 162, 0.25), rgba(56, 189, 248, 0.15));
    border: 1px solid rgba(20, 200, 162, 0.45);
    color: #53e8ca;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.brand-mark-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-title {
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--bs-primary);
    font-size: 0.9rem;
    line-height: 1.05;
}

.brand-sub {
    font-size: 0.52rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6d7c93;
}

.sidebar-toggle {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid #253246;
    background: linear-gradient(180deg, #192335, #121b2b);
    color: #c8d8f2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.sidebar-toggle .icon,
.mobile-menu-toggle .icon,
.sidebar-link .icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    overflow: visible;
}

.sidebar-toggle:hover {
    background: linear-gradient(180deg, #22324b, #18263a);
    border-color: #2f425f;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    color: #c5d4ea;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.sidebar-link .icon {
    color: #26d9b8;
}

.sidebar-link:hover {
    background: #151f30;
    border-color: #23324a;
    color: #ecf4ff;
}

.sidebar-link.active {
    background: #1b2639;
    border-color: #2a3b59;
    color: #ffffff;
}

.app-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 26px;
    border-bottom: 1px solid var(--border);
    background: rgba(15, 20, 31, 0.88);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-title {
    font-weight: 600;
    color: var(--bs-primary);
    font-size: 1rem;
    line-height: var(--line-height-heading);
}

.topbar-subtitle {
    font-size: 0.88rem;
    color: var(--bs-muted);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.desktop-only {
    display: flex;
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(20, 200, 162, 0.6);
    background: rgba(20, 200, 162, 0.12);
    color: var(--bs-primary);
    align-items: center;
    justify-content: center;
    padding: 0;
}

.app-main {
    padding: 20px 26px 28px;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 13, 0.56);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 25;
}

.sidebar-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.app-sidebar.is-collapsed {
    width: 84px;
    flex-basis: 84px;
    padding: 18px 10px;
}

.app-sidebar.is-collapsed .brand-copy,
.app-sidebar.is-collapsed .sidebar-link span,
.app-sidebar.is-collapsed .logout-mobile {
    display: none;
}

.app-sidebar.is-collapsed .sidebar-top,
.app-sidebar.is-collapsed .sidebar-link {
    justify-content: center;
}

.app-sidebar.is-collapsed .sidebar-toggle {
    transform: rotate(180deg);
}

.text-muted,
.text-body-secondary {
    color: var(--bs-muted) !important;
}

body.login-page {
    background: radial-gradient(circle at top, #151a22 0%, #0f1116 50%, #0b0e14 100%);
}

body.app-page {
    background: radial-gradient(circle at top, #151a22 0%, #0f1116 50%, #0b0e14 100%);
}

a {
    color: var(--bs-primary);
    text-decoration: none;
}

a:hover {
    color: #14a985;
}

.navbar {
    background: rgba(15, 17, 22, 0.95) !important;
    border-bottom: 1px solid var(--border);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--bs-primary) !important;
}
.brand-title {
    font-size: 0.9rem;
    line-height: 1.05;
}
.brand-sub {
    font-size: 0.52rem;
    letter-spacing: 0.14em;
    color: #6d7c93;
}

.nav-link {
    color: var(--bs-muted) !important;
    border-radius: 10px;
    padding: 6px 12px;
}

.nav-link.active,
.nav-link:hover {
    color: var(--bs-text) !important;
    background: rgba(24, 194, 156, 0.18);
}
.user-pill {
    padding: 6px 10px;
    border-radius: 12px;
    background: #12202a;
    color: var(--bs-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Copied signout pattern from eqr */
.logout-account {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.logout-account .user-pill {
    width: auto;
    text-align: left;
}

.logout-mobile {
    margin-top: auto;
    padding-top: 16px;
    display: none;
    text-align: center;
}

.logout-mobile .btn,
.logout-mobile .logout-button,
.logout-mobile.logout-button {
    width: 100%;
}

.logout-mobile .btn {
    font-size: 0.85rem;
    padding: 0.85rem 1.25rem;
    letter-spacing: 0.02em;
}

.btn.ghost.wide,
button.ghost.wide {
    width: 100%;
}

.logout-mobile .logout-button,
.ghost.logout-button {
    border: 1px solid #2b3b53;
    background: #131d2d;
    color: #cbd8ea;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ghost.logout-button:hover,
.logout-mobile .logout-button:hover {
    background: linear-gradient(90deg, #ff8c8c, #f25f7d);
    border-color: #f25f7d;
    color: #2b0a0f;
}

.logout-button,
.ghost.logout-button,
.btn.logout-button,
.logout-mobile.logout-button,
.logout-mobile .logout-button,
.logout-mobile .btn.logout-button {
    border-radius: 12px !important;
}

.logout-mobile .sidebar-user {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
}
.user-menu {
    background: #0f1116;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px;
    min-width: 180px;
}
.user-menu .dropdown-item {
    color: var(--bs-text);
    font-weight: 500;
}
.user-menu .dropdown-item:hover,
.user-menu .dropdown-item:focus {
    background: rgba(24, 194, 156, 0.16);
    color: var(--bs-text);
}
.dropdown-divider {
    border-top: 1px solid var(--border);
    margin: 6px 0;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.card-shadow {
    box-shadow: var(--shadow);
}

.card-compact .card-body {
    padding: 14px;
}

.card-header {
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    color: var(--bs-text);
}

.section-separator {
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

.section-title {
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--bs-primary);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: var(--bs-primary);
    line-height: var(--line-height-heading);
}

h1,
.h1 { font-size: 2rem; }
h2,
.h2 { font-size: 1.5rem; }
h3,
.h3 { font-size: 1.17rem; }
h4,
.h4 { font-size: 1rem; }

.table {
    color: var(--bs-text);
    background-color: var(--surface);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
}

.table-responsive {
    border-radius: 10px;
    background: var(--surface);
}

.table thead th {
    color: var(--bs-muted);
    border-bottom-color: var(--border);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--surface-2);
    padding: 10px 12px;
}
.table tbody td,
.table tbody th {
    padding: 10px 12px;
}
.table tbody tr:last-child > * {
    border-bottom: 0;
}
.table tbody td {
    color: var(--bs-text);
}
.table tbody tr:nth-of-type(odd) td {
    color: var(--bs-text);
}

.table > :not(caption) > * > * {
    border-color: var(--border);
    background-color: var(--surface);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(255, 255, 255, 0.02);
}

.table tbody tr:hover > * {
    background-color: rgba(56, 189, 248, 0.08);
    color: var(--bs-text);
}

.sticky-savebar {
    position: sticky;
    bottom: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 12px 0;
    margin-top: 24px;
    z-index: 10;
}

.sticky-savebar-inner {
    padding: 0 1.25rem;
}

.accordion-button {
    font-weight: 600;
}

.accordion-body .section-title {
    color: var(--bs-primary);
}

.accordion {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
}

.accordion-item {
    background: var(--surface);
    border: 0;
}

.accordion-item + .accordion-item {
    border-top: 1px solid var(--border);
}

.accordion-button {
    background: var(--surface-2);
    color: var(--bs-text);
}

.accordion-button:not(.collapsed) {
    background: var(--surface-2);
    color: var(--bs-text);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(24, 194, 156, 0.2);
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-body {
    background: var(--surface);
    color: var(--bs-text);
}

.list-group-item {
    background: transparent;
    border-color: var(--border);
    color: var(--bs-text);
}

.form-label {
    color: var(--bs-muted);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.form-control,
.form-select {
    background-color: var(--bs-tertiary);
    border-color: var(--border);
    color: var(--bs-text);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(24, 194, 156, 0.9);
    box-shadow: 0 0 0 0.2rem rgba(24, 194, 156, 0.2);
    background-color: var(--bs-tertiary);
    color: var(--bs-text);
}

.form-control::placeholder {
    color: var(--bs-muted);
}

input[type="file"].form-control {
    background-color: var(--bs-tertiary);
    color: var(--bs-text);
}

input[type="file"].form-control::file-selector-button {
    background: var(--bs-primary);
    border: 0;
    color: #0f1116;
    padding: 0.375rem 0.75rem;
    margin: 0;
    margin-right: 0.75rem;
    border-radius: 8px;
}

input[type="file"].form-control::file-selector-button:hover {
    background: #14a985;
}

input.form-control:-webkit-autofill,
input.form-control:-webkit-autofill:hover,
input.form-control:-webkit-autofill:focus,
textarea.form-control:-webkit-autofill,
textarea.form-control:-webkit-autofill:hover,
textarea.form-control:-webkit-autofill:focus,
select.form-select:-webkit-autofill,
select.form-select:-webkit-autofill:hover,
select.form-select:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--bs-text);
    box-shadow: 0 0 0 1000px var(--bs-tertiary) inset;
    transition: background-color 9999s ease-in-out 0s;
}

.btn {
    min-height: 40px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0;
    padding: 10px 16px;
    background: linear-gradient(135deg, #14c8a2, #29d3ff);
    border: 1px solid transparent;
    color: #0f1116;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(24, 194, 156, 0.25);
    color: #0f1116;
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(20, 200, 162, 0.45);
}

.btn-primary {
    background: linear-gradient(135deg, #14c8a2, #29d3ff);
    border: 1px solid transparent;
    color: #06121a;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #06121a;
}

.btn-secondary,
.btn-outline-primary,
.btn-outline-secondary,
.btn.ghost {
    background: #10151f;
    border: 1px solid var(--border);
    color: var(--bs-text);
}

.btn-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn.ghost:hover {
    background: #141b27;
    border-color: #314059;
    color: #e8f0ff;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.25);
}

.btn-sm {
    min-height: 32px;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 12px;
}

.metric-card {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #141b27 0%, #10151f 100%);
}

.metric-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--bs-muted);
}

.metric-value {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--bs-text);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    color: var(--bs-info);
}

.status-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-warning {
    background: rgba(245, 158, 11, 0.18);
    color: var(--bs-warning);
}

.status-success {
    background: rgba(34, 197, 94, 0.18);
    color: var(--bs-success);
}

.status-danger {
    background: rgba(249, 115, 22, 0.18);
    color: var(--bs-danger);
}

.status-muted {
    background: rgba(148, 163, 184, 0.18);
    color: var(--bs-muted);
}

.text-muted,
.form-text {
    color: var(--bs-muted) !important;
}

.chart-card canvas {
    max-height: 220px;
}
.chart-card .fw-semibold {
    color: var(--bs-text);
}

.gantt {
    display: grid;
    gap: 8px;
}

.gantt-group {
    font-weight: 600;
    background: rgba(56, 189, 248, 0.08);
    padding: 8px 12px;
    border-radius: 6px;
}

.gantt-sub {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--bs-muted);
    padding: 4px 12px;
}

.gantt-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 12px;
    align-items: center;
    padding: 6px 0;
}

.gantt-label {
    font-size: 0.9rem;
    color: var(--bs-text);
}

.gantt-label .text-muted,
.gantt-label .small {
    color: var(--bs-primary) !important;
}

.gantt-track {
    position: relative;
    height: 22px;
    background: #0b111a;
    border-radius: 12px;
    overflow: hidden;
    background-image: repeating-linear-gradient(
        to right,
        rgba(226, 232, 240, 0.08) 0,
        rgba(226, 232, 240, 0.08) 1px,
        transparent 1px,
        transparent var(--gantt-grid, 10%)
    );
}

.gantt-bar {
    position: absolute;
    top: 2px;
    bottom: 2px;
    background: linear-gradient(90deg, #18c29c, #38bdf8);
    border-radius: 10px;
}

.gantt-bar-paid {
    background: linear-gradient(90deg, #22c55e, #18c29c);
}

.gantt-scale {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bs-tertiary);
    margin-bottom: 12px;
}

.gantt-scale-item {
    padding: 6px 8px;
    font-size: 0.8rem;
    color: var(--bs-muted);
    border-right: 1px solid var(--border);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.gantt-scale-item:last-child {
    border-right: none;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}
.filter-bar {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 16px;
}
.filter-bar-compact {
    grid-template-columns: 1.7fr 1fr;
    gap: 12px;
}
.filter-bar-compact .form-label {
    font-size: 0.8rem;
}
.filter-bar-compact .form-control,
.filter-bar-compact .form-select {
    padding: 6px 10px;
    font-size: 0.9rem;
}
.filter-bar-compact .preset-row {
    gap: 6px;
}
.filter-bar-compact .preset-row .btn {
    padding: 4px 10px;
    font-size: 0.8rem;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.filter-actions {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}
.date-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.date-range-merged {
    grid-template-columns: auto 1fr auto auto 1fr;
    align-items: center;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
}
.date-range-merged .form-control {
    border: none;
    background: transparent;
    padding: 4px 6px;
    height: auto;
}
.date-range-merged .form-control:focus {
    box-shadow: none;
    outline: none;
}
.date-range-label {
    font-size: 0.75rem;
    color: var(--bs-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.date-range-divider {
    color: var(--bs-primary);
    font-size: 0.9rem;
    padding: 0 6px;
}
.preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.dual-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.dual-column {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px;
    min-height: 140px;
}
.dual-title {
    font-size: 0.75rem;
    color: var(--bs-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.project-list {
    display: grid;
    gap: 6px;
    min-height: 100px;
    max-height: 180px;
    overflow-y: auto;
}
.compact-list {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.project-item {
    background: #0f141d;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
    color: var(--bs-text);
    font-size: 0.9rem;
}
.project-item.is-active {
    background: rgba(24, 194, 156, 0.16);
    border-color: rgba(24, 194, 156, 0.6);
    color: var(--bs-text);
}
.project-item.is-inactive {
    opacity: 0.55;
}
.project-item.dragging {
    opacity: 0.6;
}
.dashboard-card {
    grid-column: span 6;
}
.dashboard-card-wide {
    grid-column: span 12;
}
.card-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.drag-handle {
    cursor: grab;
    color: var(--bs-muted);
    font-size: 0.9rem;
}
.dashboard-card.dragging {
    opacity: 0.6;
}
@media (max-width: 992px) {
    .app-sidebar {
        position: fixed;
        left: 0;
        transform: translateX(-100%);
        box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
    }
    .app-sidebar.is-open {
        transform: translateX(0);
    }
    .mobile-menu-toggle {
        display: inline-flex;
    }
    .topbar {
        padding: 12px 16px;
    }
    .topbar-title {
        font-size: 1rem;
    }
    .topbar-subtitle {
        font-size: .8rem;
    }
    .desktop-only {
        display: none !important;
    }
    .logout-mobile {
        display: block;
    }
    .app-main {
        padding: 14px 12px 20px;
    }
    .dashboard-card,
    .dashboard-card-wide {
        grid-column: span 12;
    }
    .filter-bar {
        grid-template-columns: 1fr;
    }
    .filter-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .gantt-row {
        grid-template-columns: 1fr;
    }
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: radial-gradient(circle at top, #151a22 0%, #0f1116 55%, #0b0e14 100%);
}
.login-card {
    width: 100%;
    max-width: 440px;
    border-radius: 16px;
    background: #111722;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.login-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--bs-primary);
    letter-spacing: 0.04em;
}

body.login-page .login-wrap {
    position: relative;
    overflow: hidden;
}

body.login-page .login-wrap::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 200, 162, 0.22), rgba(20, 200, 162, 0) 70%);
    top: -170px;
    right: -150px;
    pointer-events: none;
}

body.login-page .login-wrap::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.16), rgba(56, 189, 248, 0) 70%);
    bottom: -160px;
    left: -130px;
    pointer-events: none;
}

body.login-page .login-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 2;
}

body.login-page .login-card .card-body {
    padding: 30px 28px;
}

.login-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.login-mark-frame {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(180deg, #1a2434, #111a28);
    border: 1px solid #2b3a52;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-mark {
    width: 36px;
    height: 36px;
}

.login-brand-copy {
    display: grid;
    gap: 2px;
}

.login-brand-title {
    font-size: 1.05rem;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--bs-primary);
}

.login-brand-subline {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6d7c93;
}

.login-brand-note {
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7f8da6;
}

body.login-page .login-title {
    margin: 0 0 8px 0;
    color: #dbe8fb;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

body.login-page .login-sub {
    margin: 0 0 16px 0;
    color: var(--bs-muted);
    font-size: 0.95rem;
}

body.login-page .login-label {
    margin-bottom: 6px;
}

body.login-page .form-label {
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body.login-page .form-control {
    min-height: 44px;
    border-radius: 12px;
}

body.login-page .btn[type="submit"] {
    min-height: 46px;
    margin-top: 8px;
    border-radius: 12px;
}

body.login-page .login-note {
    margin-top: 14px;
    color: var(--bs-muted);
    font-size: 0.85rem;
}
