
/* ==========================================
   SHOP MANAGE - PREMIUM ADMIN DASHBOARD
========================================== */

:root {
    --sidebar-bg: #ffffff;
    --sidebar-hover: #f1f5ff;
    --sidebar-text: #5f6b7d;

    --primary: #6366f1;
    --primary-dark: #4f46e5;

    --page-bg: #f5f7fb;
    --surface: #ffffff;

    --text-main: #172033;
    --text-muted: #7b8498;
    --border-color: #e9edf4;

    --sidebar-width: 265px;
    --topbar-height: 82px;

    --radius: 14px;
    --shadow: 0 4px 20px rgba(25, 35, 60, 0.04);
}

/* Base */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text-main);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Arial, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

button {
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

/* Application layout */

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;

    display: flex;
    flex-direction: column;

    width: var(--sidebar-width);
    padding: 25px 17px 18px;

    overflow-y: auto;

    background: var(--sidebar-bg);
    color: #243047;

    transition: transform 0.28s ease;
}

.main-area {
    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 100vh;

    margin-left: var(--sidebar-width);
}

/* Brand */

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 8px;
    margin-bottom: 30px;

    color: #243047;
    text-decoration: none;
}

.sidebar-brand:hover {
    color: #243047;
}

.brand-mark {
    display: flex;
    flex: 0 0 45px;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    border-radius: 13px;

    background: linear-gradient(135deg, #818cf8, #4f46e5);
    color: #243047;

    box-shadow: 0 5px 18px rgba(99, 102, 241, 0.3);

    font-size: 22px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-text strong {
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -0.5px;
}

.brand-text small {
    color: #7b8799;
    font-size: 11px;
    letter-spacing: 0.4px;
}

/* Workspace */

.workspace-card {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 13px 11px;
    margin-bottom: 28px;

    border: 1px solid #e8edf5;
    border-radius: 12px;

    background: #f7f8fc;
}

.workspace-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;
    flex-shrink: 0;

    border-radius: 10px;

    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.15);

    font-size: 17px;
}

.workspace-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.workspace-details small {
    color: #7b8799;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.1px;
}

.workspace-details strong {
    color: #243047;
    font-size: 12px;
    font-weight: 600;
}

.workspace-chevron {
    margin-left: auto;
    color: #7b8799;
    font-size: 11px;
}

/* Section heading */

.nav-label {
    padding: 0 12px;
    margin-bottom: 11px;

    color: #738097;

    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.4px;
}

/* Sidebar navigation */

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-nav .nav-link,
.sidebar-group-toggle {
    display: flex;
    align-items: center;
    gap: 13px;

    width: 100%;
    min-height: 47px;

    padding: 12px 13px;

    border: 0;
    border-radius: 10px;

    background: transparent;
    color: var(--sidebar-text);

    font-family: inherit;
    font-size: 13px;
    font-weight: 500;

    text-align: left;
    text-decoration: none;

    cursor: pointer;

    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-nav .nav-link:hover,
.sidebar-group-toggle:hover {
    background: var(--sidebar-hover);
    color: #243047;
}

.sidebar-nav .nav-link.active,
.sidebar-group-toggle.active {
    background: linear-gradient(100deg, #e9eaff, #f3f4ff);

    color: #243047;
    font-weight: 650;
}

.nav-icon {
    width: 20px;
    flex-shrink: 0;

    color: #8c9ab2;
    font-size: 17px;
    text-align: center;
}

.nav-link.active .nav-icon,
.sidebar-group-toggle.active .nav-icon {
    color: #a5b4fc;
}

/* Accordion groups */

.sidebar-group {
    width: 100%;
}

.sidebar-group-toggle > span:first-of-type {
    flex: 1;
}

.group-chevron {
    margin-left: auto;

    color: #7b8799;
    font-size: 11px;

    transition: transform 0.25s ease;
}

.sidebar-group-toggle[aria-expanded="true"] .group-chevron {
    transform: rotate(180deg);
}

.sidebar-submenu {
    display: flex;
    flex-direction: column;
    gap: 4px;

    margin: 5px 0 8px 21px;
    padding: 5px 0 5px 14px;

    border-left: 1px solid #dfe4f2;

    animation: submenu-in 0.2s ease;
}

.sidebar-submenu[hidden] {
    display: none;
}

.submenu-link {
    display: flex;
    align-items: center;
    gap: 11px;

    min-height: 39px;
    padding: 9px 10px;

    border-radius: 8px;

    color: #5f6b7d;
    font-size: 12px;
    font-weight: 500;

    text-decoration: none;

    transition: background 0.2s ease, color 0.2s ease;
}

.submenu-link:hover {
    background: #f1f5ff;
    color: #243047;
}

.submenu-link.active {
    background: #eceeff;
    color: #4338ca;
    font-weight: 650;
}

.submenu-dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;

    border-radius: 50%;
    background: #68758b;
}

.submenu-link.active .submenu-dot {
    background: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.12);
}

@keyframes submenu-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sidebar footer */

.sidebar-bottom {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 18px 7px 5px;
    margin-top: auto;

    border-top: 1px solid #e8edf5;
}

.sidebar-help-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 37px;
    height: 37px;
    flex-shrink: 0;

    border-radius: 10px;

    color: #15803d;
    background: #e7f8ef;

    font-size: 18px;
}

.sidebar-help-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-help-text strong {
    color: #243047;
    font-size: 11px;
}

.sidebar-help-text small {
    color: #7b8799;
    font-size: 10px;
}

/* Header */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    min-height: var(--topbar-height);
    padding: 14px 35px;

    border-bottom: 1px solid var(--border-color);

    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
}

.topbar-left {
    gap: 15px;
    min-width: 0;
}

.topbar-right {
    gap: 20px;
}

.breadcrumb-text {
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
}

.breadcrumb-text i {
    padding: 0 5px;
    font-size: 9px;
}

.page-heading h1 {
    margin: 0;

    color: var(--text-main);

    font-size: 22px;
    font-weight: 750;
    letter-spacing: -0.7px;
    line-height: 1.25;
}

.sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;

    width: 39px;
    height: 39px;

    border: 1px solid var(--border-color);
    border-radius: 10px;

    background: #fff;
    color: var(--text-main);

    font-size: 23px;
    cursor: pointer;
}

/* User information */

.topbar-user {
    display: flex;
    align-items: center;
    gap: 11px;
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 43px;
    height: 43px;

    border: 3px solid #eef0ff;
    border-radius: 50%;

    background: linear-gradient(135deg, #c7d2fe, #818cf8);
    color: #3730a3;

    font-size: 17px;
    font-weight: 750;
    text-transform: uppercase;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    max-width: 180px;
    overflow: hidden;

    color: var(--text-main);

    font-size: 12px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-role {
    color: var(--text-muted);
    font-size: 11px;
}

.topbar-divider {
    width: 1px;
    height: 34px;
    background: var(--border-color);
}

/* Logout */

.logout-form {
    margin: 0;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 13px;

    border: 1px solid #f0dada;
    border-radius: 9px;

    background: #fff;
    color: #c24141;

    font-size: 12px;
    font-weight: 650;

    cursor: pointer;

    transition: background 0.2s ease, border-color 0.2s ease;
}

.logout-btn:hover {
    border-color: #e9baba;
    background: #fff5f5;
}

/* Main content */

.page-content {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 30px 35px;
}

.custom-alert {
    margin-bottom: 24px;
    border: 0;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Bootstrap cards */

.page-content .card {
    overflow: hidden;

    border: 1px solid var(--border-color);
    border-radius: var(--radius);

    background: var(--surface);
    box-shadow: var(--shadow);
}

.page-content .card-header {
    padding: 18px 22px;

    border-bottom: 1px solid var(--border-color);

    background: #fff;
    font-weight: 700;
}

.page-content .card-body {
    padding: 22px;
}

/* Forms */

.page-content .form-control,
.page-content .form-select {
    min-height: 43px;

    border-color: #dfe4ed;
    border-radius: 9px;

    font-size: 13px;
}

.page-content .form-control:focus,
.page-content .form-select:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.page-content .btn {
    border-radius: 9px;
    font-weight: 600;
}

.page-content .btn-primary {
    border-color: var(--primary);
    background: var(--primary);
}

.page-content .btn-primary:hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
}

/* Tables */

.page-content .table {
    margin-bottom: 0;
    vertical-align: middle;
}

.page-content .table thead th {
    padding: 14px 16px;

    border-bottom: 1px solid var(--border-color);

    background: #f8f9fc;
    color: #737e93;

    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
}

.page-content .table tbody td {
    padding: 15px 16px;

    border-color: #edf0f5;
    color: #4b5568;

    font-size: 12px;
}

.page-content .table tbody tr:hover td {
    background: #fafbff;
}

.page-content .badge {
    padding: 6px 9px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 650;
}

/* Footer */

.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 18px 35px;

    border-top: 1px solid var(--border-color);

    background: #fff;
    color: var(--text-muted);

    font-size: 11px;
}

/* Mobile overlay */

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1030;

    visibility: hidden;
    opacity: 0;

    background: rgba(15, 23, 42, 0.55);

    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sidebar-overlay.overlay-visible {
    visibility: visible;
    opacity: 1;
}

/* Tablet */

@media (max-width: 1100px) {
    :root {
        --sidebar-width: 235px;
    }

    .topbar {
        padding-right: 24px;
        padding-left: 24px;
    }

    .page-content {
        padding: 25px 24px;
    }

    .app-footer {
        padding-right: 24px;
        padding-left: 24px;
    }
}

/* Mobile sidebar */

@media (max-width: 900px) {
    .sidebar {
        width: 265px;

        transform: translateX(-100%);

        box-shadow: 15px 0 40px rgba(30, 41, 59, 0.10);
    }

    .sidebar.sidebar-open {
        transform: translateX(0);
    }

    .main-area {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .topbar {
        min-height: 76px;
        padding: 12px 18px;
    }

    .topbar-right {
        gap: 12px;
    }

    .page-heading h1 {
        font-size: 19px;
    }

    .breadcrumb-text {
        font-size: 10px;
    }

    .page-content {
        padding: 23px 18px;
    }

    .app-footer {
        padding: 16px 18px;
    }

    body.sidebar-is-open {
        overflow: hidden;
    }
}

/* Small phones */

@media (max-width: 560px) {
    .topbar {
        gap: 10px;
        padding: 12px;
    }

    .topbar-left {
        gap: 9px;
    }

    .topbar-right {
        gap: 9px;
    }

    .user-avatar {
        width: 37px;
        height: 37px;
        font-size: 14px;
    }

    .user-info,
    .topbar-divider,
    .logout-btn span {
        display: none;
    }

    .logout-btn {
        width: 37px;
        height: 37px;
        padding: 0;
        font-size: 16px;
    }

    .page-heading h1 {
        max-width: 155px;
        overflow: hidden;

        font-size: 17px;

        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .breadcrumb-text {
        max-width: 155px;
        overflow: hidden;

        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .page-content {
        padding: 17px 12px;
    }

    .page-content .card-body {
        padding: 16px;
    }

    .app-footer {
        padding: 14px 12px;
        font-size: 10px;
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Dashboard statistic cards */

.stat-card {
    position: relative;
    padding: 22px;
    border: 1px solid #e9edf4;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(25, 35, 60, 0.035);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(25, 35, 60, 0.08);
}

.stat-card .stat-label {
    color: #7b8498;
    font-size: 12px;
    font-weight: 600;
}

.stat-card .stat-value {
    margin-top: 12px;
    color: #172033;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
}

.stat-card .stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 47px;
    border-radius: 13px;
    font-size: 21px;
}

.stat-icon-purple {
    color: #5b50dc;
    background: #eeecff;
}

.stat-icon-blue {
    color: #2473d4;
    background: #e8f2ff;
}

.stat-icon-green {
    color: #159568;
    background: #e3f8ee;
}

.stat-icon-orange {
    color: #d97706;
    background: #fff1dc;
}


/* ==========================================
   COMPACT PREMIUM DASHBOARD OVERRIDES
   Additive overrides: keeps existing layout and behavior
========================================== */

:root {
    --sidebar-width: 242px;
    --topbar-height: 68px;
    --radius: 11px;
    --shadow: 0 3px 12px rgba(25, 35, 60, 0.045);
    --page-bg: #f4f6fb;
    --primary: #5855e7;
    --primary-dark: #4540ce;
}

/* Tighter, cleaner overall layout */
body {
    font-size: 13px;
    line-height: 1.45;
}

.sidebar {
    padding: 18px 13px 13px;
}

.sidebar-brand {
    gap: 10px;
    margin-bottom: 19px;
}

.brand-mark {
    flex-basis: 39px;
    width: 39px;
    height: 39px;
    border-radius: 11px;
    font-size: 19px;
}

.brand-text strong {
    font-size: 15px;
}

.workspace-card {
    gap: 9px;
    padding: 9px;
    margin-bottom: 19px;
    border-radius: 10px;
}

.workspace-icon {
    width: 31px;
    height: 31px;
    font-size: 15px;
}

.nav-label {
    margin-bottom: 7px;
    padding: 0 10px;
    font-size: 9px;
}

.sidebar-nav {
    gap: 3px;
}

.sidebar-nav .nav-link,
.sidebar-group-toggle {
    gap: 10px;
    min-height: 39px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.nav-icon {
    width: 18px;
    font-size: 15px;
}

.sidebar-submenu {
    gap: 2px;
    margin: 3px 0 6px 17px;
    padding: 3px 0 3px 10px;
}

.submenu-link {
    gap: 8px;
    min-height: 32px;
    padding: 7px 8px;
    font-size: 11px;
}

.sidebar-bottom {
    gap: 9px;
    padding: 12px 5px 3px;
}

.sidebar-help-icon {
    width: 32px;
    height: 32px;
    font-size: 15px;
}

/* Shorter top bar */
.topbar {
    min-height: var(--topbar-height);
    padding: 10px 24px;
    gap: 14px;
}

.topbar-left {
    gap: 11px;
}

.topbar-right {
    gap: 14px;
}

.breadcrumb-text {
    margin-bottom: 2px;
    font-size: 10px;
}

.page-heading h1 {
    font-size: 19px;
    letter-spacing: -0.45px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-width: 2px;
    font-size: 14px;
}

.topbar-user {
    gap: 8px;
}

.user-name {
    font-size: 11px;
}

.user-role {
    font-size: 10px;
}

.logout-btn {
    padding: 8px 10px;
    font-size: 11px;
}

/* Reduce unused page space */
.page-content {
    padding: 21px 24px;
}

.custom-alert {
    margin-bottom: 15px;
    border-radius: 9px;
}

/* Compact, consistent Bootstrap cards */
.page-content .card {
    border-radius: 11px;
    box-shadow: 0 2px 10px rgba(25, 35, 60, 0.035);
    transition: box-shadow .18s ease, transform .18s ease;
}

.page-content .card:hover {
    box-shadow: 0 7px 18px rgba(25, 35, 60, 0.07);
}

.page-content .card-header {
    padding: 11px 15px;
    font-size: 12px;
}

.page-content .card-body {
    padding: 15px;
}

.page-content .form-control,
.page-content .form-select {
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 12px;
}

.page-content .btn {
    padding: 7px 11px;
    border-radius: 7px;
    font-size: 11px;
}

/* Tighter tables, still easy to read */
.page-content .table thead th {
    padding: 10px 12px;
    font-size: 9px;
    letter-spacing: .45px;
}

.page-content .table tbody td {
    padding: 10px 12px;
    font-size: 11px;
}

.page-content .badge {
    padding: 5px 7px;
    font-size: 9px;
}

/* Dashboard metric cards: compact with attractive accent edge */
.stat-card {
    min-height: 112px;
    padding: 15px;
    border: 1px solid #e8ebf4;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(25, 35, 60, 0.045);
    background:
        linear-gradient(135deg, #ffffff 0%, #fbfbff 100%);
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #7774ff, #4f46e5);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(25, 35, 60, 0.09);
}

.stat-card .stat-label {
    font-size: 11px;
    line-height: 1.35;
}

.stat-card .stat-value {
    margin-top: 7px;
    font-size: 25px;
    line-height: 1.15;
    letter-spacing: -.6px;
}

.stat-card .stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 17px;
}

/* Richer but controlled icon colors */
.stat-icon-purple {
    color: #5548d9;
    background: linear-gradient(135deg, #efedff, #e3e0ff);
}

.stat-icon-blue {
    color: #1769c2;
    background: linear-gradient(135deg, #e8f3ff, #d8eaff);
}

.stat-icon-green {
    color: #0c8a5c;
    background: linear-gradient(135deg, #e1faef, #cff4e2);
}

.stat-icon-orange {
    color: #c56a05;
    background: linear-gradient(135deg, #fff3df, #ffe6bd);
}

/* Footer */
.app-footer {
    padding: 12px 24px;
    font-size: 10px;
}

/* Responsive refinements */
@media (max-width: 1100px) {
    :root {
        --sidebar-width: 225px;
    }

    .topbar {
        padding-right: 18px;
        padding-left: 18px;
    }

    .page-content {
        padding: 18px;
    }

    .app-footer {
        padding-right: 18px;
        padding-left: 18px;
    }
}

@media (max-width: 900px) {
    .sidebar {
        width: 255px;
    }

    .topbar {
        min-height: 64px;
        padding: 10px 15px;
    }

    .page-content {
        padding: 16px 14px;
    }

    .app-footer {
        padding: 12px 14px;
    }
    
}

@media (max-width: 560px) {
    .topbar {
        padding: 9px 11px;
    }

    .page-content {
        padding: 13px 10px;
    }

    .page-content .card-body {
        padding: 12px;
    }

    .page-content .card-header {
        padding: 10px 12px;
    }

    .stat-card {
        min-height: 98px;
        padding: 12px;
    }

    .stat-card .stat-value {
        font-size: 22px;
    }

    .stat-card .stat-icon {
        width: 33px;
        height: 33px;
        font-size: 15px;
    }

    .app-footer {
        padding: 11px 10px;
    }
}


/* Light sidebar refinements */
.sidebar { background: #ffffff; color: #243047; border-right: 1px solid #e8edf5; }
.sidebar-brand, .sidebar-brand:hover { color: #243047; }
.brand-text strong { color: #243047; }
.brand-text small { color: #7b8799; }
.workspace-card { background: #f7f8fc; border-color: #e8edf5; }
.workspace-details strong { color: #243047; }
.nav-label { color: #8a94a6; }
.sidebar-nav .nav-link, .sidebar-group-toggle { color: #5f6b7d; }
.sidebar-nav .nav-link:hover, .sidebar-group-toggle:hover { background: #f1f5ff; color: #3730a3; }
.sidebar-nav .nav-link.active, .sidebar-group-toggle.active { background: linear-gradient(100deg, #e9eaff, #f3f4ff); color: #4338ca; }
.nav-link.active .nav-icon, .sidebar-group-toggle.active .nav-icon { color: #4f46e5; }
.submenu-link { color: #5f6b7d; }
.submenu-link:hover { background: #f1f5ff; color: #3730a3; }
.submenu-link.active { background: #eceeff; color: #4338ca; }
.sidebar-help-text strong { color: #243047; }
.sidebar-help-text small { color: #7b8799; }



/* Compact login page */

.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #fff;
}

.login-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Left branding */
.brand-panel {
    display: flex;
    align-items: center;
    padding: 40px 55px;
    color: #fff;
    background: linear-gradient(140deg, #142746, #245bb5);
}

.brand-content {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.company-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-name {
    margin: 0;
}
.company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 18px;
    border-radius: 11px;
    background: #fff;
    color: #245bb5;
    font-size: 18px;
    font-weight: 800;
}
.company-logo img {
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain;
}

.company-name {
    margin: 0;
    font-size: 29px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    white-space: nowrap;
}

.company-subtitle {
    margin: 4px 0 0 92px;
    color: #c6d9ff;
    font-size: 10px;
    letter-spacing: 2px;
}

.brand-divider {
    width: 38px;
    height: 3px;
    margin: 30px 0 22px;
    background: #8bb7ff;
    border-radius: 3px;
}

.brand-content h2 {
    margin-bottom: 14px;
    font-size: 27px;
    line-height: 1.35;
    font-weight: 650;
}

.brand-description {
    max-width: 330px;
    color: #d5e0f4;
    font-size: 13px;
    line-height: 1.8;
}

.brand-footer {
    margin-top: 45px;
    color: #bdcce5;
    font-size: 11px;
}

/* Right login form */
.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #fff;
}

.login-container {
    width: 100%;
    max-width: 340px;
}

.login-heading {
    margin-bottom: 26px;
}

.welcome-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #245bb5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.login-heading h2 {
    margin-bottom: 8px;
    color: #172033;
    font-size: 28px;
    font-weight: 700;
}

.login-heading p {
    margin: 0;
    color: #7a8495;
    font-size: 13px;
    line-height: 1.6;
}

.login-container .form-label {
    margin-bottom: 6px;
    color: #30394b;
    font-size: 12px;
    font-weight: 600;
}

.login-container .form-control {
    min-height: 43px;
    padding: 9px 12px;
    border: 1px solid #dce2ec;
    border-radius: 7px;
    font-size: 13px;
    box-shadow: none;
}

.login-container .form-control:focus {
    border-color: #4c7ed0;
    box-shadow: 0 0 0 3px rgba(36, 91, 181, .08);
}

.login-container .mb-4 {
    margin-bottom: 18px !important;
}

.forgot-password {
    margin: 8px 0 20px;
    text-align: right;
    font-size: 12px;
}

.forgot-password a {
    color: #245bb5;
    text-decoration: none;
}

.login-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 43px;
    padding: 10px 14px;
    border: 0;
    border-radius: 7px;
    background: #245bb5;
    font-size: 13px;
    font-weight: 600;
}

.login-button:hover {
    background: #194a9c;
}

.login-button span {
    font-size: 17px;
}

.login-security {
    margin-top: 22px;
    color: #8992a1;
    font-size: 11px;
    text-align: center;
}

.mobile-brand {
    display: none;
}

/* Mobile */
@media (max-width: 650px) {
    .login-layout {
        display: block;
    }

    .brand-panel {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 28px 22px;
    }

    .login-container {
        max-width: 360px;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 40px;
        color: #172033;
        font-size: 17px;
        font-weight: 700;
    }

    .mobile-brand .brand-mark {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 9px;
        background: #245bb5;
        color: #fff;
        font-size: 14px;
    }

    .login-heading h2 {
        font-size: 25px;
    }
}

