* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {

    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;

    --purple: #7c3aed;
    --green: #16a34a;
    --orange: #ea580c;
    --red: #dc2626;

    --dark: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --light-muted: #94a3b8;

    --background: #f6f8fc;
    --white: #ffffff;

    --border: #e5e7eb;

    --shadow:
        0 8px 30px
        rgba(15, 23, 42, 0.06);

    --shadow-hover:
        0 14px 35px
        rgba(15, 23, 42, 0.10);

    --radius: 18px;
}


/* ================= BODY ================= */

body {

    font-family: "Inter", sans-serif;

    color: var(--text);

    line-height: 1.6;

    min-height: 100vh;

    background:

        radial-gradient(
            circle at 10% 10%,
            rgba(59, 130, 246, 0.13),
            transparent 28%
        ),

        radial-gradient(
            circle at 90% 20%,
            rgba(124, 58, 237, 0.12),
            transparent 30%
        ),

        radial-gradient(
            circle at 50% 90%,
            rgba(14, 165, 233, 0.08),
            transparent 30%
        ),

        #f6f8fc;

    background-attachment: fixed;

    -webkit-font-smoothing: antialiased;

    text-rendering: optimizeLegibility;
}


/* Background grid */

body::before {

    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: -1;

    opacity: 0.35;

    background-image:

        linear-gradient(
            rgba(37, 99, 235, 0.035) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(37, 99, 235, 0.035) 1px,
            transparent 1px
        );

    background-size: 35px 35px;
}


/* Background glow */

body::after {

    content: "";

    position: fixed;

    width: 420px;
    height: 420px;

    left: -180px;
    bottom: -180px;

    border-radius: 50%;

    background:

        radial-gradient(
            circle,
            rgba(37, 99, 235, 0.10),
            transparent 70%
        );

    pointer-events: none;

    z-index: -1;
}


h1,
h2,
h3,
h4,
h5,
h6 {

    font-family: "Inter", sans-serif;

    letter-spacing: -0.025em;
}


/* ================= NAVBAR ================= */

.navbar {

    height: 76px;

    background:
        rgba(255, 255, 255, 0.96);

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

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 7%;

    position: sticky;

    top: 0;

    z-index: 1000;

    backdrop-filter: blur(12px);
}


.brand {

    display: flex;

    align-items: center;

    gap: 11px;

    text-decoration: none;

    color: var(--dark);
}


.brand-icon {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );

    color: white;

    font-size: 20px;

    font-weight: 800;

    box-shadow:
        0 7px 18px
        rgba(37, 99, 235, 0.25);
}


.brand-name {

    font-size: 19px;

    font-weight: 800;

    letter-spacing: -0.035em;
}


.brand-subtitle {

    font-size: 10px;

    color: var(--light-muted);

    letter-spacing: 0.4px;
}


.nav-links {

    display: flex;

    align-items: center;

    gap: 5px;
}


.nav-links a {

    text-decoration: none;

    color: var(--muted);

    font-size: 13px;

    font-weight: 600;

    padding: 9px 14px;

    border-radius: 9px;

    transition: 0.2s ease;
}


.nav-links a:hover,
.nav-links a.active {

    background:
        var(--primary-light);

    color:
        var(--primary);
}


/* ================= CONTAINER ================= */

.dashboard-container {

    width: 86%;

    max-width: 1280px;

    margin:
        38px auto 60px;
}


/* ================= HERO ================= */

.dashboard-hero {

    min-height: 340px;

    position: relative;

    overflow: hidden;

    border-radius: 24px;

    padding: 55px;

    margin-bottom: 25px;

    background:

        linear-gradient(
            135deg,
            #0f172a 0%,
            #172554 50%,
            #312e81 100%
        );

    box-shadow:
        0 20px 50px
        rgba(30, 41, 59, 0.18);

    display: flex;

    align-items: center;
}


.dashboard-hero::before {

    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    right: -120px;
    top: -180px;

    border-radius: 50%;

    background:
        rgba(59, 130, 246, 0.20);
}


.dashboard-hero::after {

    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: 100px;
    bottom: -210px;

    border-radius: 50%;

    background:
        rgba(124, 58, 237, 0.20);
}


.hero-content {

    position: relative;

    z-index: 5;

    max-width: 680px;
}


.hero-badge {

    display: inline-block;

    padding: 7px 12px;

    border-radius: 30px;

    background:
        rgba(255, 255, 255, 0.10);

    border:
        1px solid
        rgba(255, 255, 255, 0.16);

    color: #bfdbfe;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.5px;

    margin-bottom: 18px;
}


.hero-content h1 {

    color: white;

    font-size: 44px;

    line-height: 1.12;

    letter-spacing: -0.045em;

    font-weight: 800;

    margin-bottom: 15px;
}


.hero-content h1 span {

    display: block;

    color: #93c5fd;
}


.hero-content p {

    color: #cbd5e1;

    font-size: 15px;

    max-width: 590px;

    line-height: 1.7;
}


/* ================= BUTTONS ================= */

.hero-buttons {

    display: flex;

    gap: 10px;

    margin-top: 25px;
}


.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 12px 18px;

    border-radius: 10px;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;

    transition: 0.2s ease;
}


.btn-primary {

    background: white;

    color: #1d4ed8;

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.12);
}


.btn-primary:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 25px
        rgba(0, 0, 0, 0.18);
}


.btn-secondary {

    background:
        rgba(255, 255, 255, 0.10);

    border:
        1px solid
        rgba(255, 255, 255, 0.18);

    color: white;
}


.btn-secondary:hover {

    background:
        rgba(255, 255, 255, 0.17);

    transform:
        translateY(-2px);
}


/* ================= HERO DECORATION ================= */

.hero-decoration {

    position: absolute;

    right: 80px;

    width: 260px;
    height: 260px;

    z-index: 2;
}


.money-circle {

    position: absolute;

    width: 150px;
    height: 150px;

    top: 45px;
    left: 55px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #3b82f6,
            #8b5cf6
        );

    color: white;

    font-size: 62px;

    font-weight: 800;

    box-shadow:
        0 25px 50px
        rgba(0, 0, 0, 0.22);

    animation:
        floating 4s ease-in-out infinite;
}


.floating-card {

    position: absolute;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 11px 14px;

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.95);

    color: var(--dark);

    font-size: 11px;

    font-weight: 700;

    box-shadow:
        0 12px 25px
        rgba(0, 0, 0, 0.18);
}


.card-one {

    top: 12px;

    right: 0;
}


.card-two {

    bottom: 20px;

    left: 0;
}


@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


/* ================= STATS ================= */

.stats-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    margin-bottom: 25px;
}


.stat-card {

    background: white;

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

    border-radius:
        var(--radius);

    padding: 22px;

    box-shadow:
        var(--shadow);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.stat-card:hover {

    transform:
        translateY(-4px);

    box-shadow:
        var(--shadow-hover);
}


.stat-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 17px;
}


.stat-icon {

    width: 40px;
    height: 40px;

    border-radius: 11px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 17px;

    font-weight: 800;
}


.stat-icon.blue {

    background:
        #eff6ff;

    color:
        #2563eb;
}


.stat-icon.purple {

    background:
        #f5f3ff;

    color:
        #7c3aed;
}


.stat-icon.green {

    background:
        #f0fdf4;

    color:
        #16a34a;
}


.stat-icon.orange {

    background:
        #fff7ed;

    color:
        #ea580c;
}


.stat-label {

    color:
        var(--light-muted);

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        0.7px;
}


.stat-card h2 {

    color:
        var(--dark);

    font-size:
        25px;

    font-weight:
        800;

    letter-spacing:
        -0.035em;

    margin-bottom:
        3px;
}


.stat-card p {

    color:
        var(--muted);

    font-size:
        12px;
}


/* ================= BUDGET ================= */

.budget-card {

    background:
        white;

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

    border-radius:
        var(--radius);

    padding:
        27px;

    margin-bottom:
        25px;

    box-shadow:
        var(--shadow);
}


.budget-header {

    display: flex;

    justify-content:
        space-between;

    align-items:
        center;

    margin-bottom:
        23px;
}


.section-label {

    color:
        var(--primary);

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        1px;
}


.budget-header h2,
.section-header h2 {

    color:
        var(--dark);

    font-size:
        21px;

    font-weight:
        750;

    margin-top:
        3px;
}


.small-btn {

    display:
        inline-block;

    padding:
        9px 13px;

    border-radius:
        8px;

    background:
        var(--primary-light);

    color:
        var(--primary);

    text-decoration:
        none;

    font-size:
        12px;

    font-weight:
        700;

    transition:
        0.2s ease;
}


.small-btn:hover {

    background:
        #dbeafe;
}


.budget-values {

    display:
        flex;

    justify-content:
        space-between;

    color:
        var(--muted);

    font-size:
        12px;

    font-weight:
        600;

    margin-bottom:
        9px;
}


.budget-values span:last-child {

    color:
        var(--primary);

    font-weight:
        800;
}


.progress-background {

    width:
        100%;

    height:
        11px;

    background:
        #e5e7eb;

    border-radius:
        20px;

    overflow:
        hidden;
}


.progress-bar {

    height:
        100%;

    border-radius:
        20px;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #7c3aed
        );

    transition:
        width 0.5s ease;
}


.budget-footer {

    display:
        flex;

    justify-content:
        space-between;

    margin-top:
        10px;

    color:
        var(--light-muted);

    font-size:
        11px;
}


.budget-status {

    color:
        var(--primary);

    font-weight:
        800;
}


/* ================= EXPENSES ================= */

.expenses-card {

    background:
        white;

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

    border-radius:
        var(--radius);

    padding:
        27px;

    box-shadow:
        var(--shadow);
}


.section-header {

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    margin-bottom:
        20px;
}


.table-wrapper {

    width:
        100%;

    overflow-x:
        auto;
}


table {

    width:
        100%;

    border-collapse:
        collapse;
}


thead {

    background:
        #f8fafc;
}


th {

    padding:
        13px 14px;

    text-align:
        left;

    color:
        var(--light-muted);

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        0.7px;

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


td {

    padding:
        15px 14px;

    border-bottom:
        1px solid #f1f5f9;

    color:
        var(--text);

    font-size:
        13px;
}


tbody tr {

    transition:
        0.15s ease;
}


tbody tr:hover {

    background:
        #f8fbff;
}


tbody tr:last-child td {

    border-bottom:
        none;
}


/* Expense name */

.expense-name {

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    color:
        var(--dark);

    font-weight:
        600;
}


.expense-dot {

    width:
        31px;

    height:
        31px;

    flex-shrink:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        9px;

    background:
        #eff6ff;

    color:
        var(--primary);

    font-size:
        12px;

    font-weight:
        800;
}


/* Category badge */

.category-badge {

    display:
        inline-block;

    padding:
        5px 9px;

    border-radius:
        20px;

    background:
        #eff6ff;

    color:
        #2563eb;

    font-size:
        10px;

    font-weight:
        800;
}


/* Actions */

.action-links {

    display:
        flex;

    gap:
        10px;
}


.action-links a {

    text-decoration:
        none;

    color:
        var(--primary);

    font-size:
        11px;

    font-weight:
        700;
}


.action-links a:hover {

    text-decoration:
        underline;
}


.action-links .delete-link {

    color:
        var(--red);
}


/* ================= EMPTY STATE ================= */

.empty-state {

    text-align:
        center;

    padding:
        55px 20px;
}


.empty-icon {

    width:
        58px;

    height:
        58px;

    margin:
        0 auto 15px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        16px;

    background:
        var(--primary-light);

    color:
        var(--primary);

    font-size:
        24px;

    font-weight:
        800;
}


.empty-state h3 {

    color:
        var(--dark);

    font-size:
        18px;

    margin-bottom:
        5px;
}


.empty-state p {

    color:
        var(--muted);

    font-size:
        13px;

    margin-bottom:
        8px;
}


/* ================= FOOTER ================= */

.footer {

    text-align:
        center;

    padding:
        35px 20px 45px;

    color:
        var(--light-muted);

    font-size:
        11px;
}


.footer-brand {

    display:
        flex;

    justify-content:
        center;

    align-items:
        center;

    gap:
        8px;

    margin-bottom:
        5px;
}


.footer-brand strong {

    color:
        var(--dark);

    font-size:
        13px;
}


.footer-brand span {

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


.copyright {

    margin-top:
        5px;

    color:
        #cbd5e1;
}


/* ================= OTHER PAGES ================= */

.recent {

    background:
        white;

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

    border-radius:
        var(--radius);

    padding:
        30px;

    box-shadow:
        var(--shadow);
}


.recent h2 {

    color:
        var(--dark);

    margin-bottom:
        10px;
}


.recent p {

    color:
        var(--muted);

    font-size:
        14px;
}


form {

    margin-top:
        20px;
}


label {

    display:
        block;

    color:
        var(--dark);

    font-size:
        13px;

    font-weight:
        700;

    margin-bottom:
        7px;
}


input,
select {

    width:
        100%;

    max-width:
        520px;

    padding:
        13px 14px;

    margin-bottom:
        18px;

    border:
        1px solid #cbd5e1;

    border-radius:
        9px;

    background:
        white;

    color:
        var(--text);

    font-size:
        14px;

    transition:
        0.2s ease;
}


input:focus,
select:focus {

    outline:
        none;

    border-color:
        var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.10);
}


input::placeholder {

    color:
        #94a3b8;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 1050px) {

    .hero-decoration {

        right:
            25px;

        opacity:
            0.65;
    }

    .stats-grid {

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


@media (max-width: 800px) {

    .navbar {

        height:
            auto;

        padding:
            15px 5%;

        flex-direction:
            column;

        gap:
            13px;
    }


    .nav-links {

        flex-wrap:
            wrap;

        justify-content:
            center;
    }


    .dashboard-container {

        width:
            92%;

        margin-top:
            25px;
    }


    .dashboard-hero {

        padding:
            38px 27px;

        min-height:
            380px;
    }


    .hero-content h1 {

        font-size:
            36px;
    }


    .hero-decoration {

        right:
            -45px;

        opacity:
            0.25;
    }
}


@media (max-width: 550px) {

    .brand-name {

        font-size:
            17px;
    }


    .brand-subtitle {

        font-size:
            9px;
    }


    .brand-icon {

        width:
            38px;

        height:
            38px;

        font-size:
            18px;
    }


    .nav-links {

        width:
            100%;

        gap:
            2px;
    }


    .nav-links a {

        padding:
            7px 8px;

        font-size:
            11px;
    }


    .dashboard-container {

        width:
            94%;
    }


    .dashboard-hero {

        padding:
            30px 21px;

        min-height:
            430px;

        border-radius:
            18px;
    }


    .hero-content h1 {

        font-size:
            29px;
    }


    .hero-content p {

        font-size:
            13px;
    }


    .hero-buttons {

        flex-direction:
            column;

        align-items:
            flex-start;
    }


    .stats-grid {

        grid-template-columns:
            1fr;

        gap:
            12px;
    }


    .stat-card {

        padding:
            20px;
    }


    .budget-card,
    .expenses-card {

        padding:
            20px;
    }


    .section-header,
    .budget-header {

        align-items:
            flex-start;

        gap:
            12px;
    }


    .section-header {

        flex-direction:
            column;
    }


    .budget-header {

        flex-direction:
            column;
    }


    .table-wrapper {

        overflow-x:
            auto;
    }


    table {

        min-width:
            720px;
    }
}
/* =========================================================
   AUTHENTICATION PAGES
   ========================================================= */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(
        135deg,
        #f8fafc 0%,
        #eef2ff 100%
    );
}


.auth-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
}


.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    width: fit-content;
    margin: 0 auto 32px;
}


.auth-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #172554;
    color: #ffffff;
    font-size: 23px;
    font-weight: 800;
}


.auth-brand-name {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}


.auth-brand-subtitle {
    font-size: 11px;
    color: #64748b;
    margin-top: 3px;
}


.auth-heading {
    text-align: center;
    margin-bottom: 28px;
}


.auth-heading h1 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 800;
    color: #111827;
}


.auth-heading p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}


.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.auth-form label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}


.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}


.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    border-color: #172554;
    box-shadow: 0 0 0 3px rgba(23, 37, 84, 0.10);
}


.auth-form input::placeholder {
    color: #9ca3af;
}


.remember-option {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: fit-content;
    font-weight: 500 !important;
    color: #64748b !important;
}


.remember-option input {
    width: 16px;
    height: 16px;
    accent-color: #172554;
    cursor: pointer;
}


.auth-submit {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 14px 18px;
    background: #172554;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}


.auth-submit:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
}


.auth-submit:active {
    transform: translateY(0);
}


.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 20px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
}


.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}


.auth-footer {
    text-align: center;
}


.auth-footer p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}


.auth-footer a {
    color: #172554;
    font-weight: 700;
    text-decoration: none;
}


.auth-footer a:hover {
    text-decoration: underline;
}


.auth-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}


.auth-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
}


.auth-message-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}


.auth-message-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}


.auth-message span {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    flex-shrink: 0;
}


/* =========================================================
   AUTHENTICATION RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 520px) {

    .auth-page {
        padding: 20px 14px;
    }

    .auth-card {
        padding: 30px 22px;
        border-radius: 20px;
    }

    .auth-heading h1 {
        font-size: 26px;
    }

    .auth-brand {
        margin-bottom: 26px;
    }

}
/* =========================================================
   USER NAVIGATION
   ========================================================= */

.user-welcome {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.logout-link {
    color: #dc2626 !important;
    font-weight: 600;
}

.logout-link:hover {
    color: #b91c1c !important;
}


/* =========================================================
   AUTHENTICATION PAGES
   ========================================================= */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(
        135deg,
        #f8fafc 0%,
        #eef2ff 100%
    );
}


.auth-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
}


.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    width: fit-content;
    margin: 0 auto 32px;
}


.auth-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #172554;
    color: #ffffff;
    font-size: 23px;
    font-weight: 800;
}


.auth-brand-name {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}


.auth-brand-subtitle {
    font-size: 11px;
    color: #64748b;
    margin-top: 3px;
}


.auth-heading {
    text-align: center;
    margin-bottom: 28px;
}


.auth-heading h1 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 800;
    color: #111827;
}


.auth-heading p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}


.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.auth-form label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}


.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}


.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    border-color: #172554;
    box-shadow: 0 0 0 3px rgba(23, 37, 84, 0.10);
}


.auth-form input::placeholder {
    color: #9ca3af;
}


.remember-option {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: fit-content;
    font-weight: 500 !important;
    color: #64748b !important;
}


.remember-option input {
    width: 16px;
    height: 16px;
    accent-color: #172554;
    cursor: pointer;
}


.auth-submit {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 14px 18px;
    background: #172554;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}


.auth-submit:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
}


.auth-submit:active {
    transform: translateY(0);
}


.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 20px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
}


.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}


.auth-footer {
    text-align: center;
}


.auth-footer p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}


.auth-footer a {
    color: #172554;
    font-weight: 700;
    text-decoration: none;
}


.auth-footer a:hover {
    text-decoration: underline;
}


.auth-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}


.auth-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
}


.auth-message-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}


.auth-message-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}


.auth-message span {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    flex-shrink: 0;
}


/* =========================================================
   AUTHENTICATION RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 520px) {

    .auth-page {
        padding: 20px 14px;
    }

    .auth-card {
        padding: 30px 22px;
        border-radius: 20px;
    }

    .auth-heading h1 {
        font-size: 26px;
    }

    .auth-brand {
        margin-bottom: 26px;
    }

}
/* =========================================================
   ADD EXPENSE PAGE
   ========================================================= */

.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.page-header h1 {
    margin: 0 0 8px;
    font-size: 32px;
    color: #0f172a;
}

.page-header p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #ffffff;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.secondary-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}


/* ================= FORM CARD ================= */

.form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
}

.form-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.form-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 12px;
    font-size: 23px;
}

.form-card-header h2 {
    margin: 0 0 4px;
    font-size: 21px;
    color: #0f172a;
}

.form-card-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}


/* ================= FORM ================= */

.expense-form {
    max-width: 750px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    outline: none;
    transition: 0.2s ease;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
    font-size: 12px;
}


/* ================= AMOUNT ================= */

.amount-input-wrapper {
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-weight: 700;
    pointer-events: none;
}

.amount-input-wrapper input {
    padding-left: 34px;
}


/* ================= AI BOX ================= */

.ai-info-box {
    display: flex;
    gap: 14px;
    padding: 17px;
    margin: 28px 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.ai-info-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.ai-info-box strong {
    display: block;
    margin-bottom: 5px;
    color: #334155;
    font-size: 14px;
}

.ai-info-box p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}


/* ================= ACTIONS ================= */

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.cancel-btn {
    padding: 12px 18px;
    border-radius: 9px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.cancel-btn:hover {
    background: #f8fafc;
}

.primary-btn {
    border: none;
    padding: 12px 20px;
    border-radius: 9px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.primary-btn:hover {
    background: #1d4ed8;
}

.primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}


/* ================= TIPS ================= */

.tips-card {
    margin-top: 25px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.tips-title {
    margin-bottom: 18px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
}

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

.tip-item {
    display: flex;
    gap: 12px;
}

.tip-item > span {
    font-size: 20px;
}

.tip-item strong {
    display: block;
    margin-bottom: 4px;
    color: #334155;
    font-size: 13px;
}

.tip-item p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .page-container {
        padding: 25px 16px 45px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-card {
        padding: 22px;
    }

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

    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .primary-btn,
    .cancel-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

}