:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --ink: #182033;
    --muted: #697386;
    --border: #dfe4ec;
    --header-height: 60px;
    --surface: #ffffff;
    --text: #182033;
    --text-light: #697386;
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, .08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, "Segoe UI", sans-serif;
}

.auth-page {
    background: #fff;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}

.auth-visual {
    position: relative;
    overflow: hidden;
    align-items: flex-end;
    padding: 8vw;
    background: linear-gradient(145deg, #17134f 0%, #312e81 50%, #4f46e5 100%);
    color: white;
}

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

.visual-badge {
    display: inline-block;
    padding: 8px 13px;
    border: 1px solid #ffffff40;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.visual-content h1 {
    margin: 24px 0 18px;
    font-size: clamp(3rem, 5vw, 5.5rem);
    line-height: .98;
    letter-spacing: -4px;
    font-weight: 750;
}

.visual-content p {
    max-width: 500px;
    margin: 0;
    color: #e0e7ff;
    font-size: 1.05rem;
    line-height: 1.7;
}

.visual-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    background: #ffffff0e;
    border: 1px solid #ffffff12;
}

.visual-orb-one {
    width: 440px;
    height: 440px;
    top: -130px;
    right: -100px;
}

.visual-orb-two {
    width: 300px;
    height: 300px;
    right: 14%;
    bottom: 12%;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

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

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #3730a3);
    color: white;
    font-size: 1.45rem;
    font-weight: 800;
    box-shadow: 0 10px 24px #4f46e535;
}

.brand-name {
    font-size: 1.18rem;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.3px;
}

.brand-caption {
    margin-top: 4px;
    color: var(--muted);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.company-logo {
    display: block;
    max-width: 190px;
    max-height: 58px;
    object-fit: contain;
}

.eyebrow {
    color: var(--primary);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.login-title {
    margin: 9px 0;
    font-size: 2rem;
    font-weight: 750;
    letter-spacing: -1px;
}

.login-subtitle {
    color: var(--muted);
}

.form-label {
    color: #344054;
    font-size: .86rem;
    font-weight: 650;
}

.form-control {
    min-height: 52px;
    padding: 12px 15px;
    border-color: var(--border);
    border-radius: 10px;
}

.form-control:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 4px #6366f11a;
}

.form-control::placeholder {
    color: #a4acb9;
}

.login-button {
    min-height: 52px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #5b55e7, var(--primary-dark));
    font-weight: 650;
    box-shadow: 0 12px 26px #4f46e528;
}

.login-button:hover {
    background: linear-gradient(135deg, #4f46e5, #312e81);
    transform: translateY(-1px);
}

.security-note {
    margin-top: 24px;
    color: #98a2b3;
    font-size: .76rem;
    text-align: center;
}

.dashboard-page {
    min-height: 100vh;
    background: #f6f7fb;
}

.dashboard-nav {
    position: relative;
    z-index: 30;
    min-height: 73px;
    background: white;
    border-bottom: 1px solid #eaecf0;
}

.brand-mark-small {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 1.1rem;
}

.company-logo-small {
    max-height: 42px;
}

.welcome-panel {
    padding: clamp(28px, 5vw, 60px);
    border: 1px solid #eaecf0;
    border-radius: 24px;
    background: white;
    box-shadow: 0 20px 50px #1018280b;
}

.welcome-panel h1 {
    font-weight: 750;
    letter-spacing: -1.5px;
}

.session-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid #e6e9ef;
    border-radius: 14px;
}

.session-card div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 22px;
    border-right: 1px solid #e6e9ef;
}

.session-card div:last-child {
    border-right: 0;
}

.session-card span {
    color: var(--muted);
    font-size: .78rem;
}

.status-active {
    color: #168554;
}

.toastify {
    border-radius: 10px;
    box-shadow: 0 14px 35px #10182826;
    font-family: inherit;
}

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

    .auth-form-panel {
        min-height: 100vh;
        padding: 32px 22px;
    }
}

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

    .session-card div {
        border-right: 0;
        border-bottom: 1px solid #e6e9ef;
    }

    .session-card div:last-child {
        border-bottom: 0;
    }
}
