:root {
    --laziq-navy: #071b33;
    --laziq-blue: #0b4f8a;
    --laziq-blue-2: #1268a8;
    --laziq-cyan: #18b9e6;

    --laziq-bg: #f4f7fb;
    --laziq-surface: #ffffff;
    --laziq-border: #e2e8f0;

    --laziq-text: #142033;
    --laziq-muted: #64748b;

    --laziq-danger: #dc2626;
    --laziq-warning: #d97706;
    --laziq-success: #15803d;

    --laziq-radius: 14px;
    --laziq-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

* {
    box-sizing: border-box;
}

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

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

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

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

/* -------------------------
   Authentication
------------------------- */

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: var(--laziq-surface);
}

.auth-brand-panel {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 100vh;
    padding: 64px;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(24, 185, 230, 0.28),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            var(--laziq-navy),
            var(--laziq-blue)
        );
}

.auth-brand-panel::after {
    content: "";
    position: absolute;

    width: 420px;
    height: 420px;

    right: -150px;
    bottom: -180px;

    border: 70px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.brand-mark {
    position: relative;
    z-index: 1;

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

    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.brand-icon {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        var(--laziq-blue-2),
        var(--laziq-cyan)
    );

    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.brand-iq {
    color: var(--laziq-cyan);
}

.auth-message {
    position: relative;
    z-index: 1;

    max-width: 580px;
    padding-bottom: 60px;
}

.auth-message h1 {
    margin: 0 0 20px;

    max-width: 560px;

    font-size: clamp(40px, 5vw, 66px);
    line-height: 1.02;
    letter-spacing: -2.5px;
}

.auth-message p {
    margin: 0;

    max-width: 510px;

    color: rgba(255, 255, 255, 0.74);

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

.auth-footer {
    position: relative;
    z-index: 1;

    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 48px;
}

.login-container {
    width: min(430px, 100%);
}

.login-eyebrow {
    margin-bottom: 12px;

    color: var(--laziq-blue);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

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

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

.login-subtitle {
    margin: 0 0 34px;

    color: var(--laziq-muted);
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;

    margin-bottom: 8px;

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

.form-control {
    width: 100%;

    padding: 14px 15px;

    border: 1px solid #cbd5e1;
    border-radius: 10px;

    outline: none;

    background: #ffffff;
    color: var(--laziq-text);

    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--laziq-cyan);

    box-shadow:
        0 0 0 4px rgba(24, 185, 230, 0.12);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin: 8px 0 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--laziq-muted);
    font-size: 14px;
}

.btn-primary {
    width: 100%;

    padding: 14px 18px;

    border: 0;
    border-radius: 10px;

    cursor: pointer;

    background: linear-gradient(
        135deg,
        var(--laziq-blue),
        var(--laziq-blue-2)
    );

    color: #ffffff;

    font-weight: 800;

    transition:
        transform 0.15s,
        box-shadow 0.15s;
}

.btn-primary:hover {
    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(11, 79, 138, 0.2);
}

.alert-error {
    margin-bottom: 24px;
    padding: 13px 15px;

    border: 1px solid #fecaca;
    border-radius: 10px;

    background: #fef2f2;
    color: #991b1b;

    font-size: 14px;
}

/* -------------------------
   Dashboard
------------------------- */

.app-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);

    min-height: 100vh;
}

.sidebar {
    display: flex;
    flex-direction: column;

    min-height: 100vh;
    padding: 24px 18px;

    background: var(--laziq-navy);
    color: #ffffff;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 4px 8px 30px;

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

.nav-section-title {
    margin: 20px 10px 8px;

    color: #71849b;

    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-bottom: 4px;
    padding: 11px 12px;

    border-radius: 9px;

    color: #b9c8d8;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(24, 185, 230, 0.11);
    color: #ffffff;
}

.nav-link.active {
    box-shadow:
        inset 3px 0 0 var(--laziq-cyan);
}

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

.main-area {
    min-width: 0;
}

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

    min-height: 72px;
    padding: 0 32px;

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

    background: #ffffff;
}

.topbar-context {
    color: var(--laziq-muted);
    font-size: 14px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: #e5f7fc;
    color: var(--laziq-blue);

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

.logout-button {
    padding: 8px 10px;

    border: 0;
    cursor: pointer;

    background: transparent;
    color: var(--laziq-muted);

    font-weight: 600;
}

.page-content {
    padding: 34px;
}

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 30px;
}

.page-heading h1 {
    margin: 0 0 8px;

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

.page-heading p {
    margin: 0;

    color: var(--laziq-muted);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.module-card {
    padding: 24px;

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

    background: #ffffff;
    box-shadow: var(--laziq-shadow);
}

.module-badge {
    display: inline-flex;

    margin-bottom: 18px;
    padding: 6px 9px;

    border-radius: 7px;

    background: #e8f8fd;
    color: var(--laziq-blue);

    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.module-card h3 {
    margin: 0 0 9px;
    font-size: 19px;
}

.module-card p {
    margin: 0;

    color: var(--laziq-muted);

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

.module-card.disabled {
    opacity: 0.55;
}

@media (max-width: 900px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        min-height: auto;
        padding: 36px;
    }

    .auth-message {
        padding: 70px 0 20px;
    }

    .auth-message h1 {
        font-size: 42px;
    }

    .auth-form-panel {
        padding: 48px 28px;
    }

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

    .sidebar {
        display: none;
    }

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