/* ═════════════════════════════════════════════════════════════════
   Two Care – Custom Nova Theme
   Modern sidebar inspired by shadcn/ui sidebar-07
   ═════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */

:root {
    /* basic */
    --transparent: transparent;
    --black: #22292f;
    --white: white;
    --white-50: rgba(255, 255, 255, 0.5);

    /* semantic */
    --danger: #e74444;
    --danger-light: #fed7d7;
    --danger-dark: #e53e3e;

    --success: #21b978;
    --success-light: #c6f6d5;
    --success-dark: #38a169;

    --warning: #f5a400;
    --warning-light: #fff382;
    --warning-dark: #cca300;

    --info: #03a9f4;
    --info-light: #bee3f8;
    --info-dark: #3182ce;

    /* primary brand */
    --primary: #0054A6;
    --primary-dark: #004787;
    --primary-70: rgba(0, 84, 166, 0.7);
    --primary-50: rgba(0, 84, 166, 0.5);
    --primary-30: rgba(0, 84, 166, 0.3);
    --primary-10: rgba(0, 84, 166, 0.1);

    /* sidebar */
    --logo: #0054A6;
    --sidebar-icon: #7c858e;
    --sidebar-width: 15rem;
    --sidebar-collapsed-width: 4rem;
    --sidebar-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);

    /* background scale */
    --20: #f6fbff;
    --30: #f4f7fa;
    --40: #eef1f4;
    --50: #e3e7eb;
    --60: #bacad6;
    --70: #b3b9bf;
    --80: #7c858e;
    --90: #3c4b5f;
    --90-half: rgba(40, 54, 61, 0.5);

    /* Soft Gray sidebar palette */
    --sidebar-bg: #f0f2f5;
    --sidebar-bg-hover: #e4e8ed;
    --sidebar-bg-active: rgba(0, 84, 166, 0.12);
    --sidebar-text-primary: #1a2332;
    --sidebar-text-secondary: #4a5568;
    --sidebar-text-muted: #6b7685;
    --sidebar-border: #d8dde3;
    --sidebar-scrollbar: #c1c8d0;
}

/* ═════════════════════════════════════════════════════════════════
   Typography
   ═════════════════════════════════════════════════════════════════ */

body,
#nova {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═════════════════════════════════════════════════════════════════
   Sidebar – Core Layout
   ═════════════════════════════════════════════════════════════════ */

#sidebar {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    border-right: none;
    transition: width var(--sidebar-transition);
    overflow: hidden;
    z-index: 100;
    position: relative;

    /* Override Nova's text-white / sidebar-icon variables inside sidebar */
    --white: var(--sidebar-text-primary);
    --white-50: var(--sidebar-text-secondary);
    --sidebar-icon: var(--sidebar-text-secondary);
    color: var(--sidebar-text-primary);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
}

/* Right border that starts below the blue brand strip */
#sidebar::after {
    content: '';
    position: absolute;
    top: 3.75rem; /* matches .sidebar-brand height */
    right: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--sidebar-border);
    z-index: 1;
}

/* ── Brand / Logo ── */

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.75rem;
    padding: 0 0.75rem 0 1.375rem;
    background-color: var(--primary);
    background-image:
        repeating-linear-gradient(
            -30deg,
            transparent,
            transparent 18px,
            rgba(255, 255, 255, 0.04) 18px,
            rgba(255, 255, 255, 0.04) 20px
        ),
        repeating-linear-gradient(
            -30deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.025) 50px,
            rgba(255, 255, 255, 0.025) 54px
        ),
        repeating-linear-gradient(
            30deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, 0.02) 35px,
            rgba(255, 255, 255, 0.02) 37px
        );
    border-bottom: none;
    flex-shrink: 0;
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-logo-full {
    display: flex;
    align-items: center;
}

.sidebar-logo-full svg {
    margin: 0 !important;
}

.sidebar-logo-icon {
    display: none;
    align-items: center;
    justify-content: center;
}

/* ── Toggle Button ── */

.sidebar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.sidebar-toggle-icon {
    transition: transform var(--sidebar-transition);
}

html.sidebar-collapsed .sidebar-toggle-icon {
    transform: rotate(180deg);
}

/* ═════════════════════════════════════════════════════════════════
   Sidebar – Navigation
   ═════════════════════════════════════════════════════════════════ */

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
}

/* Thin scrollbar */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--sidebar-scrollbar);
    border-radius: 2px;
}

/* Disable Nova's dim opacity in sidebar items */
#sidebar .dim,
#sidebar .dim:hover,
#sidebar .dim:active {
    opacity: 1 !important;
}

/* ── Section headings (Dashboard h3, Resources h3, Cashboxes h4) ── */

#sidebar .sidebar-nav h3,
#sidebar .sidebar-nav > h4 {
    display: flex !important;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    margin-bottom: 0.125rem !important;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    color: var(--sidebar-text-primary) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

#sidebar .sidebar-nav h3:hover,
#sidebar .sidebar-nav > h4:hover {
    background-color: var(--sidebar-bg-hover);
}

/* Active state for section headings */
#sidebar .sidebar-nav h3.router-link-active,
#sidebar .sidebar-nav h3.router-link-exact-active {
    background-color: var(--sidebar-bg-active) !important;
    color: var(--primary) !important;
}

#sidebar .sidebar-nav h3.router-link-active .sidebar-icon,
#sidebar .sidebar-nav h3.router-link-exact-active .sidebar-icon {
    fill: var(--primary) !important;
}

/* ── Sidebar icons ── */

#sidebar .sidebar-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: fill 0.15s ease;
}

#sidebar h3:hover .sidebar-icon,
#sidebar h4:hover .sidebar-icon {
    fill: var(--sidebar-text-primary);
}

/* ── Sidebar label text ── */

#sidebar .sidebar-label {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    color: inherit !important;
}

#sidebar .sidebar-label strong {
    font-weight: 600;
}

/* ── Group headers (resource group names like "Users", "Settings") ── */

#sidebar .sidebar-nav h4.uppercase.tracking-wide,
#sidebar .sidebar-nav .ml-8.text-xs.uppercase {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--sidebar-text-muted) !important;
    padding: 0.5rem 0.625rem 0.25rem;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    text-transform: uppercase !important;
    white-space: nowrap;
}

/* ── Section dividers ── */

#sidebar .sidebar-nav :has(> .sidebar-icon) ~ :has(> .sidebar-icon) {
    margin-top: 0.5rem !important;
    padding-top: 0.5rem;
    border-top: 1px solid var(--sidebar-border);
}

/* ── Sub-item lists ── */

#sidebar .sidebar-nav ul {
    margin-bottom: 0.25rem !important;
    padding: 0;
    list-style: none;
}

#sidebar .sidebar-nav ul li {
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    padding: 0;
    line-height: normal !important;
}

#sidebar .sidebar-nav ul li a,
#sidebar .sidebar-nav ul li h3,
#sidebar .sidebar-nav ul li > .cursor-pointer {
    display: block;
    padding: 0.375rem 0.625rem 0.375rem 2.375rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--sidebar-text-secondary) !important;
    text-decoration: none !important;
    border-radius: 0.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.15s ease, color 0.15s ease;
}

#sidebar .sidebar-nav ul li a:hover,
#sidebar .sidebar-nav ul li h3:hover,
#sidebar .sidebar-nav ul li > .cursor-pointer:hover {
    background-color: var(--sidebar-bg-hover);
    color: var(--sidebar-text-primary) !important;
}

/* Active sub-items */
#sidebar .sidebar-nav ul li .router-link-active,
#sidebar .sidebar-nav ul li .router-link-exact-active,
#sidebar .sidebar-nav ul li a.router-link-active,
#sidebar .sidebar-nav ul li a.router-link-exact-active {
    background-color: var(--sidebar-bg-active) !important;
    color: var(--primary) !important;
    font-weight: 500;
}

/* ═════════════════════════════════════════════════════════════════
   Sidebar – Footer / User
   ═════════════════════════════════════════════════════════════════ */

.sidebar-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--sidebar-border);
    padding: 0.75rem;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    overflow: hidden;
    white-space: nowrap;
    cursor: default;
    transition: background-color 0.15s ease;
}

.sidebar-user:hover {
    background-color: var(--sidebar-bg-hover);
}

.sidebar-user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--sidebar-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 0.6875rem;
    color: var(--sidebar-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═════════════════════════════════════════════════════════════════
   Sidebar – Collapsible Sections
   ═════════════════════════════════════════════════════════════════ */

.sidebar-chevron {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.125rem;
    border-radius: 0.25rem;
    color: var(--sidebar-text-muted);
    transition: transform 200ms ease, color 0.15s ease, background-color 0.15s ease;
    flex-shrink: 0;
}

.sidebar-chevron:hover {
    color: var(--sidebar-text-primary);
    background-color: rgba(0, 0, 0, 0.06);
}

.section-collapsed .sidebar-chevron {
    transform: rotate(-90deg);
}

/* Section-level collapsible */
.sidebar-section-items {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 200ms ease;
}

.sidebar-section-items.collapsed {
    grid-template-rows: 0fr;
}

.sidebar-section-inner {
    overflow: hidden;
}

/* Group-level collapsible (resource sub-groups) */
.sidebar-group-heading {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    border-radius: 0.375rem;
    padding-right: 0.625rem !important;
    transition: background-color 0.15s ease;
}

.sidebar-group-heading:hover {
    background-color: var(--sidebar-bg-hover);
}

.sidebar-group-heading .sidebar-chevron {
    color: var(--sidebar-text-muted);
}

.sidebar-group-items {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 200ms ease;
}

.sidebar-group-items.collapsed {
    grid-template-rows: 0fr;
}

.sidebar-group-inner {
    overflow: hidden;
}

/* ═════════════════════════════════════════════════════════════════
   Sidebar – Collapsed State
   ═════════════════════════════════════════════════════════════════ */

html.sidebar-collapsed #sidebar {
    width: var(--sidebar-collapsed-width);
}

/* Brand: hide logo, center toggle */
html.sidebar-collapsed .sidebar-brand {
    justify-content: center;
    padding: 0;
}

html.sidebar-collapsed .sidebar-brand-link {
    display: none;
}

/* Navigation: center items */
html.sidebar-collapsed .sidebar-nav {
    align-items: center;
    padding: 0.5rem;
}

/* Hide text labels */
html.sidebar-collapsed #sidebar .sidebar-label {
    display: none !important;
}

/* Hide text spans in section headings */
html.sidebar-collapsed #sidebar .sidebar-nav h3 > span:not(.sidebar-icon),
html.sidebar-collapsed #sidebar .sidebar-nav > h4 > span:not(.sidebar-icon) {
    display: none !important;
}

/* Hide sub-item lists */
html.sidebar-collapsed #sidebar .sidebar-nav ul {
    display: none !important;
}

/* Hide text-only group headers */
html.sidebar-collapsed #sidebar .sidebar-nav h4:not(:has(.sidebar-icon)) {
    display: none !important;
}

/* Section headings become icon buttons */
html.sidebar-collapsed #sidebar .sidebar-nav h3,
html.sidebar-collapsed #sidebar .sidebar-nav > h4:has(.sidebar-icon) {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0 !important;
    margin-bottom: 0.25rem !important;
    margin-top: 0 !important;
    justify-content: center;
    gap: 0;
    border-top: none !important;
    padding-top: 0 !important;
}

/* Re-add dividers between collapsed icon sections */
html.sidebar-collapsed #sidebar .sidebar-nav h3 ~ h3,
html.sidebar-collapsed #sidebar .sidebar-nav h3 ~ h4:has(.sidebar-icon) {
    margin-top: 0.25rem !important;
    padding-top: 0.25rem;
    border-top: 1px solid var(--sidebar-border) !important;
}

/* User section: avatar only */
html.sidebar-collapsed .sidebar-user-info {
    display: none;
}

html.sidebar-collapsed .sidebar-user {
    justify-content: center;
    padding: 0.375rem;
}

html.sidebar-collapsed .sidebar-footer {
    padding: 0.5rem;
}

/* Hide chevrons and section content in icon-only mode */
html.sidebar-collapsed .sidebar-chevron {
    display: none !important;
}

html.sidebar-collapsed .sidebar-section-items {
    display: none !important;
}

/* ═════════════════════════════════════════════════════════════════
   Sidebar – Responsive Mobile/Tablet Behavior
   ═════════════════════════════════════════════════════════════════ */

/* Cuando sidebar está visible en móvil, posicionarlo como overlay */
@media (max-width: 1023px) {
    /* Sidebar oculto por defecto en móvil */
    #sidebar {
        position: fixed !important;
        left: 0;
        top: 0;
        height: 100vh;
        width: var(--sidebar-width); /* 15rem */
        z-index: 200;
        box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
    }

    /* Cuando está oculto con clase hidden de Tailwind, mantenerlo oculto */
    #sidebar.hidden {
        display: none !important;
    }

    /* Botón hamburguesa móvil */
    #mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 0.375rem;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.25);
        color: white;
        cursor: pointer;
        transition: background-color 0.15s ease;
        margin-right: 0.75rem;
        padding: 0;
    }

    #mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    #mobile-menu-toggle svg {
        width: 1.25rem;
        height: 1.25rem;
        stroke: currentColor;
    }

    /* Overlay oscuro de fondo cuando el menú está abierto */
    html.mobile-menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 150;
        animation: fadeIn 200ms ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

/* Desktop: ocultar botón hamburguesa */
@media (min-width: 1024px) {
    #mobile-menu-toggle {
        display: none !important;
    }
}

/* ═════════════════════════════════════════════════════════════════
   Header
   ═════════════════════════════════════════════════════════════════ */

/* Header bar: blue, continuous with brand + subtle diagonal lines */
.nova-header {
    background-color: var(--primary) !important;
    background-image:
        repeating-linear-gradient(
            -30deg,
            transparent,
            transparent 18px,
            rgba(255, 255, 255, 0.04) 18px,
            rgba(255, 255, 255, 0.04) 20px
        ),
        repeating-linear-gradient(
            -30deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.025) 50px,
            rgba(255, 255, 255, 0.025) 54px
        ),
        repeating-linear-gradient(
            30deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, 0.02) 35px,
            rgba(255, 255, 255, 0.02) 37px
        );
    box-shadow: none !important;
    border-bottom: none !important;
}

/* Header text */
.nova-header-text {
    color: #fff !important;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Search input in blue header */
.nova-header .search-input {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: transparent;
}

.nova-header .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.nova-header .search-input:focus {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: transparent !important;
    box-shadow: none !important;
}

/* User dropdown in blue header */
.nova-header .dropdown-trigger .text-90 {
    color: #fff !important;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Gravatar ring in header */
.nova-header .rounded-full {
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Dropdown arrow / icons in header */
.nova-header .dropdown-trigger svg {
    fill: rgba(255, 255, 255, 0.8);
}

/* Link hover in header */
.nova-header a:hover {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ═════════════════════════════════════════════════════════════════
   Content Area
   ═════════════════════════════════════════════════════════════════ */

/* Softer background */
.bg-40 {
    background-color: #f5f7fa !important;
}

/* Cards / panels */
.card {
    border-radius: 0.375rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid var(--50);
}

/* ═════════════════════════════════════════════════════════════════
   Buttons
   ═════════════════════════════════════════════════════════════════ */

.btn.btn-default.btn-primary {
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0;
    transition: background-color 0.15s ease;
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn.btn-default.btn-primary:not(:disabled):hover,
.btn.btn-default.btn-primary:not(:disabled):focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

/* ═════════════════════════════════════════════════════════════════
   Search Bar
   ═════════════════════════════════════════════════════════════════ */

.search-input,
.form-global-search,
.form-search {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    font-size: 0.8125rem;
    border-radius: 0.375rem !important;
}

.form-global-search:focus,
.form-search:focus {
    box-shadow: 0 0 0 3px var(--primary-10) !important;
}

/* Select dropdowns, textareas, multiselect */
select,
textarea,
.multiselect__tags {
    border-radius: 0.375rem !important;
}

/* ═════════════════════════════════════════════════════════════════
   Tables
   ═════════════════════════════════════════════════════════════════ */

th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

td {
    font-size: 0.8125rem;
}

/* ═════════════════════════════════════════════════════════════════
   Form Inputs
   ═════════════════════════════════════════════════════════════════ */

.form-input,
.form-control,
.form-input-bordered {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input-bordered:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-10) !important;
}

/* ═════════════════════════════════════════════════════════════════
   Footer
   ═════════════════════════════════════════════════════════════════ */

.text-center.text-xs.text-80 {
    font-size: 0.6875rem;
    color: var(--70);
}

/* ═════════════════════════════════════════════════════════════════
   Login Page
   ═════════════════════════════════════════════════════════════════ */

.login-body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    margin: 0;
    background-color: var(--40);
    color: var(--90);
}

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

@media (min-width: 480px) {
    .login-wrapper {
        padding: 1.5rem;
    }
}

.login-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    width: 100%;
    max-width: 56rem;
}

@media (min-width: 480px) {
    .login-card {
        border-radius: 1rem;
    }
}

.login-card-grid {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .login-card-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.login-form-col {
    padding: 1.5rem;
}

@media (min-width: 480px) {
    .login-form-col {
        padding: 2.5rem;
    }
}

@media (min-width: 768px) {
    .login-form-col {
        padding: 3rem;
    }
}

.login-brand-col {
    display: none;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    background-image:
        repeating-linear-gradient(
            -30deg,
            transparent,
            transparent 18px,
            rgba(255, 255, 255, 0.04) 18px,
            rgba(255, 255, 255, 0.04) 20px
        ),
        repeating-linear-gradient(
            -30deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.025) 50px,
            rgba(255, 255, 255, 0.025) 54px
        ),
        repeating-linear-gradient(
            30deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, 0.02) 35px,
            rgba(255, 255, 255, 0.02) 37px
        );
    position: relative;
}

@media (min-width: 768px) {
    .login-brand-col {
        display: flex;
    }
}

.login-heading {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--90);
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

@media (min-width: 480px) {
    .login-heading {
        font-size: 1.75rem;
    }
}

.login-subheading {
    font-size: 0.875rem;
    color: var(--80);
    margin: 0;
}

.login-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--90);
    margin-bottom: 0.375rem;
}

.login-input {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1.5;
    color: var(--90);
    background-color: #fff;
    border: 1px solid var(--60);
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.login-input::placeholder {
    color: var(--70);
}

.login-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-10);
}

.login-input.has-error {
    border-color: var(--danger);
}

.login-input.has-error:focus {
    box-shadow: 0 0 0 3px rgba(231, 68, 68, 0.1);
}

.login-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.5;
    color: #fff;
    background-color: var(--primary);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    text-decoration: none;
}

.login-btn-primary:hover {
    background-color: var(--primary-dark);
}

.login-btn-microsoft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.5;
    color: #fff;
    background-color: var(--primary);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 84, 166, 0.3);
}

@media (min-width: 480px) {
    .login-btn-microsoft {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
}

.login-btn-microsoft:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(0, 84, 166, 0.4);
    color: #fff;
    text-decoration: none;
}

.login-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.5;
    color: var(--90);
    background-color: #fff;
    border: 1px solid var(--60);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    text-decoration: none;
}

.login-btn-secondary:hover {
    border-color: var(--80);
    background-color: var(--20);
}

.login-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.5;
    color: var(--90);
    background-color: #fff;
    border: 1px solid var(--60);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    text-decoration: none;
}

.login-btn-outline:hover {
    border-color: var(--80);
    background-color: var(--20);
}

.login-checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
    cursor: pointer;
    vertical-align: middle;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .login-divider {
        gap: 1rem;
    }
}

.login-divider-line {
    flex: 1;
    min-width: 1.5rem;
    height: 1px;
    background-color: var(--50);
}

.login-divider-text {
    font-size: 0.75rem;
    color: var(--70);
    text-transform: lowercase;
    white-space: nowrap;
}

.login-link {
    font-size: 0.8125rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.login-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.login-error {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--danger);
    text-align: center;
    margin-bottom: 1rem;
}

.login-field-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.login-field {
    display: flex;
    flex-direction: column;
}

.login-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.login-remember-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--90);
    cursor: pointer;
}

.login-mobile-logo {
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .login-mobile-logo {
        display: none;
    }
}

.login-logo-header {
    margin-bottom: 0.5rem;
}

.login-success {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--success);
    text-align: center;
    margin-bottom: 1rem;
}
