
    /* --- 1. SHARED VARIABLES & BASE --- */
    :root {
        --primary: #ff9a30;
        --primary-dark: #ea580c;
        --card-shadow: 0 10px 30px rgba(0,0,0,0.08);
        --border-radius: 12px;
    }

    body {
        background-color: var(--gray-50);
    }

    /* --- 2. LOGIN CONTAINER --- */
    .login-wrapper {
        margin-top: 70px;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: calc(100vh - 150px); /* Adjusting for Nav/Footer */
        padding: 20px;
    }

    .login-container {
        width: 100%;
        max-width: 420px;
        background: white;
        border-radius: var(--border-radius);
        box-shadow: var(--card-shadow);
        overflow: hidden;
        border-top: 5px solid var(--primary);
        padding: 40px 30px;
    }

    .login-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .login-header h2 {
        font-family: var(--font-serif);
        font-size: 2rem;
        color: var(--dark);
        margin-bottom: 8px;
    }

    .login-header p {
        color: var(--gray-500);
        font-size: 0.9rem;
    }

    /* --- 3. FORM STYLES --- */
    .form-group {
        margin-bottom: 22px;
    }

    .label-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
    }

    .form-label {
        font-weight: 600;
        color: var(--gray-700);
        font-size: 0.85rem;
    }

    .forgot-link {
        font-size: 0.8rem;
        color: var(--primary);
        font-weight: 600;
    }

    .input-wrapper {
        position: relative;
    }

    .input-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--gray-400);
        font-size: 1.2rem;
        display: flex;
    }

    .form-control {
        width: 100%;
        padding: 12px 15px 12px 40px; /* Space for icon */
        border: 1.5px solid var(--gray-100);
        border-radius: 8px;
        font-family: var(--font-sans);
        font-size: 0.95rem;
        transition: all 0.3s;
        outline: none;
    }

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(255, 154, 48, 0.1);
    }

    .btn-signin {
        width: 100%;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: white;
        padding: 14px;
        border: none;
        border-radius: 50px;
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
        margin-top: 10px;
        box-shadow: 0 5px 15px rgba(255, 154, 48, 0.3);
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .btn-signin:active {
        transform: scale(0.98);
    }

    .register-footer {
        text-align: center;
        margin-top: 25px;
        font-size: 0.9rem;
        color: var(--gray-600);
    }

    .register-footer a {
        color: var(--primary);
        font-weight: 700;
    }

    /* --- 4. ERROR ALERT --- */
    .alert-danger {
        background-color: #fef2f2;
        border-left: 4px solid #ef4444;
        color: #b91c1c;
        padding: 12px;
        border-radius: 6px;
        font-size: 0.85rem;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* --- 5. MOBILE APP VIEW --- */
    @media (max-width: 768px) {
        .login-wrapper {
           
            margin-top: 0;
            padding: 0;
            background: white;
            align-items: flex-start;
        }

        .login-container {
            box-shadow: none;
            border-radius: 0;
            border-top: none;
            padding: 40px 20px;
        }

        .form-control {
            background-color: var(--gray-50);
            border-color: transparent;
        }
    }

