:root {
    --als-blue: #004CAB;
    --als-blue-700: #003f8f;
    --als-blue-800: #00306f;
    --als-navy: #061a36;
    --als-navy-2: #092447;
    --als-sky: #eef6ff;
    --als-sky-2: #dbeafe;
    --als-line: #d8e4f2;
    --als-ink: #122033;
    --als-muted: #64748b;
    --als-white: #ffffff;
    --als-success: #16a34a;
    --als-warning: #d97706;
    --als-danger: #dc2626;
}

body {
    color: var(--als-ink);
}

body.bg-gray-50 {
    background:
        radial-gradient(circle at top right, rgba(0, 76, 171, .08), transparent 34rem),
        #f6f9fd;
}

.bg-slate-900 {
    background:
        linear-gradient(180deg, var(--als-blue) 0%, var(--als-blue-700) 100%) !important;
}

.border-slate-700 {
    border-color: rgba(219, 234, 254, .14) !important;
}

.text-blue-300,
.text-blue-400,
.text-blue-500,
.text-blue-600,
.text-blue-700 {
    color: var(--als-blue) !important;
}

.text-blue-200 {
    color: #bfd9ff !important;
}

.bg-blue-50 {
    background-color: #f1f7ff !important;
}

.bg-blue-100 {
    background-color: #e4f0ff !important;
}

.bg-blue-500,
.bg-blue-600 {
    background-color: var(--als-blue) !important;
}

.hover\:bg-blue-700:hover {
    background-color: var(--als-blue-700) !important;
}

.hover\:text-blue-700:hover {
    color: var(--als-blue) !important;
}

.border-blue-200 {
    border-color: #bfd9ff !important;
}

.focus\:ring-blue-500:focus {
    --tw-ring-color: rgba(0, 76, 171, .32) !important;
}

input[type="checkbox"] {
    accent-color: var(--als-blue);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--als-blue) !important;
}

.als-sidebar {
    width: 15rem;
    min-width: 15rem;
    height: 100vh;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(180deg, var(--als-blue) 0%, var(--als-blue-700) 100%);
    transition: width .2s ease, min-width .2s ease;
}

.als-sidebar--collapsed {
    width: 4.5rem;
    min-width: 4.5rem;
}

.als-sidebar-header {
    min-height: 6rem;
    padding: .875rem .875rem .75rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.als-brand {
    min-width: 0;
    display: flex;
    flex: 1;
    align-items: center;
    gap: .75rem;
}

.als-brand-logo {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
}

.als-brand-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.als-brand-name {
    font-size: .9rem;
    font-weight: 800;
    color: #ffffff;
}

.als-brand-country {
    margin-top: .15rem;
    font-size: .72rem;
    font-weight: 700;
    color: #cfe4ff;
}

.als-sidebar-toggle {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255, 255, 255, .12);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.als-sidebar-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, .2);
}

.als-sidebar-toggle-icon {
    width: 1rem;
    height: 1rem;
    transition: transform .2s ease;
}

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

.als-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: .875rem .75rem;
}

.als-nav-section {
    margin: .875rem .25rem .35rem;
    color: rgba(255, 255, 255, .56);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.als-nav-item {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    margin-bottom: .25rem;
    padding: 0 .85rem;
    border-radius: .85rem;
    color: #dbeafe;
    font-size: .875rem;
    font-weight: 600;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.als-sidebar:not(.als-sidebar--collapsed) .als-nav-item {
    gap: .75rem;
}

.als-nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, .12);
}

.als-nav-item.active {
    color: var(--als-blue);
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(0, 31, 84, .18);
}

.als-nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.als-sidebar-label {
    min-width: 0;
    opacity: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: opacity .12s ease, width .12s ease;
}

.als-sidebar-footer {
    min-height: 5.25rem;
    padding: .875rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.als-user-avatar {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, .18);
    font-size: .875rem;
    font-weight: 800;
}

.als-user-text {
    flex: 1;
}

.als-user-text p {
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
    font-size: .82rem;
    font-weight: 700;
}

.als-user-text span {
    display: block;
    margin-top: .1rem;
    color: #cfe4ff;
    font-size: .7rem;
    font-weight: 600;
}

.als-logout-form {
    flex-shrink: 0;
}

.als-logout-button {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .85rem;
    color: #dbeafe;
    transition: background .18s ease, color .18s ease;
}

.als-logout-button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, .12);
}

.als-sidebar--collapsed .als-sidebar-header {
    min-height: 6.75rem;
    flex-direction: column;
    justify-content: center;
    gap: .5rem;
    padding: .8rem .5rem;
}

.als-sidebar--collapsed .als-brand {
    flex: initial;
    justify-content: center;
    width: 100%;
}

.als-sidebar--collapsed .als-brand-logo {
    width: 3rem;
    height: 3rem;
}

.als-sidebar--collapsed .als-sidebar-toggle {
    width: 2rem;
    height: 1.6rem;
}

.als-sidebar--collapsed .als-sidebar-nav {
    padding: .75rem .5rem;
}

.als-sidebar--collapsed .als-nav-section,
.als-sidebar--collapsed .als-sidebar-label {
    width: 0;
    opacity: 0;
    pointer-events: none;
}

.als-sidebar--collapsed .als-nav-item {
    width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

.als-sidebar--collapsed .als-nav-item.active {
    box-shadow: inset 0 0 0 1px rgba(0, 76, 171, .14);
}

.als-sidebar--collapsed .als-sidebar-footer {
    min-height: 6.25rem;
    flex-direction: column;
    justify-content: center;
    gap: .65rem;
    padding: .75rem .5rem;
}

.card-stat,
.bg-white.rounded-xl.border {
    border-color: var(--als-line) !important;
}

.card-stat:hover {
    box-shadow: 0 14px 34px rgba(0, 48, 111, .12) !important;
}

.card-login {
    box-shadow: 0 30px 70px rgba(0, 32, 74, .24);
}

.login-bg {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .18), transparent 18rem),
        radial-gradient(circle at 82% 12%, rgba(111, 177, 255, .22), transparent 22rem),
        linear-gradient(135deg, #03142b 0%, var(--als-blue-800) 42%, var(--als-blue) 100%);
}

.login-shell {
    width: min(960px, calc(100% - 2rem));
    margin: 0 auto;
}

.login-card {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 32px 80px rgba(1, 16, 40, .32);
}

.login-brand-panel {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 2.5rem;
    color: #ffffff;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .2), transparent 14rem),
        linear-gradient(160deg, var(--als-blue) 0%, var(--als-navy) 100%);
}

.login-logo-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.15rem;
    text-align: center;
}

.login-logo {
    width: 5.25rem;
    height: 5.25rem;
    flex-shrink: 0;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.login-brand-text {
    min-width: 0;
}

.login-brand-title {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
}

.login-brand-subtitle {
    max-width: 15rem;
    margin-top: .25rem;
    color: #cfe4ff;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.35;
}

.login-brand-copy {
    max-width: 22rem;
}

.login-brand-copy h1 {
    font-size: 1.95rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0;
}

.login-brand-copy p {
    margin-top: .75rem;
    color: #dbeafe;
    font-size: .95rem;
    line-height: 1.6;
}

.login-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.login-metric {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    padding: .75rem;
    background: rgba(255, 255, 255, .08);
}

.login-metric strong {
    display: block;
    font-size: .9rem;
}

.login-metric span {
    display: block;
    margin-top: .125rem;
    color: #cfe4ff;
    font-size: .72rem;
}

.login-form-panel {
    padding: 2.25rem;
}

.login-form-panel input[type="email"],
.login-form-panel input[type="password"],
.form-control {
    border-color: #cdd9e8 !important;
    background: #fbfdff;
}

.login-form-panel input:focus,
.form-control:focus {
    border-color: var(--als-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 76, 171, .16) !important;
}

.btn-primary {
    background: var(--als-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 22px rgba(0, 76, 171, .22);
}

.btn-primary:hover {
    background: var(--als-blue-700) !important;
}

.demo-box {
    border-color: #d6e4f5 !important;
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%) !important;
}

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

    .login-brand-panel {
        min-height: 14rem;
        gap: 0;
        padding: 1.5rem;
    }

    .login-logo {
        width: 4.25rem;
        height: 4.25rem;
    }

    .login-brand-title {
        font-size: 1.35rem;
    }

    .login-brand-subtitle {
        font-size: .8rem;
    }

    .login-brand-copy h1 {
        font-size: 1.45rem;
    }

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