* {
    box-sizing: border-box;
}

:root {
    --primary: #6c63ff;
    --primary-dark: #554de0;
    --text: #1f2937;
    --muted: #718096;
    --border: #e4e8f0;
    --soft: #f7f8fc;
    --white: #ffffff;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: #f7f8fc;
}

.login-body {
    min-height: 100vh;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 45% 55%;
}

.login-visual {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #f1efff 0%, #e9f7ff 100%);
    display: flex;
    align-items: center;
    padding: 8vw;
}

.login-visual::before,
.login-visual::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}

.login-visual::before {
    width: 360px;
    height: 360px;
    background: rgba(108, 99, 255, .12);
    right: -150px;
    top: -100px;
}

.login-visual::after {
    width: 280px;
    height: 280px;
    background: rgba(89, 200, 255, .13);
    left: -120px;
    bottom: -100px;
}

.visual-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.brand-mark,
.mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    letter-spacing: .5px;
    box-shadow: 0 12px 28px rgba(108, 99, 255, .22);
}

.eyebrow,
.small-title {
    display: block;
    margin-top: 32px;
    margin-bottom: 15px;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 800;
    color: var(--primary);
}

.visual-content h1 {
    margin: 0;
    font-size: clamp(40px, 4vw, 64px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.visual-content h1 span {
    color: var(--primary);
}

.visual-content > p {
    max-width: 520px;
    margin: 24px 0 0;
    color: #68738a;
    font-size: 17px;
    line-height: 1.7;
}

.visual-points {
    margin-top: 34px;
    display: grid;
    gap: 14px;
    color: #4b5563;
    font-weight: 600;
}

.visual-points span {
    display: inline-flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    box-shadow: 0 5px 18px rgba(70, 70, 100, .08);
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #fff;
}

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

.mobile-brand {
    display: none;
}

.login-card h2 {
    margin: 0;
    font-size: 32px;
    letter-spacing: -.8px;
}

.subtext {
    margin: 10px 0 32px;
    color: var(--muted);
    line-height: 1.6;
}

.login-card label {
    display: block;
    margin: 0 0 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

.input-wrap {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa4b2;
    font-size: 13px;
}

.input-wrap input {
    width: 100%;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    padding: 0 78px 0 42px;
    font-size: 14px;
    color: var(--text);
    background: #fbfcfe;
    transition: .2s ease;
}

.input-wrap input:focus {
    background: #fff;
    border-color: #aaa4ff;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, .09);
}

.show-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}

.login-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3px 0 25px;
}

.remember {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
}

.remember input {
    accent-color: var(--primary);
}

.login-btn {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 22px rgba(108, 99, 255, .20);
    transition: .2s ease;
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.login-btn.loading {
    opacity: .75;
    pointer-events: none;
}

.arrow {
    font-size: 19px;
}

.alert-error {
    padding: 13px 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    font-size: 13px;
}

.security-note {
    margin: 25px 0 0;
    text-align: center;
    color: #98a2b3;
    font-size: 12px;
}

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

    .login-visual {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 30px 20px;
    }

    .mobile-brand {
        display: flex;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .login-panel {
        padding: 25px 18px;
    }

    .login-card h2 {
        font-size: 27px;
    }
}

/* Temporary dashboards */

.dashboard-body {
    min-height: 100vh;
    background: #f6f8fc;
}

.topbar {
    height: 72px;
    padding: 0 28px;
    background: #fff;
    border-bottom: 1px solid #e9edf4;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
}

.topbar-logo {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ecebff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.logout-link {
    color: #667085;
    text-decoration: none;
    font-size: 13px;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 24px;
}

.welcome {
    margin-bottom: 28px;
}

.welcome h1 {
    margin: 0 0 7px;
    font-size: 30px;
}

.welcome p {
    margin: 0;
    color: #7a8495;
}

.role-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eeedff;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e9edf4;
    border-radius: 16px;
    padding: 22px;
}

.stat-card .label {
    color: #7b8494;
    font-size: 13px;
    font-weight: 600;
}

.stat-card .value {
    margin-top: 9px;
    font-size: 29px;
    font-weight: 800;
}

.info-card {
    margin-top: 20px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e9edf4;
    border-radius: 16px;
}

.info-card h3 {
    margin-top: 0;
}

.info-card p {
    color: #707b8e;
    line-height: 1.6;
}

@media (max-width: 750px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .topbar {
        padding: 0 16px;
    }

    .dashboard-container {
        padding: 25px 16px;
    }
}
/* Navigation Bar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 15px 30px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    flex-wrap: wrap;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
}

.topbar-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    border-radius: 10px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.nav-link {
    text-decoration: none;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 7px;
    transition: 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: #eff6ff;
    color: #2563eb;
}

.nav-link.active {
    background: #2563eb;
    color: #ffffff;
}

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

.avatar {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.user-details strong {
    font-size: 14px;
    color: #1f2937;
}

.user-details small {
    font-size: 12px;
    color: #6b7280;
}

.logout-link {
    text-decoration: none;
    background: #fee2e2;
    color: #dc2626;
    padding: 9px 15px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
    white-space: nowrap;
}

.logout-link:hover {
    background: #dc2626;
    color: #ffffff;
}

/* Responsive Navigation */
@media (max-width: 1100px) {
    .topbar {
        justify-content: center;
    }

    .main-nav {
        order: 3;
        flex-basis: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .topbar {
        padding: 15px;
        gap: 15px;
    }

    .topbar-brand {
        font-size: 15px;
    }

    .user-details {
        display: none;
    }

    .main-nav {
        gap: 5px;
    }

    .nav-link {
        font-size: 12px;
        padding: 9px 10px;
    }
}/* Login page layout */
.login-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Main login section */
.login-shell {
    flex: 1;
    min-height: 0;
}

/* Footer */
.footer {
    width: 100%;
    text-align: center;
    padding: 15px 10px;
    background-color: #f8f9fa;
    color: #333;
    font-size: 14px;
    border-top: 1px solid #ddd;
    margin-top: auto;
}

.footer p {
    margin: 0;
}
.forgot-link {
    color: #3478f6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}