:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-soft: #f7f8fa;
    --border: #e7e9ee;

    --text: #15171b;
    --muted: #737986;
    --muted-2: #a2a7b1;

    --dark: #12151a;
    --dark-2: #1a1e24;

    --accent: #7158e8;
    --accent-hover: #6149d5;
    --accent-soft: #f0edff;

    --success: #268a64;
    --danger: #c74747;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --shadow:
        0 10px 40px rgba(20, 24, 32, .07);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
    background: var(--bg);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.hidden {
    display: none !important;
}


/* BRAND */

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

.brand-symbol {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #8069f4,
            #5d44d6
        );

    color: #fff;

    font-size: 20px;
    font-weight: 800;

    box-shadow:
        0 8px 24px
        rgba(113, 88, 232, .28);
}

.brand > div:last-child {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.brand strong {
    font-size: 20px;
    letter-spacing: -.5px;
}

.brand span {
    font-size: 20px;
    opacity: .66;
}

.brand-light strong,
.brand-light span {
    color: #fff;
}


/* LOGIN */

.login-page {
    min-height: 100vh;

    display: grid;
    grid-template-columns:
        minmax(440px, .92fr)
        minmax(480px, 1.08fr);
}

.login-visual {
    position: relative;

    overflow: hidden;

    padding: 46px 54px;

    display: flex;
    flex-direction: column;

    color: #fff;

    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(125, 101, 243, .62),
            transparent 38%
        ),
        radial-gradient(
            circle at 95% 86%,
            rgba(72, 48, 180, .38),
            transparent 38%
        ),
        #111319;
}

.login-visual::before {
    content: "";

    position: absolute;

    width: 460px;
    height: 460px;

    border: 1px solid
        rgba(255, 255, 255, .07);

    border-radius: 50%;

    right: -180px;
    top: 90px;
}

.login-visual::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    border: 1px solid
        rgba(255, 255, 255, .06);

    border-radius: 50%;

    right: -25px;
    top: 190px;
}

.visual-content {
    position: relative;
    z-index: 2;

    margin: auto 0;

    max-width: 590px;
}

.eyebrow {
    display: inline-flex;

    margin-bottom: 22px;

    color: #c9c2ff;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1.6px;
}

.visual-content h1 {
    margin: 0;

    max-width: 620px;

    font-size: clamp(
        40px,
        4.3vw,
        72px
    );

    line-height: .99;

    letter-spacing: -3px;
}

.visual-content > p {
    max-width: 520px;

    margin:
        28px 0 40px;

    color: rgba(255,255,255,.63);

    line-height: 1.7;
    font-size: 16px;
}

.visual-features {
    display: flex;
    flex-direction: column;
    gap: 14px;

    max-width: 430px;
}

.visual-features div {
    display: flex;
    gap: 14px;
    align-items: center;

    color: rgba(255,255,255,.82);

    font-size: 14px;
}

.visual-features span {
    width: 27px;

    color: #8572ef;

    font-size: 11px;
    font-weight: 800;
}

.visual-footer {
    position: relative;
    z-index: 2;

    color: rgba(255,255,255,.35);

    font-size: 12px;
}

.visual-footer span {
    margin: 0 8px;
}

.login-area {
    display: grid;
    place-items: center;

    padding: 50px;

    background: #fafafa;
}

.login-card {
    width: 100%;
    max-width: 430px;
}

.login-heading {
    margin-bottom: 34px;
}

.small-label {
    display: block;

    margin-bottom: 9px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1.3px;
}

.login-heading h2 {
    margin: 0 0 10px;

    font-size: 34px;
    letter-spacing: -1.1px;
}

.login-heading p {
    margin: 0;

    color: var(--muted);

    line-height: 1.6;
}

.field {
    display: block;

    margin-bottom: 20px;
}

.field > span,
.field-label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 650;
}

.field input {
    width: 100%;
    height: 52px;

    border:
        1px solid
        #dcdee4;

    border-radius: 12px;

    padding: 0 15px;

    color: var(--text);

    background: #fff;

    outline: none;

    transition: .2s;
}

.field input:focus {
    border-color: var(--accent);

    box-shadow:
        0 0 0 4px
        rgba(113, 88, 232, .10);
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 58px;
}

.password-toggle {
    position: absolute;

    right: 9px;
    top: 50%;

    transform: translateY(-50%);

    border: 0;
    background: transparent;

    color: var(--muted);

    font-size: 12px;
    font-weight: 700;
}

.primary-button {
    width: 100%;
    height: 54px;

    margin-top: 7px;

    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 0;
    border-radius: 12px;

    background: var(--accent);

    color: #fff;

    font-weight: 750;

    transition: .2s;
}

.primary-button:hover {
    background: var(--accent-hover);

    transform: translateY(-1px);
}

.primary-button:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}

.security-note {
    margin: 20px 0 0;

    text-align: center;

    color: var(--muted-2);

    font-size: 11px;
}

.alert {
    margin-bottom: 19px;

    padding: 12px 14px;

    border:
        1px solid
        #f1cccc;

    border-radius: 10px;

    color: #a73939;
    background: #fff3f3;

    font-size: 13px;
}

.mobile-brand {
    display: none;
}


/* DASHBOARD */

.dashboard {
    min-height: 100vh;

    display: grid;
    grid-template-columns: 245px 1fr;
}

.sidebar {
    position: sticky;
    top: 0;

    height: 100vh;

    padding: 28px 18px 18px;

    display: flex;
    flex-direction: column;

    background: var(--dark);
    color: #fff;
}

.sidebar-brand {
    padding: 0 8px 27px;

    border-bottom:
        1px solid
        rgba(255,255,255,.07);
}

.workspace {
    margin: 23px 0 18px;
}

.workspace > span {
    display: block;

    margin:
        0 10px
        8px;

    color:
        rgba(255,255,255,.32);

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.workspace-button {
    width: 100%;

    display: grid;
    grid-template-columns:
        36px 1fr auto;

    align-items: center;
    gap: 10px;

    padding: 9px 10px;

    border:
        1px solid
        rgba(255,255,255,.07);

    border-radius: 10px;

    background:
        rgba(255,255,255,.035);

    color: #fff;

    text-align: left;
}

.workspace-avatar {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: var(--accent);

    font-weight: 800;
}

.workspace-button strong {
    display: block;

    font-size: 12px;
}

.workspace-button small {
    display: block;

    margin-top: 2px;

    color:
        rgba(255,255,255,.38);

    font-size: 10px;
}

.workspace-chevron {
    opacity: .35;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-item {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 11px 12px;

    border: 0;
    border-radius: 9px;

    color:
        rgba(255,255,255,.55);

    background: transparent;

    text-align: left;

    font-size: 13px;

    transition: .18s;
}

.menu-item:hover {
    color: #fff;
    background:
        rgba(255,255,255,.05);
}

.menu-item.active {
    color: #fff;

    background:
        rgba(113,88,232,.18);
}

.menu-item.active .menu-icon {
    color: #a895ff;
}

.menu-icon {
    width: 18px;

    color:
        rgba(255,255,255,.42);

    text-align: center;
}

.sidebar-bottom {
    margin-top: auto;
}

.user-box {
    margin-top: 15px;
    padding: 15px 7px 5px;

    display: grid;
    grid-template-columns:
        34px 1fr 27px;

    align-items: center;
    gap: 9px;

    border-top:
        1px solid
        rgba(255,255,255,.07);
}

.user-avatar {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: #fff;
    background:
        linear-gradient(
            135deg,
            #6e59de,
            #8c79f6
        );

    font-size: 10px;
    font-weight: 800;
}

.user-info {
    min-width: 0;
}

.user-info strong {
    display: block;

    overflow: hidden;

    color: rgba(255,255,255,.85);

    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-info span {
    display: block;

    margin-top: 2px;

    color:
        rgba(255,255,255,.34);

    font-size: 9px;
}

.logout-button {
    width: 27px;
    height: 27px;

    border: 0;
    border-radius: 7px;

    color:
        rgba(255,255,255,.35);

    background: transparent;
}

.logout-button:hover {
    color: #fff;
    background:
        rgba(255,255,255,.07);
}


/* MAIN */

.main {
    min-width: 0;

    background:
        #f5f6f8;
}

.topbar {
    min-height: 91px;

    padding: 20px 34px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom:
        1px solid var(--border);

    background:
        rgba(255,255,255,.86);

    backdrop-filter:
        blur(12px);
}

.page-label {
    display: block;

    margin-bottom: 4px;

    color: var(--muted-2);

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.topbar h1 {
    margin: 0;

    font-size: 21px;
    letter-spacing: -.5px;
}

.top-actions {
    display: flex;
    gap: 9px;
}

.icon-button {
    width: 39px;
    height: 39px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: #fff;

    color: var(--muted);
}

.new-event-button {
    height: 39px;

    display: flex;
    align-items: center;
    gap: 9px;

    border: 0;
    border-radius: 10px;

    padding: 0 15px;

    color: #fff;
    background: var(--accent);

    font-size: 12px;
    font-weight: 750;
}

.new-event-button span {
    font-size: 17px;
}

.page-content {
    padding: 34px;

    max-width: 1500px;

    margin: 0 auto;
}

.welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 27px;
}

.welcome-label {
    margin: 0 0 7px !important;

    color: var(--accent) !important;

    font-size: 9px !important;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.welcome h2 {
    margin: 0 0 6px;

    font-size: 27px;
    letter-spacing: -.8px;
}

.welcome > div > p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
}

.date-card {
    min-width: 160px;

    padding: 10px 14px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: #fff;
}

.date-card span {
    display: block;

    margin-bottom: 3px;

    color: var(--muted-2);

    font-size: 9px;
    text-transform: uppercase;
}

.date-card strong {
    font-size: 11px;
}

.metrics {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);

    gap: 13px;

    margin-bottom: 18px;
}

.metric-card {
    min-height: 162px;

    padding: 19px;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    background: var(--surface);
}

.metric-header {
    display: flex;
    justify-content: space-between;

    margin-bottom: 21px;
}

.metric-icon {
    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    color: var(--accent);
    background: var(--accent-soft);

    font-size: 13px;
}

.metric-trend {
    font-size: 10px;
}

.metric-trend.neutral {
    color: var(--muted-2);
}

.metric-card > strong {
    display: block;

    margin-bottom: 3px;

    font-size: 28px;
    letter-spacing: -1px;
}

.metric-card > span {
    display: block;

    font-size: 12px;
    font-weight: 650;
}

.metric-card > small {
    display: block;

    margin-top: 9px;

    color: var(--muted-2);

    font-size: 10px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(260px, .8fr);

    gap: 14px;
}

.panel {
    min-height: 350px;

    padding: 21px;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    background: var(--surface);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    padding-bottom: 17px;

    border-bottom:
        1px solid #eff0f2;
}

.panel-label {
    display: block;

    margin-bottom: 5px;

    color: var(--muted-2);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1px;
}

.panel-header h3 {
    margin: 0;

    font-size: 14px;
}

.text-button {
    border: 0;

    color: var(--accent);
    background: transparent;

    font-size: 10px;
    font-weight: 700;
}

.empty-state {
    min-height: 260px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.empty-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    margin-bottom: 13px;

    border-radius: 13px;

    color: var(--accent);
    background: var(--accent-soft);

    font-size: 18px;
}

.empty-state h4 {
    margin: 0 0 7px;

    font-size: 13px;
}

.empty-state p {
    max-width: 300px;

    margin: 0 0 16px;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.6;
}

.secondary-button {
    height: 34px;

    padding: 0 13px;

    border:
        1px solid
        #ddd8fb;

    border-radius: 8px;

    color: var(--accent);
    background: #f8f6ff;

    font-size: 10px;
    font-weight: 700;
}

.empty-activity {
    min-height: 250px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-direction: column;
}

.activity-line {
    width: 1px;
    height: 65px;

    position: relative;

    margin-bottom: 12px;

    background: #e9eaed;
}

.activity-line span {
    position: absolute;

    width: 8px;
    height: 8px;

    top: 27px;
    left: -3px;

    border-radius: 50%;

    background: #d6d8de;
}

.empty-activity p {
    color: var(--muted-2);

    font-size: 10px;
}


/* PLACEHOLDER */

.placeholder-card {
    min-height: 480px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    background: #fff;

    text-align: center;
}

.placeholder-icon {
    width: 56px;
    height: 56px;

    display: grid;
    place-items: center;

    margin-bottom: 16px;

    border-radius: 15px;

    color: var(--accent);
    background: var(--accent-soft);

    font-size: 20px;
}

.placeholder-card h2 {
    margin: 0 0 8px;

    font-size: 20px;
}

.placeholder-card p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
}


/* RESPONSIVO */

@media (max-width: 1020px) {

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

    .login-visual {
        display: none;
    }

    .login-area {
        min-height: 100vh;

        padding: 32px;
    }

    .mobile-brand {
        display: flex;

        position: absolute;

        top: 30px;
        left: 32px;
    }

    .metrics {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 760px) {

    .dashboard {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .topbar {
        padding: 18px 20px;
    }

    .page-content {
        padding: 22px 18px;
    }

    .metrics {
        grid-template-columns: 1fr 1fr;
    }

    .welcome {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }

}


@media (max-width: 500px) {

    .login-area {
        padding: 28px 22px;
    }

    .login-heading h2 {
        font-size: 29px;
    }

    .metrics {
        grid-template-columns: 1fr;
    }

    .new-event-button {
        padding: 0 11px;
    }

}
