:root {
    --navy: #001c54;
    --navy-light: #0c3974;
    --navy-soft: #eaf0f8;

    --background: #f5f7fa;
    --surface: #ffffff;

    --text: #263445;
    --muted: #6c7785;

    --border: #dde3ea;

    --success: #18794e;
    --danger: #b42318;
    --warning: #b76e00;

    --radius: 12px;
    --shadow: 0 6px 24px rgba(0, 28, 84, .08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--background);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

/* LOGIN */

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 520px) 1fr;
}

.login-panel {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px;
}

.login-content {
    width: 100%;
    max-width: 390px;
}

.brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: var(--navy);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    font-weight: 700;

    margin-bottom: 28px;
}

.login-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 8px;
}

.login-subtitle {
    color: var(--muted);
    margin: 0 0 32px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 19px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;

    padding: 0 13px;
    font-size: 15px;

    outline: none;
    transition: .2s;
}

.form-control:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(0, 28, 84, .09);
}

.btn-primary {
    width: 100%;
    height: 47px;
    border: 0;
    border-radius: 8px;

    background: var(--navy);
    color: white;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
    transition: .2s;
}

.btn-primary:hover {
    background: var(--navy-light);
}

.alert {
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 20px;
}

.alert-danger {
    color: #8d1710;
    background: #fff0ee;
    border: 1px solid #ffd0cb;
}

.alert-success {
    color: #12623f;
    background: #edf9f3;
    border: 1px solid #c5ecd8;
}

.login-visual {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #001c54 0%,
            #07336d 55%,
            #0c4b8d 100%
        );
}

.login-visual::before {
    content: "";
    position: absolute;
    width: 540px;
    height: 540px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    right: -160px;
    top: -120px;
}

.login-visual::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    background: rgba(255,255,255,.035);
    transform: rotate(45deg);
    bottom: -170px;
    left: 60px;
}

.login-message {
    position: absolute;
    left: 70px;
    bottom: 70px;
    right: 70px;
    color: #fff;
}

.login-message h2 {
    margin: 0 0 12px;
    font-size: 32px;
}

.login-message p {
    margin: 0;
    max-width: 520px;
    line-height: 1.6;
    color: rgba(255,255,255,.78);
}

/* DASHBOARD */

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 250px;
    background: var(--navy);
    color: #fff;
    padding: 24px 18px;
}

.sidebar-brand {
    font-size: 20px;
    font-weight: 700;
    padding: 10px 12px 26px;
}

.sidebar-nav a {
    display: block;
    padding: 12px 13px;
    margin-bottom: 5px;
    border-radius: 8px;

    color: rgba(255,255,255,.82);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.main {
    flex: 1;
    min-width: 0;
}

.topbar {
    height: 70px;
    background: #fff;
    border-bottom: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;
}

.content {
    padding: 30px;
}

.page-title {
    margin: 0 0 5px;
    font-size: 26px;
    color: var(--navy);
}

.page-subtitle {
    margin: 0 0 25px;
    color: var(--muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.card-label {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 9px;
}

.card-value {
    color: var(--navy);
    font-size: 30px;
    font-weight: 700;
}

@media (max-width: 900px) {

    .login-page {
        display: block;
    }

    .login-panel {
        min-height: 100vh;
        padding: 25px;
    }

    .login-visual {
        display: none;
    }

    .sidebar {
        display: none;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {

    .cards {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 20px;
    }
}