:root {
    --primary: #4f46e5;
    --primary-dark: #312e81;
    --soft-bg: #f5f7fb;
    --card: #ffffff;
    --text: #1f2937;
}

body {
    background: var(--soft-bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

.app-navbar {
    background: linear-gradient(120deg, #111827, #312e81, #4f46e5);
    box-shadow: 0 10px 30px rgba(17, 24, 39, .18);
}

.app-main {
    padding: 28px 0 48px;
}

.login-body {
    background: radial-gradient(circle at top left, #dbeafe, transparent 32%), linear-gradient(135deg, #eef2ff, #f8fafc 45%, #dbeafe);
    min-height: 100vh;
    overflow-x: hidden;
}

.login-card {
    width: min(1050px, 100%);
    border-radius: 32px;
    box-shadow: 0 30px 90px rgba(30, 41, 59, .2);
    animation: slideUp .7s ease both;
}

.login-hero {
    min-height: 620px;
    background: linear-gradient(145deg, rgba(79,70,229,.95), rgba(14,165,233,.92)), url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    font-size: 30px;
    color: white;
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    box-shadow: 0 20px 40px rgba(79, 70, 229, .25);
}

.login-bg-shape {
    position: fixed;
    border-radius: 999px;
    filter: blur(4px);
    opacity: .25;
    animation: float 7s ease-in-out infinite;
}
.shape-one { width: 220px; height: 220px; background: #4f46e5; top: 8%; left: 6%; }
.shape-two { width: 280px; height: 280px; background: #06b6d4; right: 6%; bottom: 5%; animation-delay: 1.5s; }

.demo-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 14px 16px;
    color: #475569;
    font-size: 14px;
}

.dashboard-hero {
    background: linear-gradient(135deg, #111827, #4f46e5 55%, #06b6d4);
    box-shadow: 0 25px 70px rgba(79, 70, 229, .22);
}
.hero-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    right: -50px;
    top: -80px;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
}

.stat-card {
    background: white;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .07);
    border: 1px solid rgba(226, 232, 240, .8);
    height: 100%;
}
.stat-card span {
    display: block;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 10px;
}
.stat-card strong {
    font-size: 34px;
    line-height: 1;
}

.page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.form-shell {
    max-width: 880px;
}

.card, .form-control, .form-select, .btn {
    border-radius: 14px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(79,70,229,.12);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    border: none;
    box-shadow: 0 10px 25px rgba(79,70,229,.22);
}

.btn-primary:hover {
    filter: brightness(.96);
}

.table-details {
    max-width: 420px;
}

.action-cell { white-space: nowrap; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 768px) {
    .page-title-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .page-title-row .btn {
        width: 100%;
    }
    .login-card {
        border-radius: 24px;
    }
    .app-main {
        padding-top: 18px;
    }
    .action-cell .btn, .action-cell form {
        margin-top: 4px;
    }
}
