body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
}

.container {
    max-width: 1200px;
}

.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 10px;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.table {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

.form-control {
    border-radius: 5px;
}

/* Hero / CTA improvements */
.hero {
    min-height: 420px; /* ensure hero isn't excessively tall */
    display: flex;
    align-items: center; /* vertical center */
}
.hero .container {
    max-width: 900px;
}
.hero h1 {
    font-size: 2.5rem;
    line-height: 1.1;
}
.hero p.lead {
    font-size: 1.05rem;
    opacity: 0.95;
}
.hero .btn {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    border-radius: 8px;
}

/* Feature icons */
.feature-icon {
    font-size: 3.5rem;
    color: #6f63e6; /* brand purple */
    margin-bottom: 1rem;
}

/* Navbar tweaks */
.navbar-brand i {
    margin-right: 8px;
}
.navbar .btn-primary {
    padding: 0.45rem 0.9rem;
}

/* Reduce large white spaces on small screens */
@media (max-width: 768px) {
    .hero { padding: 60px 0; min-height: 360px; }
    .hero h1 { font-size: 1.8rem; }
    .feature-icon { font-size: 2.5rem; }
}

/* Login page styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #f6f7fb 0%, #eef2ff 50%);
}
.login-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(34, 41, 47, 0.08);
    overflow: hidden;
}
.login-card .card-body {
    padding: 2rem;
}
.login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}
.login-brand h4 { margin: 0; }
.form-control:focus { box-shadow: 0 0 0 0.15rem rgba(111,99,230,0.15); border-color: #6f63e6; }
.btn-login {
    background: linear-gradient(90deg, #6f63e6 0%, #8a6ffb 100%);
    border: none;
    color: #fff;
    font-weight: 600;
}
.login-footer {
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
}

@media (max-width: 576px) {
    .login-card { margin: 1rem; }
}

/* Split login layout */
.login-wrapper {
    display: flex;
    align-items: stretch;
    min-height: 80vh;
    background: transparent;
}
.login-illustration {
    flex: 1 1 55%;
    background: linear-gradient(135deg, #6f63e6 0%, #8a6ffb 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}
.login-illustration::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 18px 18px;
    mix-blend-mode: overlay;
}
.login-illustration .illustration-inner {
    max-width: 480px;
    text-align: center;
}
.login-illustration h2 {
    font-size: 2rem;
    margin-top: 1rem;
}
.login-form-col {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}
.input-with-icon { position: relative; }
.input-with-icon .fa { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #6c757d; }
.input-with-icon input { padding-left: 40px; }
.form-help { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
.forgot-link { color: #6f63e6; text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }

@media (max-width: 992px) {
    .login-wrapper { flex-direction: column; }
    .login-illustration, .login-form-col { flex: none; width: 100%; padding: 2rem; }
}

    /* Visual enhancements */
    .login-card { border-radius: 14px; overflow: hidden; }
    .login-card .card-body { padding: 2.25rem; }
    .login-card { border: 1px solid rgba(18, 18, 18, 0.03); }
    .login-illustration { position: relative; }
    .login-illustration svg { opacity: 0.95; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.12)); }
    .login-brand h4 { font-size: 1.05rem; font-weight: 700; }
    .login-brand .text-muted { font-size: 0.95rem; }
    .btn-login { transition: transform .12s ease, box-shadow .12s ease; }
    .btn-login:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(111,99,230,0.18); }
    .form-check-input { width: 1.05em; height: 1.05em; }
    .alert { border-radius: 8px; }

    /* Slight page padding to avoid flush top on large screens */
    body { padding-top: 18px; }

    /* Accessibility: focus outlines */
    .form-control:focus { outline: none; }
    .forgot-link:focus { outline: 2px dashed rgba(111,99,230,0.25); outline-offset: 3px; }