* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #172033;
    background: #0b0f17;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.auth-body {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #f8fbff;
}

.auth-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 50% 44%, rgba(31, 111, 235, .06), transparent 32%),
        linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    pointer-events: none;
}

.auth-particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.auth-shell {
    position: relative;
    z-index: 2;
    width: min(900px, calc(100vw - 40px));
}

.login-card {
    display: grid;
    grid-template-columns: minmax(300px, .9fr) minmax(390px, 1.1fr);
    overflow: hidden;
    min-height: 570px;
    border: 1px solid rgba(211, 222, 237, .72);
    border-radius: 22px;
    color: #11213a;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 30px 80px rgba(31, 63, 104, .2);
    backdrop-filter: blur(18px);
}

.login-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 54px 48px 42px;
    border-right: 1px solid #e8eef6;
    background:
        radial-gradient(circle at 15% 10%, rgba(37, 153, 255, .12), transparent 30%),
        linear-gradient(155deg, #ffffff 30%, #f4faff 100%);
}

.login-brand {
    display: flex;
    gap: 18px;
    align-items: center;
    text-align: left;
}

.brand-mark,
.sidebar-brand {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(22, 78, 148, .14);
}

.sidebar-brand {
    width: 62px;
    height: 62px;
}

.brand-mark img,
.sidebar-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.eyebrow {
    margin: 0 0 4px;
    color: #ff263b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

.login-brand h1 {
    margin-bottom: 0;
    color: #0f2039;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.05;
}

.login-accent {
    width: 70px;
    height: 4px;
    margin: 30px 0 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff172f 0 44%, transparent 44% 58%, #2498ff 58%);
}

.login-description {
    max-width: 270px;
    color: #66758d;
    font-size: 14px;
    line-height: 1.7;
}

.login-dot-loader {
    position: relative;
    width: clamp(170px, 20vw, 230px);
    height: clamp(116px, 13vw, 150px);
    margin: 38px auto 0;
    transform: translateX(10px);
}

.dot-loader-ball {
    position: absolute;
    display: block;
    width: clamp(56px, 6.5vw, 74px);
    height: clamp(56px, 6.5vw, 74px);
    border-radius: 999px;
    background:
        radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .56) 0 12%, transparent 13%),
        linear-gradient(145deg, #31dfd0 4%, #15c3b3 58%, #08766f 100%);
    box-shadow: inset -12px -14px 22px rgba(0, 88, 82, .28), 0 16px 26px rgba(8, 118, 111, .16);
    transform-origin: 50% 100%;
    animation: dot-loader-bounce 1.45s ease-in-out infinite;
}

.dot-loader-ball-one {
    left: 0;
    bottom: 6px;
}

.dot-loader-ball-two {
    left: 32%;
    bottom: 38px;
    animation-delay: .12s;
}

.dot-loader-ball-three {
    right: 4px;
    bottom: 18px;
    animation-delay: .25s;
}

@keyframes dot-loader-bounce {
    0%,
    100% {
        transform: translateY(12px) scale(1);
    }

    45% {
        transform: translateY(-10px) scale(1);
    }
}

.login-illustration {
    position: relative;
    overflow: hidden;
    height: 230px;
    margin: auto -20px -42px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.login-illustration img {
    display: block;
    width: 150%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    transform: scale(1.55);
    transform-origin: center bottom;
}

.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 52px 34px;
}

.login-panel-heading {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 30px;
}

.login-panel-heading h2 {
    margin: 0;
    color: #10213a;
    font-size: 23px;
}

.heading-icon {
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #198cff;
    background: #eaf5ff;
}

.heading-icon svg,
.input-icon,
.password-toggle svg,
.login-submit svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-form {
    display: grid;
    gap: 20px;
}

.login-form label {
    display: grid;
    gap: 8px;
    color: #17233b;
    font-size: 14px;
    font-weight: 700;
}

.input-wrap {
    position: relative;
    display: block;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 1;
    color: #98a5b8;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-form input {
    width: 100%;
    min-height: 54px;
    padding: 0 48px;
    border: 1px solid #d8e0eb;
    border-radius: 9px;
    color: #17233b;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.login-form input:focus {
    border-color: #198cff;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(25, 140, 255, .13);
}

.login-form input::placeholder {
    color: #9aa6b8;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    color: #9aa6b8;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
    color: #198cff;
}

.login-form .login-submit {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(100deg, #ff1431 0%, #ff4c1b 55%, #ff7908 100%);
    box-shadow: 0 14px 28px rgba(255, 65, 24, .2);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.login-form .login-submit:hover {
    box-shadow: 0 17px 32px rgba(255, 65, 24, .3);
    transform: translateY(-1px);
}

.form-error {
    padding: 12px;
    border: 1px solid #fecdd3;
    border-radius: 8px;
    color: #9f1239;
    background: #fff1f2;
    font-size: 13px;
}

.login-help {
    margin: 38px 0 0;
    color: #7a879b;
    font-size: 12px;
    text-align: center;
}

.login-help strong {
    color: #ff263b;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 92px 1fr;
    background: #f5f9ff;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 34px;
    padding: 24px 16px;
    border-right: 1px solid #203654;
    background: #10213a;
    box-shadow: 8px 0 30px rgba(15, 33, 58, .16);
}

.sidebar-brand {
    width: 58px;
    height: 58px;
    border: 2px solid rgba(255, 255, 255, .14);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}

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

.sidebar-link {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 13px;
    color: #b9c9dd;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.sidebar-link.active,
.sidebar-link:hover {
    color: #fff;
    background: linear-gradient(145deg, #168cff, #1675ea);
    box-shadow: 0 10px 22px rgba(25, 140, 255, .25);
    transform: translateY(-1px);
}

svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.main-area {
    min-width: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 100% 0, rgba(25, 140, 255, .09), transparent 28%),
        radial-gradient(circle at 0 100%, rgba(255, 67, 27, .06), transparent 26%),
        #f5f9ff;
}

.topbar {
    position: relative;
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 34px;
    border-bottom: 1px solid #dfe8f4;
    color: #11213a;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 30px rgba(39, 83, 137, .06);
}

.topbar::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff1733 0 10%, #ff7410 24%, #1c91ff 52%, transparent 80%);
}

.topbar .eyebrow {
    color: #ff263b;
}

.topbar h1 {
    margin-bottom: 0;
    color: #10213a;
    font-size: 30px;
    font-weight: 750;
}

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

.notification-menu {
    position: relative;
}

.notification-menu summary,
.icon-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid #dce6f2;
    border-radius: 12px;
    color: #198cff;
    background: #f2f8ff;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
    cursor: pointer;
    list-style: none;
}

.notification-menu summary:hover,
.icon-button:hover {
    border-color: #ffb4a6;
    color: #ff3b2f;
    background: #fff4f1;
}

.notification-menu summary::-webkit-details-marker {
    display: none;
}

.notification-dot {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #ff1733, #ff6a12);
    font-size: 12px;
    font-weight: 700;
}

.notification-panel {
    position: absolute;
    right: 0;
    top: 52px;
    z-index: 5;
    width: 300px;
    padding: 18px;
    border: 1px solid #dce6f2;
    border-radius: 14px;
    color: #10213a;
    background: #fff;
    box-shadow: 0 18px 46px rgba(34, 77, 128, .16);
}

.notification-panel p {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid #edf2f8;
    color: #68778d;
    font-size: 14px;
}

.notification-panel small {
    display: block;
    margin-top: 4px;
    color: #9aa6b8;
    font-size: 12px;
}

.notification-link {
    display: inline-flex;
    margin-top: 8px;
    color: #198cff;
    font-weight: 800;
}

.notification-link:hover {
    color: #ff3b2f;
}

.user-chip {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border: 1px solid #dce6f2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(36, 83, 139, .07);
}

.user-chip span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(145deg, #198cff, #126fda);
    font-weight: 700;
}

.user-chip strong,
.user-chip small {
    display: block;
}

.user-chip strong {
    font-size: 13px;
    color: #10213a;
}

.user-chip small {
    color: #748197;
    font-size: 12px;
}

.content-wrap {
    width: min(1380px, 100%);
    padding: 36px 34px;
    color: #10213a;
}

.menu-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 22px;
}

.form-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 28px;
    gap: 18px;
    align-items: center;
    padding: 26px;
    border: 1px solid #dce6f2;
    border-radius: 16px;
    color: #10213a;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 32px rgba(37, 81, 132, .07);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.form-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #198cff, #5ab5ff);
    opacity: 0;
    transition: opacity .2s ease;
}

.form-card:hover {
    border-color: #9dccff;
    box-shadow: 0 20px 45px rgba(34, 111, 194, .15);
    transform: translateY(-4px);
}

.form-card:hover::before {
    opacity: 1;
}

.form-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 14px;
}

.form-icon svg {
    width: 34px;
    height: 34px;
}

.form-icon-activity {
    color: #167be9;
    background: #eaf4ff;
}

.form-icon-travel {
    color: #ff3a32;
    background: #fff0ed;
}

.form-icon-asset {
    color: #ff6c12;
    background: #fff4e9;
}

.form-icon-people {
    color: #178bdc;
    background: #eaf8ff;
}

.form-copy {
    min-width: 0;
}

.form-copy strong {
    display: block;
    overflow-wrap: anywhere;
    color: #10213a;
    font-size: 21px;
    font-weight: 750;
}

.form-copy small {
    display: block;
    margin-top: 6px;
    color: #6e7d92;
    font-size: 14px;
    line-height: 1.4;
}

.card-menu {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    color: #198cff;
    background: #edf6ff;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.card-menu svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.form-card:hover .card-menu {
    color: #fff;
    background: linear-gradient(135deg, #ff263b, #ff7110);
    transform: translateX(2px);
}

.placeholder-panel {
    max-width: 720px;
    padding: 28px;
    border: 1px solid #dde4ef;
    border-radius: 8px;
    background: #fff;
}

.placeholder-panel h2 {
    font-size: 26px;
}

.placeholder-panel p {
    color: #526173;
    line-height: 1.6;
}

.placeholder-panel a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 16px;
    border-radius: 6px;
    color: #fff;
    background: #1f6feb;
    font-weight: 700;
}

.user-form-panel {
    max-width: 620px;
    padding: 30px;
    border: 1px solid #dce6f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(37, 81, 132, .09);
}

.dashboard-form {
    display: grid;
    gap: 16px;
}

.dashboard-form label {
    display: grid;
    gap: 8px;
    color: #17233b;
    font-size: 14px;
    font-weight: 700;
}

.dashboard-form input,
.dashboard-form select {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid #d8e0eb;
    border-radius: 9px;
    color: #17233b;
    background: #fff;
}

.dashboard-form input:focus,
.dashboard-form select:focus {
    border-color: #198cff;
    outline: 3px solid rgba(25, 140, 255, .13);
}

.dashboard-form button {
    min-height: 50px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(100deg, #ff1431, #ff4c1b 55%, #ff7908);
    box-shadow: 0 12px 26px rgba(255, 65, 24, .2);
    font-weight: 700;
    cursor: pointer;
}

.dashboard-form button:hover {
    box-shadow: 0 15px 30px rgba(255, 65, 24, .3);
    transform: translateY(-1px);
}

.form-actions-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.form-actions-row a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #a9d4ff;
    border-radius: 8px;
    color: #147ce8;
    background: #edf7ff;
    font-weight: 700;
}

.form-actions-row a:hover {
    color: #fff;
    background: #198cff;
}

.form-success {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 6px;
    color: #065f46;
    background: #d1fae5;
    font-weight: 700;
}

.statistics-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.statistics-card,
.statistics-panel {
    border: 1px solid #dce6f2;
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 32px rgba(37, 81, 132, .07);
}

.statistics-card {
    min-height: 130px;
    display: grid;
    gap: 8px;
    align-content: center;
    padding: 22px;
}

.statistics-card-total {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #168cff, #126fda);
}

.statistics-card span,
.statistics-card small {
    color: #6e7d92;
    font-size: 13px;
}

.statistics-card-total span,
.statistics-card-total small {
    color: rgba(255, 255, 255, .82);
}

.statistics-card strong {
    color: #10213a;
    font-size: 34px;
    line-height: 1;
}

.statistics-card-total strong {
    color: #fff;
}

.statistics-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .75fr);
    gap: 24px;
}

.statistics-panel {
    overflow: hidden;
}

.statistics-panel-heading {
    padding: 20px 22px;
    border-bottom: 1px solid #edf2f8;
}

.statistics-panel-heading h2 {
    margin: 0;
    color: #10213a;
    font-size: 20px;
}

.statistics-table-wrap {
    overflow-x: auto;
}

.statistics-table {
    width: 100%;
    border-collapse: collapse;
}

.statistics-table th,
.statistics-table td {
    padding: 15px 22px;
    border-bottom: 1px solid #edf2f8;
    color: #17233b;
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
}

.statistics-table th {
    color: #000;
    background: #f7fbff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.statistics-table .text-center {
    text-align: center;
}

.statistics-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid #edf2f8;
}

.pagination-button,
.pagination-status {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.pagination-button {
    padding: 0 12px;
    border: 1px solid #a9d4ff;
    color: #147ce8;
    background: #edf7ff;
}

.pagination-button:hover {
    color: #fff;
    background: #198cff;
}

.pagination-button.disabled {
    border-color: #dce6f2;
    color: #9aa6b8;
    background: #f4f7fb;
}

.pagination-status {
    color: #6e7d92;
}

@media (max-width: 980px) {
    .auth-body {
        overflow: auto;
        padding: 28px 0;
    }

    .auth-shell {
        width: min(700px, calc(100vw - 32px));
    }

    .login-card {
        grid-template-columns: minmax(250px, .82fr) minmax(360px, 1.18fr);
    }

    .login-intro {
        padding: 42px 32px 34px;
    }

    .login-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .login-panel {
        padding: 44px 36px 30px;
    }

    .login-dot-loader {
        width: 186px;
        height: 126px;
        transform: translateX(0);
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        padding: 12px 18px;
        border-right: 0;
        border-bottom: 1px solid #203654;
    }

    .sidebar-nav {
        display: flex;
    }

    .menu-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .statistics-summary,
    .statistics-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .auth-body {
        display: block;
    }

    .auth-shell {
        width: min(460px, calc(100vw - 28px));
        margin: 0 auto;
    }

    .login-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .login-intro {
        padding: 30px 28px 26px;
        border-right: 0;
        border-bottom: 1px solid #e8eef6;
    }

    .login-brand {
        align-items: center;
        flex-direction: row;
    }

    .brand-mark {
        width: 64px;
        height: 64px;
    }

    .login-brand h1 {
        font-size: 29px;
    }

    .login-accent {
        margin: 20px 0 14px;
    }

    .login-description {
        margin-bottom: 0;
    }

    .login-dot-loader {
        width: min(200px, 72vw);
        height: 112px;
        margin-top: 18px;
        transform: translateX(0);
    }

    .login-illustration {
        display: none;
    }

    .login-panel {
        padding: 32px 28px 26px;
    }

    .login-panel-heading {
        margin-bottom: 24px;
    }

    .login-help {
        margin-top: 28px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .user-chip {
        flex: 1;
    }

    .content-wrap {
        padding: 18px;
    }

    .menu-section {
        grid-template-columns: 1fr;
    }

    .form-card {
        grid-template-columns: 58px minmax(0, 1fr) 24px;
        padding: 18px;
    }

    .form-icon {
        width: 52px;
        height: 52px;
    }

    .statistics-summary {
        grid-template-columns: 1fr;
    }

    .statistics-table th,
    .statistics-table td {
        padding: 13px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dot-loader-ball {
        animation: none;
    }
}
