:root {
    --primary: #0a1a5e;
    --primary-light: #1a2a7e;
    --bg-light: #f8f9fb;
    --text-muted: #6c757d;
    --border-color: #e2e5e9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    overflow-x: hidden;
}

.container-fluid {
    /* background: var(--bg-light); */
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(10, 26, 94, 0.15); }
    50% { box-shadow: 0 0 0 12px rgba(10, 26, 94, 0); }
}

@keyframes slideInBottom {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes iconPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== LEFT PANEL ===== */
.left-panel {
    background: #FFF;
    min-height: 100vh;
    padding: 30px 50px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    animation: fadeInLeft 0.6s ease-out;
    -webkit-animation: fadeInLeft 0.6s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
    text-decoration: none;
}

.logo-icon {
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.help-icon {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.help-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1);
}

.welcome-text {
    animation: fadeInUp 0.7s ease-out 0.1s both;
}

.welcome-text h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0px;
    letter-spacing: -0.5px;
}

.welcome-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 100%;
    margin-bottom: 5px;
}

/* Form */
.login-form {
    margin-top: 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    max-width: 500px;
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 8px;
}

.input-group-custom {
    position: relative;
    margin-bottom: 0;
}

.input-group-custom .form-control {
    padding: 14px 14px 14px 48px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px !important;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fff;
}

.input-group-custom .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 26, 94, 0.08);
    outline: none;
}

.input-group-custom .form-control::placeholder {
    color: #adb5bd;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    z-index: 10;
    pointer-events: none;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 10;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
}

.toggle-password:hover {
    color: var(--primary);
}

.password-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.forgot-link {
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.forgot-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    margin-left: 4px;
}

.btn-login {
    background: linear-gradient(180deg,rgba(0, 71, 227, 1) 0%, rgba(1, 59, 179, 1) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 100%;
    margin-top: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    background: var(--primary-light);
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 26, 94, 0.25);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login .btn-text {
    display: inline-block;
    transition: transform 0.3s;
}

.btn-login:hover .btn-text {
    transform: scale(1.02);
}

.signup-text {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    animation: fadeInUp 0.9s ease-out 0.3s both;
}

.signup-text a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    position: relative;
}

.signup-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.signup-text a:hover::after {
    width: 100%;
}

/* Categories */
/* .categories-section {
    margin-top: auto;
    padding-top: 25px;
    animation: slideInBottom 1s ease-out 0.5s both;
    width: 100%;
}

.categories-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
    text-align: center;
}

.category-card {
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    margin-bottom: 0 !important;
}

.category-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(10, 26, 94, 0.1);
}

.category-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: var(--primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.category-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
} */

/* Footer */
.footer-left {
    margin-top: 80px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.footer-brand {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ===== RIGHT PANEL ===== */
.right-panel {
    /* background: #013398; */
    background: linear-gradient(180deg,rgba(0, 71, 227, 1) 0%, rgba(1, 59, 179, 1) 100%);
    height: 120vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px 50px;
    position: relative;
    overflow: hidden;
}

/* Animated background shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    animation: float 6s ease-in-out infinite;
}

.bg-shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.bg-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

.bg-shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 30%;
    animation-delay: 4s;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.trust-badge i {
    color: #ffd700;
    animation: spin-slow 8s linear infinite;
}

.right-panel h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    animation: fadeInRight 0.9s ease-out 0.4s both;
    margin-bottom: 8px;
    -webkit-animation: fadeInRight 0.9s ease-out 0.4s both;
}

.right-panel p {
    color: #FFF;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 10px;
    animation: fadeInRight 1s ease-out 0.5s both;
}

.right-panel .category-box{
    background: #FFF;
    height: 80px;
    margin-bottom: 0.4rem;
    display: flex;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
    margin-bottom: 0.4rem;
}
.right-panel h4{
    font-size: 15px !important;
    color: #FFF;
    text-align: center;
}
.right-panel .category-box img{
    max-width: 60px;
    margin: 0px auto;
    display: block;
    padding: 0.6rem;
    animation: fadeInRight 1s ease-out 0.5s both;
}

.stats-row {
    display: flex;
    gap: 60px;
    animation: fadeInUp 1.1s ease-out 0.6s both;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-top: 6px;
    display: block;
}

.stat-divider {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
}

/* Loading spinner for button */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}


/* ===== CATEGORY GRID ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.category-item:nth-child(1) { animation-delay: 0.6s; }
.category-item:nth-child(2) { animation-delay: 0.65s; }
.category-item:nth-child(3) { animation-delay: 0.7s; }
.category-item:nth-child(4) { animation-delay: 0.75s; }
.category-item:nth-child(5) { animation-delay: 0.8s; }
.category-item:nth-child(6) { animation-delay: 0.85s; }
.category-item:nth-child(7) { animation-delay: 0.9s; }
.category-item:nth-child(8) { animation-delay: 0.95s; }
.category-item:nth-child(9) { animation-delay: 1.0s; }
.category-item:nth-child(10) { animation-delay: 1.05s; }
.category-item:nth-child(11) { animation-delay: 1.1s; }
.category-item:nth-child(12) { animation-delay: 1.15s; }

.category-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.category-icon {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.category-item:hover .category-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.category-name {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    opacity: 0.9;
    line-height: 1.1;
    color: #FFF;
}

/* Toast notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.custom-toast {
    background: #fff;
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--primary);
}

.custom-toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.toast-content h6 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary);
}

.toast-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 2px 0 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .left-panel {
        padding: 25px 30px;
        min-height: auto;
    }

    .right-panel {
        min-height: auto;
        padding: 50px 30px;
    }

    .welcome-text h1 {
        font-size: 2rem;
    }

    .right-panel h2 {
        font-size: 2rem;
    }

    .categories-section {
        margin-top: 30px;
    }
}

@media (max-width: 767.98px) {
    .left-panel {
        padding: 20px;
    }

    .welcome-text h1 {
        font-size: 1.8rem;
    }

    .right-panel {
        padding: 40px 20px;
    }

    .right-panel h2 {
        font-size: 1.6rem;
    }

    .stats-row {
        gap: 30px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-divider {
        right: -15px;
        height: 30px;
    }

    .footer-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .footer-links {
        gap: 12px;
    }
}

@media (max-width: 575.98px) {
    .category-card {
        padding: 12px 8px;
    }

    .category-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .category-name {
        font-size: 0.7rem;
    }
}

/* Input focus animation */
.input-group-custom .form-control:focus + .input-icon,
.input-group-custom .form-control:focus ~ .input-icon {
    color: var(--primary);
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}