    /* BASE STYLES & VARIABLES */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    :root {
        --primary: #00aaff;
        --secondary: #0077cc;
        --background: #f5f9ff;
        --text: #1e293b;
        --accent: #16a34a;
        --danger: #ef4444;
        --white: #ffffff;
        --shadow: 0 10px 20px rgba(0, 119, 204, 0.15);
        --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        --modal-bg: rgba(0, 0, 0, 0.6);
    }

    /* Dark Mode Configuration */
    body.dark-mode {
        --background: #1e293b;
        --text: #f1f5f9;
        --white: #2d3748;
        --shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }
    body.dark-mode .logo-text, body.dark-mode .form-title { color: var(--text); }
    body.dark-mode .form-subtitle, body.dark-mode .form-footer a { color: #94a3b8; }
    body.dark-mode .input-group input { background-color: #4a5568; border-color: #4a5568; color: var(--text); }
    body.dark-mode .input-group i { color: #cbd5e1; }
    body.dark-mode .navbar, body.dark-mode .sidebar { background-color: var(--white); box-shadow: var(--shadow); }
    body.dark-mode .form-container { background-color: var(--white); }

    /* GENERAL STYLES */
    body {
        background-color: var(--background);
        color: var(--text);
        min-height: 100vh;
        transition: background-color 0.3s, color 0.3s;
    }

    /* Navbar Styles */
    .navbar {
        background-color: var(--white);
        box-shadow: var(--shadow);
        padding: 15px 5%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    .logo { display: flex; align-items: center; }
    .logo-icon { font-size: 28px; color: var(--primary); margin-right: 10px; animation: pulse 2s infinite; }
    @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
    .logo-text { font-size: 24px; font-weight: 700; color: var(--text); }
    .nav-links { display: flex; gap: 30px; }
    .nav-links a { text-decoration: none; color: var(--text); font-weight: 500; transition: color 0.3s; position: relative; }
    .nav-links a:hover { color: var(--primary); }
    .nav-links a.active::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px; background-color: var(--primary); }
    .menu-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--text); }

    /* Sidebar Styles */
    .sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: 10px 0 20px rgba(0, 0, 0, 0.2);
        padding: 80px 30px 30px;
        transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 101; 
        overflow-y: auto;
    }
    .sidebar.active { left: 0; }
    .sidebar-links { display: flex; flex-direction: column; gap: 20px; }
    .sidebar-links a { text-decoration: none; color: var(--text); font-weight: 500; padding: 12px 15px; border-radius: 8px; transition: all 0.3s; display: flex; align-items: center; }
    .sidebar-links a i { margin-right: 15px; font-size: 20px; width: 24px; text-align: center; }
    .sidebar-links a:hover, .sidebar-links a.active { background-color: var(--background); color: var(--primary); }

    /* Overlay */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 100;
        display: none;
        opacity: 0;
        transition: opacity 0.3s;
    }
    .overlay.active {
        display: block;
        opacity: 1;
    }

    /* Main Content */
    .main-content {
        padding: 40px 5%;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: calc(100vh - 80px);
        position: relative; 
        z-index: 1; 
    }

    /* Form Container */
    .form-container {
        background-color: var(--white);
        border-radius: 20px;
        padding: 40px;
        box-shadow: var(--shadow);
        width: 100%;
        max-width: 600px;
        animation: fadeIn 0.5s ease-out;
        transition: background-color 0.3s;
        position: relative; 
        z-index: 2; 
   border-bottom: 5px solid #00aaff;
border-top: 5px solid #00aaff;    }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

    /* Form Elements */
    .form-title { /* Gyara H1 */
        font-size: 30px;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 5px;
        text-align: center;
    }
    .form-subtitle { /* Gyara Paragraph */
        color: #64748b;
        margin-bottom: 30px;
        font-size: 17px;
        text-align: center;
    }

    .input-group { margin-bottom: 20px; position: relative; }
    /* Wannan shine icon din da ke hannun hagu (kamar 🔒) */
    .input-group i { position: absolute; left: 15px; top: 39px; color: #94a3b8; }
    
    .input-group input { 
        width: 100%; padding: 15px 15px 15px 45px; border: 1px solid #e2e8f0; border-radius: 10px; 
        font-size: 16px; transition: all 0.3s ease; 
    }



    /* 🛑 SABON CODE DOMIN MAIDA PASSWORD TOGGLE DAMA 🛑 */
    .password-toggle {
        position: absolute;
        right: 50px; /* Sanya shi 15px daga gefen dama */
        top: 0px; /* Daidaita shi a tsakiya a tsaye */
        transform: translateY(-50%); /* Gyara daidaito na tsakiya */
        cursor: pointer;
        color: #94a3b8;
        z-index: 10; /* Tabbatar ya kasance sama da input field */
        font-size: 18px;
        transition: color 0.3s;
    }

    .password-toggle:hover {
        color: var(--primary); /* Canza launi idan an sanya cursor a kai */
    }

    /* Gyara input domin ya bar sarari ga Toggle icon (15px padding + icon) */
    .input-group input[type="password"],
    .input-group input[type="text"] {
        padding-right: 45px; 
    }
    /* ---------------------------------------------------------------- */

    .input-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.2); }
    .btn { 
        width: 100%; padding: 15px; border: none; border-radius: 10px; font-size: 16px; font-weight: 600; 
        cursor: pointer; transition: all 0.3s ease; display: flex; justify-content: center; align-items: center;
    }
    .form-footer{
        padding-top: 15px;
        text-align: center;
    }
    .signIn{text-decoration: none;
        color: #00aaff;
        font-size: 17px;
        font-weight: bold;
    }
.signIn:hover{
    
    
}
    
    .btn-primary { 
        background-color: var(--primary); color: white; box-shadow: 0 4px 10px rgba(0, 170, 255, 0.3); 
    }
    .btn-primary:hover:not(:disabled) { 
        background-color: var(--secondary); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 170, 255, 0.4); 
    }
    .btn-primary:disabled {
        background-color: #94a3b8; 
        cursor: not-allowed;
        box-shadow: none;
        transform: none;
    }
    .spinner { /* Loading Spinner */
        border: 4px solid rgba(255, 255, 255, 0.3);
        border-top: 4px solid var(--white);
        border-radius: 50%;
        width: 20px;
        height: 20px;
        animation: spin 1s linear infinite;
        margin-left: 10px;
        display: none;
    }
    .btn-primary:disabled .spinner {
        display: block;
    }
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* Message/Alerts */
    #message div {
        padding: 10px; margin-top: 15px; border-radius: 8px; font-weight: 500;
        animation: slideIn 0.3s ease-out;
    }
    @keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
    
    /* MODAL STYLES */
    .modal {
        display: none; 
        position: fixed;
        z-index: 1000; 
        left: 0; top: 0; width: 100%; height: 100%;
        background-color: var(--modal-bg);
        backdrop-filter: blur(5px);
        animation: modalFadeIn 0.3s ease-out;
    }
    .modal-content {
        background-color: var(--white);
        margin: 15% auto; 
        padding: 30px;
        border-radius: 15px;
        max-width: 400px;
        text-align: center;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        animation: modalZoomIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    }
    @keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
    @keyframes modalZoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
    .modal-icon { font-size: 50px; color: var(--accent); margin-bottom: 15px; animation: bounce 0.6s ease-out; }
    @keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-30px); } 60% { transform: translateY(-15px); } }


    /* Media Queries */
    @media (max-width: 768px) {
        .nav-links { display: none; }
        .menu-toggle { display: block; }
        .form-container { padding: 30px 20px; }
        .sidebar { width: 80%; } 
    }


       /* Footer Styles */
        .footer {
            background-color: var(--white);
            padding: 30px 5%;
            border-top: 1px solid var(--light-gray);
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 30px;
        }

        .footer-section {
            flex: 1;
            min-width: 200px;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .footer-logo-text {
            font-size: 20px;
            font-weight: 700;
            color: var(--text);
        }

        .footer-description {
            color: var(--gray);
            margin-bottom: 15px;
            line-height: 1.6;
        }

        .social-links {
            display: flex;
            gap: 15px;
        }

        .social-link {text-decoration: none;
            border: 1px solid grey;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: var(--light-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text);
            transition: all 0.3s;
        }

        .social-link:hover {
            background-color: var(--primary);
            color: white;
            transform: translateY(-3px);
        }

        .footer-heading {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 15px;
            color: var(--text);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 10px;
        }

        .footer-links a {
            color: var(--gray);
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer-links a:hover {
            color: var(--primary);
        }

        .footer-bottom {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid var(--light-gray);
            text-align: center;
            color: var(--gray);
        }
 .divider {
            text-align: center;
            margin: 25px 0;
            position: relative;
        }

        .divider::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background-color: #e2e8f0;
        }
